2018-04-04 19:17:16 +00:00
/**
Legacy . c
Contains legacy code that will be removed after some time .
@ author Marky
*/
2018-04-05 17:34:16 +00:00
static const VERSION_10_0_OC = " 10.0 " ;
2018-04-04 19:17:16 +00:00
/* -- Scenario stuff -- */
2018-04-05 17:34:16 +00:00
global func GainMissionAccess ( string password )
{
LogLegacyWarning ( " GainMissionAccess " , " GainScenarioAccess " , VERSION_10_0_OC ) ;
return GainScenarioAccess ( password ) ;
}
global func GetMissionAccess ( string password )
{
LogLegacyWarning ( " GetMissionAccess " , " GetScenarioAccess " , VERSION_10_0_OC ) ;
return GetScenarioAccess ( password ) ;
}
2018-04-04 19:17:16 +00:00
global func SetNextMission ( string filename , string title , string description )
{
2018-04-05 17:34:16 +00:00
LogLegacyWarning ( " SetNextMission " , " SetNextScenario " , VERSION_10_0_OC ) ;
2018-04-04 19:17:16 +00:00
return SetNextScenario ( filename , title , description ) ;
}
/* -- Internal helpers -- */
2018-04-04 19:49:39 +00:00
global func LogLegacyWarning ( string function_name , string replacement_name , string version )
2018-04-04 19:17:16 +00:00
{
2018-04-04 19:49:39 +00:00
Log ( " WARNING: Do not use the legacy function \" %s \" anymore; use \" %s \" instead (complete removal is planned for \" %s \" ). " , function_name , replacement_name , version ) ;
2018-04-04 19:17:16 +00:00
}