Class EntityExtensions
- Namespace
- Frent
- Assembly
- Frent.dll
Deconstruction extensions for entities.
public static class EntityExtensions
- Inheritance
-
EntityExtensions
- Inherited Members
Methods
Deconstruct<T>(Entity, out Ref<T>)
Deconstructs the constituent components of an entity as reference(s).
public static void Deconstruct<T>(this Entity e, out Ref<T> comp)
Parameters
Type Parameters
T
Exceptions
- InvalidOperationException
The entity is not alive.
- ComponentNotFoundException
The entity does not have all the components specified.