Struct Entity

Namespace
Game.Shared
Assembly
Game.dll
public struct Entity
Inherited Members

Constructors

Entity(int)

public Entity(int id)

Parameters

id int

Properties

Alive

public bool Alive { get; }

Property Value

bool

Archetype

public Archetype Archetype { get; }

Property Value

Archetype

EcsObject

public Entity EcsObject { get; }

Property Value

Entity

EcsObjectRef

public ref Entity EcsObjectRef { get; }

Property Value

Entity

Id

public readonly int Id { get; }

Property Value

int

Methods

CreateComponentsFromKeyvalues(Dictionary<string, string>)

public void CreateComponentsFromKeyvalues(Dictionary<string, string> keys)

Parameters

keys Dictionary<string, string>

Destroy()

public void Destroy()

DispatchNamed(ReadOnlySpan<char>)

public void DispatchNamed(ReadOnlySpan<char> name)

Parameters

name ReadOnlySpan<char>

Dispatch<T>(T)

public bool Dispatch<T>(T param) where T : notnull

Parameters

param T

Returns

bool

Type Parameters

T

Has<T>()

public bool Has<T>() where T : notnull

Returns

bool

Type Parameters

T

LoadFromKeyvalues(Dictionary<string, string>)

public void LoadFromKeyvalues(Dictionary<string, string> keys)

Parameters

keys Dictionary<string, string>

PreDestroyClient()

public void PreDestroyClient()

PreDestroyServer()

public void PreDestroyServer()

RefOrCreate<T>()

public ref T RefOrCreate<T>() where T : notnull, new()

Returns

T

Type Parameters

T

Ref<T>()

public ref T Ref<T>()

Returns

T

Type Parameters

T