mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-24 22:59:24 +00:00
Merge remote-tracking branch 'upstream/development' into STBImageLoading-PR
This commit is contained in:
commit
e6554e9abc
2 changed files with 17 additions and 10 deletions
|
|
@ -139,7 +139,7 @@ function loadMissionStage3()
|
|||
|
||||
// Construct MOD paths
|
||||
pathOnMissionLoadDone();
|
||||
|
||||
getRootScene().callOnChildren("onCreateGame");
|
||||
// Mission loading done...
|
||||
echo("*** Mission loaded");
|
||||
|
||||
|
|
@ -152,6 +152,16 @@ function loadMissionStage3()
|
|||
%hasGameMode = callGamemodeFunction("onMissionStart");
|
||||
|
||||
}
|
||||
|
||||
function GameBase::onCreateGame(%this)
|
||||
{
|
||||
%db = %this.getDatablock();
|
||||
if (%db.isMethod("onCreateGame"))
|
||||
{
|
||||
%db.onCreateGame(%this);
|
||||
}
|
||||
}
|
||||
|
||||
function endMission()
|
||||
{
|
||||
if (!isObject( getScene(0) ))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue