InitObject: ModuleExecObject
| [Previous] [Main] [Next] |
· | Starting up a Daemon or Fuse, when the InitObject can conveniently be mixed-in with the Daemon or Fuse to form a single object (as in the OneTimePromptDaemon example above).
|
· | Writing code for a library extension, or code that you want to be reusable between games, for which isolating it in a separate object will be far more convenient than placing it in a game-specific gameMain.showIntro() method.
|
· | Writing code for a custom class or object that you want to have initialize itself at startup.
|