class GenericComponentCOMPONENT_SYSTEMSource
GenericComponent › Managed
All members, including inherited
Builtin component types
Constructors 1
protected void GenericComponent(IEntityComponentSource src, IEntity ent)COMPONENT_SYSTEMConstructor
Methods 6
proto native int GetEventMask()COMPONENT_SYSTEMGets current eventmask of the component.
Returns: Returns bitmask of events the component accepts
proto native int SetEventMask(IEntity owner, int mask)COMPONENT_SYSTEMSets eventmask. Component accepts only events which has set bits in eventmask. Bits are or'ed with existing bitmask. See enf::EntityEvents. When this method is called in the constructor of the component, it will not properly set the eventmask to the parent entity. You may consider OnComponentInsert event.
mask- Mask of those bits, which will be set.
Returns: Returns bitmask of events the component accepts (result of mask|GetEventMask())
proto native int ClearEventMask(IEntity owner, int mask)COMPONENT_SYSTEMClears bitmask. Component accepts only events which has set bits in eventmask. Only bits set in the mask are cleared. See enf::EntityEvents
mask- Mask of those bits, which will be cleared.
Returns: returns these bits that were set before and now are cleared.
proto native void Activate(IEntity owner)COMPONENT_SYSTEMActivate component and calls EOnActivate().
proto native void Deactivate(IEntity owner)COMPONENT_SYSTEMDeactivate component and calls EOnDectivate().
proto native bool IsActive()COMPONENT_SYSTEMReturns activity state.
Returns: Returns true, if component is active.