KF2-MSK-GS/MSKGS-SRV/Classes/CfgSrvRank.uc

51 lines
967 B
Ucode
Raw Normal View History

2022-08-16 06:59:16 +00:00
class CfgSrvRank extends Object
config(MSKGS)
abstract;
2022-08-30 02:42:39 +00:00
var public config bool bAuto;
var public config bool bCustom;
var public config bool bUsesStats;
2022-09-02 12:48:35 +00:00
var public config bool bServerExiled;
var public config bool bAntiCheat;
2022-08-30 02:42:39 +00:00
var public config String PasswdText;
2022-08-16 06:59:16 +00:00
public static function InitConfig(int Version, int LatestVersion, E_LogLevel LogLevel)
{
`Log_TraceStatic();
switch (Version)
{
case `NO_CONFIG:
ApplyDefault(LogLevel);
default: break;
}
if (LatestVersion != Version)
{
StaticSaveConfig();
}
}
public static function Load(E_LogLevel LogLevel)
{
`Log_TraceStatic();
}
protected static function ApplyDefault(E_LogLevel LogLevel)
{
`Log_TraceStatic();
2022-09-02 12:48:35 +00:00
default.bAuto = true;
default.bCustom = false;
default.bUsesStats = true;
default.bServerExiled = false;
default.bAntiCheat = true;
default.PasswdText = "";
2022-08-16 06:59:16 +00:00
}
defaultproperties
{
}