Document
Introduction
Summary
arcalet ?
Capabilities
Object Model
arcalet API
Synchronization
Event Processing
Callback
API Class
Objects Summary
Error Code
Reference
ArcaletGame
Constructor
Method
Property
Event
ArcaletScene
Constructor
Method
Property
Event
ArcaletItem
Method
Super User
ArcaletScore
Method
Super User
ArcaletShop
Method
ArcaletSystem
Method
ArcaletThreadPool
Method
Object Modelarcalet API 》 Event Processing

Event Processing

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