public final class WorldConfiguration extends Object
| Constructor and Description |
|---|
WorldConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
int |
expectedEntityCount() |
WorldConfiguration |
expectedEntityCount(int expectedEntityCount)
Initializes array type containers with the value supplied.
|
int |
maxRebuiltIndicesPerTick() |
WorldConfiguration |
maxRebuiltIndicesPerTick(int maxRebuiltIndicesPerTick)
Maximum limit on how many active entity indices are rebuilt each time
World.process() is invoked. |
WorldConfiguration |
register(Object o)
Manually register object for injection by type.
|
WorldConfiguration |
register(String name,
Object o)
Manually register object for injection by name.
|
public int expectedEntityCount()
public WorldConfiguration expectedEntityCount(int expectedEntityCount)
expectedEntityCount - count of expected entities.public int maxRebuiltIndicesPerTick()
public WorldConfiguration maxRebuiltIndicesPerTick(int maxRebuiltIndicesPerTick)
World.process() is invoked. An index is flagged as dirty whenever
an Entity is removed or added to a system.maxRebuiltIndicesPerTick - 0 or more.public WorldConfiguration register(Object o)
@Wire. A class level
@Wire annotation is not enough.
Since objects are injected by type, this method is limited to one object per type.
Use register(String, Object) to register multiple objects of the same type.
Not required for systems and managers.o - object to inject.public WorldConfiguration register(String name, Object o)
@Wire(name="myName"). A class
level @Wire annotation is not enough.
Not required for systems and managers.name - unique identifier matching injection site name.o - object to inject.Copyright © 2014. All Rights Reserved.