A class in Root.Township, Alta.Populations.
Marks an entity as spawned by a PopulationSample, with the spawn point it used. Server side.
Constructors
| Member | What it is |
|---|
PopulationItem() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Properties
Methods
| Member | What it is |
|---|
virtual void Initialize() | Makes the entity work out its chunk from its own position. |
void ReplaceWith(NetworkEntity entity) | Asks the population to swap this item for another entity. |
1 private and internal method
| Member | What it is |
|---|
private Chunk GetPositionChunk(NetworkEntity entity) | Finds the location chunk that best contains the entity's current position. Installed on the entity by Initialize. |
Used in
Members of other types that take, return or hold a PopulationItem: