-
Notifications
You must be signed in to change notification settings - Fork 0
Nyu
The Nyu
class is the core class of every entity in the NyuEntities system; It handles execution order with interfaces instead of reflection methods like unity does.
Supported interfaces: INyuAwake
, INyuStart
, INyuUpdate
, INyuFixedUpdate
, INyuLateUpdate
, INyuOnDestroyQueued
, INyuOnDestroy
, INyuOnEnable
, INyuOnDisable
, INyuOnTriggerEnter
, INyuOnTriggerEnter2D
, INyuOnTriggerExit
, INyuOnTriggerExit2D
, INyuOnCollisionEnter
, INyuOnCollisionEnter2D
, INyuOnCollisionExit
, INyuOnCollisionExit2D
.
All of these interfaces are located in the WarWolfWorks.Interfaces.NyuEntities
namespace.
Attempts to add a new entity component to the parent.
Attempts to add a new entity component to the parent.
Attempts to add a new entity component to the parent.
Attempts to add a new entity component to the parent.
Attempts to retrieve a INyuComponent or NyuComponent from the parent. Returns null if none were found.
Attempts to retrieve a INyuComponent or NyuComponent from the parent. Returns null if none were found.
Attempts to retrieve a INyuComponent or NyuComponent from the parent and returns it as INyuComponent. Returns null if none were found.
Retrieves all INyuComponent and NyuComponent components from the parent.
Removes an existing INyuComponent or NyuComponent.
Attempts to remove the first INyuComponent or NyuComponent of given type.
Attempts to remove the first INyuComponent or NyuComponent of given T type.
Removes an existing INyuComponent or NyuComponent.
Attempts to remove the first INyuComponent or NyuComponent of given type.
Attempts to remove the first INyuComponent or NyuComponent of given T type.
Attempts to retrieve the first INyuComponent or NyuComponent of given T type; If none were found, the method will return false and component will be null.
Attempts to retrieve the first INyuComponent or NyuComponent of given T type; If none were found, the method will return false and component will be null.
Pointer to transform.eulerAngles.
Pointer to transform.rotation.
Pointer to transform.position.
A string value used to identify an entity through a specific tag; Can be used for any reason.
A class which handles all stats of the given entity. For more info, check out the Stats System.
Invoked right after this entity is queued for destruction using EntityManager.Destroy.
Invoked when this entity is enabled.
Invoked when this entity is disabled.
Makes it possible to pass any Nyu as a Transform argument.