Class CustomAction
The base class for custom monster actions. Inherit from it, decorate the type with CustomActionAttribute and register it via RegisterAction<T>(MonsterType, uint, IReadOnlyDictionary<int, Delegate>?).
public abstract class CustomAction : Action
- Inheritance
-
CustomAction
- Inherited Members
Remarks
One instance of your type is created for every native action object, i.e. for every monster that receives the action. Do not create instances yourself, ActionCloner owns their lifetime.
Constructors
CustomAction()
protected CustomAction()
Methods
BaseOnEnd()
Calls the implementation of cActionBase itself, skipping the action this one is based on.
protected void BaseOnEnd()
BaseOnExecute()
Calls the implementation of cActionBase itself, skipping the action this one is based on.
protected void BaseOnExecute()
BaseOnInitialize()
Calls the implementation of cActionBase itself, skipping the action this one is based on.
protected void BaseOnInitialize()
BaseOnUpdate()
Calls the implementation of cActionBase itself, skipping the action this one is based on.
protected bool BaseOnUpdate()
Returns
OnEnd()
Called when the action ends. The default implementation calls ParentOnEnd().
public override void OnEnd()
OnExecute()
Called each time the action is executed. The default implementation calls ParentOnExecute().
public override void OnExecute()
OnInitialize()
Called after the action object is created. The default implementation calls ParentOnInitialize().
public override void OnInitialize()
OnUpdate()
Called once per frame while the action is active. The default implementation calls ParentOnUpdate().
public override bool OnUpdate()
Returns
- bool
False to end the action
ParentOnEnd()
Calls the implementation of the action this one is based on.
protected void ParentOnEnd()
ParentOnExecute()
Calls the implementation of the action this one is based on.
protected void ParentOnExecute()
ParentOnInitialize()
Calls the implementation of the action this one is based on.
protected void ParentOnInitialize()
ParentOnUpdate()
Calls the implementation of the action this one is based on.
protected bool ParentOnUpdate()