Tools.cs 1.1 KB

1234567891011121314151617181920212223242526
  1. function ToolsModule::onCreate(%this)
  2. {
  3. // ----------------------------------------------------------------------------
  4. // Initialize core sub system functionality such as audio, the Canvas, PostFX,
  5. // rendermanager, light managers, etc.
  6. //
  7. // Note that not all of these need to be initialized before the client, although
  8. // the audio should and the canvas definitely needs to be. I've put things here
  9. // to distinguish between the purpose and functionality of the various client
  10. // scripts. Game specific script isn't needed until we reach the shell menus
  11. // and start a game or connect to a server. We get the various subsystems ready
  12. // to go, and then use initClient() to handle the rest of the startup sequence.
  13. //
  14. // If this is too convoluted we can reduce this complexity after futher testing
  15. // to find exactly which subsystems should be readied before kicking things off.
  16. // ----------------------------------------------------------------------------
  17. //ModuleDatabase.LoadExplicit( "MainEditor" );
  18. //ModuleDatabase.LoadExplicit( "Tools_ObjectViewer" );
  19. }
  20. function ToolsModule::onDestroy(%this)
  21. {
  22. }