Class EntityWorld

Namespace
Game.Shared
Assembly
Game.dll
public static class EntityWorld
Inheritance
EntityWorld
Inherited Members

Properties

AllSpawned

public static bool AllSpawned { get; set; }

Property Value

bool

EcsObjects

public static Entity[] EcsObjects { get; }

Property Value

Entity[]

EcsWorld

public static World EcsWorld { get; }

Property Value

World

Entities

public static Entity[] Entities { get; }

Property Value

Entity[]

Methods

CreateEntity()

public static EntityBuilder CreateEntity()

Returns

EntityBuilder

DestroyEntity(int)

public static void DestroyEntity(int id)

Parameters

id int

Dispatch<T>(T)

public static void Dispatch<T>(T data) where T : notnull

Parameters

data T

Type Parameters

T

FinishSpawning(int)

public static void FinishSpawning(int entityId)

Parameters

entityId int

ForEachEntity(Action<Entity>)

public static void ForEachEntity(Action<Entity> action)

Parameters

action Action<Entity>

GetEcsObject(int)

public static Entity GetEcsObject(int id)

Parameters

id int

Returns

Entity

GetEcsObjectRef(int)

public static ref Entity GetEcsObjectRef(int id)

Parameters

id int

Returns

Entity

GetEntity(int)

public static Entity GetEntity(int id)

Parameters

id int

Returns

Entity

GetEntityRef(int)

public static ref Entity GetEntityRef(int id)

Parameters

id int

Returns

Entity

Init(int)

public static void Init(int capacity = 4096)

Parameters

capacity int

Shutdown()

public static void Shutdown()

Events

OnDestroyed

public static event Action<Entity> OnDestroyed

Event Type

Action<Entity>

OnPreDestroyed

public static event Action<Entity> OnPreDestroyed

Event Type

Action<Entity>

OnPreSpawned

public static event Action<Entity> OnPreSpawned

Event Type

Action<Entity>

OnSpawned

public static event Action<Entity> OnSpawned

Event Type

Action<Entity>