Interface IWorldObjectManager
Assembly: Eco.Gameplay.dll
Syntax
public interface IWorldObjectManager
Properties
All
Declaration
IEnumerable<WorldObject> All { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<WorldObject> |
|
AllTypes
Declaration
IEnumerable<Type> AllTypes { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.Type> |
|
AllWorldObjectTypes
Declaration
Dictionary<string, Type> AllWorldObjectTypes { get; }
Property Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.Type> |
|
TickDeltaTime
Declaration
float TickDeltaTime { get; }
Property Value
Type |
Description |
System.Single |
|
TickStartTime
Declaration
double TickStartTime { get; }
Property Value
Type |
Description |
System.Double |
|
Methods
Add(WorldObject, User, WrappedWorldPosition3, Quaternion, WorldObject)
Declaration
WorldObject Add(WorldObject worldObject, User creator, WrappedWorldPosition3 position, Quaternion rotation, WorldObject attachedToWorldObject = null)
Parameters
Returns
AddToTick(ITickOnDemand)
Adds tickable
to closest (current or next) Eco.Gameplay.Objects.WorldObjectManager.TickAll which may not want to tick every time, but instead tick only when specific event happens.
It may be useful if you wanna delay component state update until tick time, because it may have lot of updates between ticks and processing multiple syncs for every update
may significantly impact performance. At same time we don't wanna to Tick() every time, because these syncs may not happen for long time
for most of components and it will just waste CPU time.
Declaration
void AddToTick(ITickOnDemand tickable)
Parameters
GetFromID(Guid)
Declaration
WorldObject GetFromID(Guid g)
Parameters
Type |
Name |
Description |
System.Guid |
g |
|
Returns
GetObjectsWithin(Vector2, Single)
Declaration
IEnumerable<WorldObject> GetObjectsWithin(Vector2 position, float range)
Parameters
Type |
Name |
Description |
Vector2 |
position |
|
System.Single |
range |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<WorldObject> |
|
GetObjectsWithin(WrappedPosition3, Single)
Declaration
IEnumerable<WorldObject> GetObjectsWithin(WrappedPosition3 position, float range)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<WorldObject> |
|
GetTypeFromName(String)
Declaration
Type GetTypeFromName(string s)
Parameters
Type |
Name |
Description |
System.String |
s |
|
Returns
Type |
Description |
System.Type |
|
RemoveFromTick(ITickOnDemand)
Declaration
void RemoveFromTick(ITickOnDemand tickable)
Parameters
RemoveWorldObject(WorldObject)
Declaration
bool RemoveWorldObject(WorldObject worldObject)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Extension Methods