arcalet introduction
API usage instruction › arcalet API › Event Processing

Event Processing

Event by arcalet API
For game developers, there are two ways to write an event handling program. The first way is to use the override method, developers can design their own inherited classes from an arcalet class, and then rewrite class events in this object. The second is to use the 'event' attribute variables and by specifying an event handler function.This approach does not require designing additional objects and can be used directly.
Another thing to note, if you do not specify the 'event attribute variables', or rewrite the original class event, the event will lapse, but an error will not occur. If you specify the 'event attribute variables', and also rewrite the original event in the inherited object, then only 'event attribute variables' indicated by the event function will be triggered.
Was this page helpful?
Yes No