DIFF

class GenericComponentCOMPONENT_SYSTEMSource

GenericComponent Managed

All members, including inherited

Builtin component types

Constructors 1

protected void GenericComponent(IEntityComponentSource src, IEntity ent)COMPONENT_SYSTEM

Constructor

Methods 6

proto native int GetEventMask()COMPONENT_SYSTEM

Gets current eventmask of the component.

Returns: Returns bitmask of events the component accepts

proto native int SetEventMask(IEntity owner, int mask)COMPONENT_SYSTEM

Sets 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_SYSTEM

Clears 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_SYSTEM

Activate component and calls EOnActivate().

proto native void Deactivate(IEntity owner)COMPONENT_SYSTEM

Deactivate component and calls EOnDectivate().

proto native bool IsActive()COMPONENT_SYSTEM

Returns activity state.

Returns: Returns true, if component is active.