CollisionCacheComponent

Namespace: Murder.Components
Assembly: Murder.dll

public sealed struct CollisionCacheComponent : IComponent

Implements: IComponent

⭐ Constructors

public CollisionCacheComponent()
public CollisionCacheComponent(ImmutableHashSet<T> idList)

Parameters
idList ImmutableHashSet<T>

public CollisionCacheComponent(int id)

Parameters
id int

⭐ Properties

CollidingWith

public ImmutableHashSet<T> CollidingWith { get; }

Returns
ImmutableHashSet<T>

⭐ Methods

Contains(World)

public bool Contains(World world)

Parameters
world World

Returns
bool

HasId(int)

public bool HasId(int id)

Parameters
id int

Returns
bool

Add(int)

public CollisionCacheComponent Add(int id)

Parameters
id int

Returns
CollisionCacheComponent

Remove(int)

public CollisionCacheComponent Remove(int id)

Parameters
id int

Returns
CollisionCacheComponent

GetCollidingEntities(World)

public IEnumerable<T> GetCollidingEntities(World world)

Parameters
world World

Returns
IEnumerable<T>