mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-27 23:35:45 +00:00
Reorganized the exec's for datablocks in module template file to be within the start/stop blocks
Tweaked example module script file to comply Moved ExampleGameMode script file to scripts/shared since client and server need access to the gamemode for logic to work
This commit is contained in:
parent
d7335a73e4
commit
4bb26bf96c
3 changed files with 4 additions and 5 deletions
|
|
@ -16,6 +16,7 @@ function @@::initServer(%this)
|
|||
//This is called when the server is created for an actual game/map to be played
|
||||
function @@::onCreateGameServer(%this)
|
||||
{
|
||||
//--DATABLOCK EXEC BEGIN--
|
||||
//These are common managed data files. For any datablock-based stuff that gets generated by the editors
|
||||
//(that doesn't have a specific associated file, like data for a player class) will go into these.
|
||||
//So we'll register them now if they exist.
|
||||
|
|
@ -24,8 +25,6 @@ function @@::onCreateGameServer(%this)
|
|||
%this.registerDatablock("./scripts/managedData/managedForestBrushData");
|
||||
%this.registerDatablock("./scripts/managedData/managedParticleEmitterData");
|
||||
%this.registerDatablock("./scripts/managedData/managedParticleData");
|
||||
|
||||
//--DATABLOCK EXEC BEGIN--
|
||||
//--DATABLOCK EXEC END--
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue