Skip to content

Commit

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

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

0 comments on commit 3bdd978

Please sign in to comment.