mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
Implemented initial pass at proper client/server separation handling for module initialization
Added GameModeName to Scene Added function to get number of active scenes Added logic to level/client loading to enact gameplay mode logic driven by either Scene's GameModeName or project setting's default game mode Added template module.cs file for module creation and adjusted new module logic in AssetBrowser to create off template Updated FPSGameplay code to have deathmatchGame mode work with new GameMode logic Updated EmptyLevel scene to define deathMatchGame as gamemode Updated FPSGameplay module script to properly client/server initialize
This commit is contained in:
parent
d97c05b411
commit
7dc03ae17a
32 changed files with 774 additions and 294 deletions
|
|
@ -0,0 +1,37 @@
|
|||
function @@::onCreate(%this)
|
||||
{
|
||||
}
|
||||
|
||||
function @@::onDestroy(%this)
|
||||
{
|
||||
}
|
||||
|
||||
//This is called when the server is initially set up by the game application
|
||||
function @@::initServer(%this)
|
||||
{
|
||||
}
|
||||
|
||||
//This is called when the server is created for an actual game/map to be played
|
||||
function @@::onCreateServer(%this)
|
||||
{
|
||||
}
|
||||
|
||||
//This is called when the server is shut down due to the game/map being exited
|
||||
function @@::onDestroyServer(%this)
|
||||
{
|
||||
}
|
||||
|
||||
//This is called when the client is initially set up by the game application
|
||||
function @@::initClient(%this)
|
||||
{
|
||||
}
|
||||
|
||||
//This is called when a client connects to a server
|
||||
function @@::onCreateClient(%this)
|
||||
{
|
||||
}
|
||||
|
||||
//This is called when a client disconnects from a server
|
||||
function @@::onDestroyClient(%this)
|
||||
{
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue