|
SGDK
A free and open development kit for the Sega Mega Drive
|
Base object structure. More...
#include <object.h>
Public Attributes | |
| u16 | internalState |
| u16 | type |
| ObjectCallback * | init |
| ObjectCallback * | update |
| ObjectCallback * | end |
Base object structure.
| internalState | Object internal state, you can use it but you should save bit 15 as it's used internally to detect invalid object |
| type | Object type, can be used to recognize the underlying object / structure type. |
| init | Initialisation function callback, should be only called once after object creation |
| update | Update function callback, usually called once per frame |
| end | Ending function callback, should be only called once before object release |