mirror of
https://github.com/Ragora/T2-BoL.git
synced 2026-01-22 04:24:49 +00:00
49 lines
961 B
PHP
49 lines
961 B
PHP
|
|
//------------------------------------------------------------------------------
|
||
|
|
// BoLFunctions.cs
|
||
|
|
// T2BoL Specific Functions
|
||
|
|
// Copyright (c) 2012 Robert MacGregor
|
||
|
|
//------------------------------------------------------------------------------
|
||
|
|
|
||
|
|
function GameConnection::saveState(%this)
|
||
|
|
{
|
||
|
|
if ($CurrentMissionType !$= "RPG")
|
||
|
|
{
|
||
|
|
error("Not running the BoL gamemode.");
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
function GameConnection::loadState(%this, %file)
|
||
|
|
{
|
||
|
|
if ($CurrentMissionType !$= "RPG")
|
||
|
|
{
|
||
|
|
error("Not running the BoL gamemode.");
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
function AIConnection::saveState(%this)
|
||
|
|
{
|
||
|
|
if ($CurrentMissionType !$= "RPG")
|
||
|
|
{
|
||
|
|
error("Not running the BoL gamemode.");
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
function AIConnection::loadState(%this, %file)
|
||
|
|
{
|
||
|
|
if ($CurrentMissionType !$= "RPG")
|
||
|
|
{
|
||
|
|
error("Not running the BoL gamemode.");
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
|
||
|
|
return true;
|
||
|
|
}
|