KF2-YetAnotherScoreboard/YAS/Classes/PlayerRankRelations.uc

32 lines
564 B
Ucode
Raw Normal View History

2021-06-09 00:48:03 +03:00
class PlayerRankRelations extends Object
dependson(Types)
2021-06-20 08:04:22 +03:00
config(YAS);
2021-06-09 00:48:03 +03:00
2021-06-12 23:11:37 +03:00
`include(Build.uci)
`include(Logger.uci)
2021-06-13 06:17:40 +03:00
var config array<RankRelation> Relation;
2021-07-05 06:02:30 +03:00
public static function InitConfig(int ConfigVersion)
{
local RankRelation ExamplePlayer;
`callstack_static("InitConfig");
switch (ConfigVersion)
{
case 0:
// Example player
ExamplePlayer.ObjectID = "76561198001617867"; // GenZmeY SteamID64
ExamplePlayer.RankID = 0;
default.Relation.AddItem(ExamplePlayer);
case 2147483647:
StaticSaveConfig();
}
}
DefaultProperties
{
}