core / pragma.playerdata / EntityData /

EntityData #

data class EntityData(entityByInstanceId: MutableMap<UUID, Entity>, changedEntities: MutableSet<UUID>, entitiesToDelete: MutableSet<UUID>)

Contains reference to the player’s entities and used to keep track of changes to apply in the db

  • entityByInstanceId contains map of instanceId to Entity
  • changedEntities is a set of instanceIds for entities that should be added or updated
  • entitiesToDelete is a set of instanceIds for entities that should be deleted

Constructors #

EntityData

fun EntityData(entityByInstanceId: MutableMap<UUID, Entity>)

EntityData

fun EntityData(entityByInstanceId: MutableMap<UUID, Entity>, changedEntities: MutableSet<UUID>, entitiesToDelete: MutableSet<UUID>)