Torque3D/Templates/BaseGame
JeffR c5ae9af0ae Core now spawns a ControlObject directly, with callbacks allowing overriding of values to control what spawns (and what occurs afterwards) to tie several tracking variables to a given client connection.
By default this list of variables would be:
%this.spawnClass = "Camera";
%this.spawnDBType = "CameraData";
%this.spawnDataBlock = "Observer";
%this.playerSpawnGroups = "PlayerSpawnPoints PlayerDropPoints";
%this.spawnPoint = "";
%this.spawnLocation = "0 0 0";

Also adds several callbacks so that these values can be overridden by modules and gamemodes, kicked off from the %client.spawnControlObject(); command :
callOnModules("setSpawnObjectType", "Game", %this);
callGamemodeFunction("setSpawnObjectType", %this);

callOnModules("setSpawnPoint", "Game", %this);
callGamemodeFunction("setSpawnPoint", %this);

callOnModules("onPostSpawn", "Game", %this);
callGamemodeFunction("onPostSpawn", %this);

This is to ensure that a game mode can supersede modules, but even modules can dictate spawn behaviors for minimalist implementations and drop-in interop support
2024-12-21 02:11:35 -06:00
..
game Core now spawns a ControlObject directly, with callbacks allowing overriding of values to control what spawns (and what occurs afterwards) to tie several tracking variables to a given client connection. 2024-12-21 02:11:35 -06:00
source Remove old and not needed torqueconfig files, also remove xenon reference in the config file 2020-10-03 11:19:59 +02:00
BaseGame.cmake Initial implementation of the new Base Game Template and some starting modules. 2017-02-24 02:40:56 -06:00
cleanShaders.bat Adjusted init'ing logic to defer to project settings for the name of the play gui and mainMenu gui instead of hardcoding them 2019-08-07 01:27:39 -05:00
cleanShaders.command Adjusted init'ing logic to defer to project settings for the name of the play gui and mainMenu gui instead of hardcoding them 2019-08-07 01:27:39 -05:00
CMakeLists.txt Fixed typo 2023-11-23 13:38:43 -06:00
DeleteCachedDTSs.bat Initial implementation of the new Base Game Template and some starting modules. 2017-02-24 02:40:56 -06:00
DeleteCachedDTSs.command Initial implementation of the new Base Game Template and some starting modules. 2017-02-24 02:40:56 -06:00
DeleteDSOs.bat Initial implementation of the new Base Game Template and some starting modules. 2017-02-24 02:40:56 -06:00
DeleteDSOs.command Initial implementation of the new Base Game Template and some starting modules. 2017-02-24 02:40:56 -06:00
DeletePrefs.bat Initial implementation of the new Base Game Template and some starting modules. 2017-02-24 02:40:56 -06:00
DeletePrefs.command Initial implementation of the new Base Game Template and some starting modules. 2017-02-24 02:40:56 -06:00
thumb.png Initial implementation of the new Base Game Template and some starting modules. 2017-02-24 02:40:56 -06:00