EntityModifier

Namespace: Murder.Prefabs
Assembly: Murder.dll

public class EntityModifier

⭐ Constructors

public EntityModifier(Guid guid)

Parameters
guid Guid

⭐ Properties

Children

public ImmutableArray<T> Children { get; }

Returns
ImmutableArray<T>

Guid

public readonly Guid Guid;

Returns
Guid

⭐ Methods

HasChild(Guid)

public bool HasChild(Guid childId)

Parameters
childId Guid

Returns
bool

HasComponent(Type)

public bool HasComponent(Type t)

Parameters
t Type

Returns
bool

IsComponentRemoved(Type)

public bool IsComponentRemoved(Type t)

Parameters
t Type

Returns
bool

TryGetComponent(Type, out IComponent&)

public bool TryGetComponent(Type t, IComponent& result)

Parameters
t Type
result IComponent&

Returns
bool

UndoCustomComponent(Type)

public bool UndoCustomComponent(Type t)

Parameters
t Type

Returns
bool

ApplyModifiersFrom(EntityModifier)

public EntityModifier ApplyModifiersFrom(EntityModifier other)

Merge modifier with . This will prioritize items present in .

Parameters
other EntityModifier

Returns
EntityModifier

FetchChildren()

public ImmutableArray<T> FetchChildren()

Returns
ImmutableArray<T>

FilterComponents(IEnumerable`1&)

public ImmutableArray<T> FilterComponents(IEnumerable`1& allComponents)

Parameters
allComponents IEnumerable<T>&

Returns
ImmutableArray<T>

AddChild(EntityInstance)

public void AddChild(EntityInstance child)

Parameters
child EntityInstance

AddOrReplaceComponent(IComponent)

public void AddOrReplaceComponent(IComponent c)

Parameters
c IComponent

RemoveChild(Guid)

public void RemoveChild(Guid guid)

Parameters
guid Guid

RemoveComponent(Type)

public void RemoveComponent(Type t)

Parameters
t Type