mirror of
https://github.com/Ragora/T2-BoL.git
synced 2026-01-20 11:34:44 +00:00
49 lines
961 B
C#
49 lines
961 B
C#
//------------------------------------------------------------------------------
|
|
// 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;
|
|
} |