2021-06-08 21:48:03 +00:00
|
|
|
class PlayerRankRelations extends Object
|
|
|
|
dependson(Types)
|
2021-06-20 05:04:22 +00:00
|
|
|
config(YAS);
|
2021-06-08 21:48:03 +00:00
|
|
|
|
2021-06-12 20:11:37 +00:00
|
|
|
`include(Build.uci)
|
|
|
|
`include(Logger.uci)
|
|
|
|
|
2021-06-13 03:17:40 +00:00
|
|
|
var config array<RankRelation> Relation;
|
2021-07-05 03:02:30 +00: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
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|