Table of Contents

Class EntitySystem<T>

Namespace
TaleWorlds.Core
Assembly
TaleWorlds.Core.dll
public class EntitySystem<T> where T : class, IEntityComponent

Type Parameters

T
Inheritance
EntitySystem<T>
Inherited Members

Constructors

EntitySystem()

public EntitySystem()

Properties

Components

public MBReadOnlyList<T> Components { get; }

Property Value

MBReadOnlyList<T>

Methods

AddComponent(Type)

public T AddComponent(Type componentType)

Parameters

componentType Type

Returns

T

AddComponent<TComponent>()

public TComponent AddComponent<TComponent>() where TComponent : class, T, new()

Returns

TComponent

Type Parameters

TComponent

AutoGeneratedInstanceCollectObjects(List<object>)

protected virtual void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)

Parameters

collectedObjects List<object>

GetComponent(Type)

public T GetComponent(Type componentType)

Parameters

componentType Type

Returns

T

GetComponent<TComponent>()

public TComponent GetComponent<TComponent>() where TComponent : class, T

Returns

TComponent

Type Parameters

TComponent

GetComponents()

public MBList<T> GetComponents()

Returns

MBList<T>

GetComponents<TComponent>()

public List<TComponent> GetComponents<TComponent>() where TComponent : class, T

Returns

List<TComponent>

Type Parameters

TComponent

RemoveComponent(T)

public void RemoveComponent(T component)

Parameters

component T

RemoveComponent<TComponent>()

public void RemoveComponent<TComponent>() where TComponent : class, T

Type Parameters

TComponent

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).