Skip to content

Commit

Permalink
Revert "convert entity to data class with version (WIP)"
Browse files Browse the repository at this point in the history
This reverts commit 3bdd978.
  • Loading branch information
Simon Klausner committed Sep 18, 2023
1 parent 3bdd978 commit a42a0a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commonMain/kotlin/com/github/quillraven/fleks/entity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import kotlin.jvm.JvmInline
/**
* An entity of a [world][World]. It represents a unique id.
*/
@JvmInline
@Serializable
data class Entity(val id: Int, val version: Int = 0)
value class Entity(val id: Int)

/**
* Type alias for an optional hook function for an [EntityService].
Expand Down

0 comments on commit a42a0a1

Please sign in to comment.