Entity = ref object of RootObj id*: EntityId
proc newEntity(): Entity {...}{.raises: [], tags: [TimeEffect].}