rename some config vars
This commit is contained in:
parent
312053df3c
commit
0230122287
@ -2,7 +2,7 @@ class RankRelations extends Object
|
|||||||
dependson(YAS_Types)
|
dependson(YAS_Types)
|
||||||
config(YAS);
|
config(YAS);
|
||||||
|
|
||||||
var public config Array<RankRelation> Relations;
|
var public config Array<RankRelation> Relation;
|
||||||
|
|
||||||
public static function InitConfig(int Version, int LatestVersion)
|
public static function InitConfig(int Version, int LatestVersion)
|
||||||
{
|
{
|
||||||
@ -24,13 +24,13 @@ private static function ApplyDefault()
|
|||||||
{
|
{
|
||||||
local RankRelation NewRankRelation;
|
local RankRelation NewRankRelation;
|
||||||
|
|
||||||
default.Relations.Length = 0;
|
default.Relation.Length = 0;
|
||||||
|
|
||||||
// Example relation:
|
// Example relation:
|
||||||
NewRankRelation.RankID = 1; // "Man of culture" ID
|
NewRankRelation.RankID = 1; // "Man of culture" ID
|
||||||
NewRankRelation.ObjectID = "103582791429670253"; // HENTAI Group SteamID64
|
NewRankRelation.ObjectID = "103582791429670253"; // HENTAI Group SteamID64
|
||||||
|
|
||||||
default.Relations.AddItem(NewRankRelation);
|
default.Relation.AddItem(NewRankRelation);
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -4,7 +4,7 @@ class Ranks extends Object
|
|||||||
|
|
||||||
var public config SystemRank Player;
|
var public config SystemRank Player;
|
||||||
var public config SystemRank Admin;
|
var public config SystemRank Admin;
|
||||||
var public config Array<Rank> Ranks;
|
var public config Array<Rank> Rank;
|
||||||
|
|
||||||
public static function InitConfig(int Version, int LatestVersion)
|
public static function InitConfig(int Version, int LatestVersion)
|
||||||
{
|
{
|
||||||
@ -35,7 +35,7 @@ private static function ApplyDefault()
|
|||||||
default.Admin.RankColor = MakeColor(250, 0, 0, 250);
|
default.Admin.RankColor = MakeColor(250, 0, 0, 250);
|
||||||
default.Admin.PlayerColor = MakeColor(250, 0, 0, 250);
|
default.Admin.PlayerColor = MakeColor(250, 0, 0, 250);
|
||||||
|
|
||||||
default.Ranks.Length = 0;
|
default.Rank.Length = 0;
|
||||||
|
|
||||||
// Example custom rank:
|
// Example custom rank:
|
||||||
NewRank.RankID = 1;
|
NewRank.RankID = 1;
|
||||||
@ -43,7 +43,7 @@ private static function ApplyDefault()
|
|||||||
NewRank.RankColor = MakeColor(0, 250, 0, 250);
|
NewRank.RankColor = MakeColor(0, 250, 0, 250);
|
||||||
NewRank.PlayerColor = MakeColor(250, 250, 250, 250);
|
NewRank.PlayerColor = MakeColor(250, 250, 250, 250);
|
||||||
|
|
||||||
default.Ranks.AddItem(NewRank);
|
default.Rank.AddItem(NewRank);
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -129,7 +129,7 @@ private function InitRanks() // TODO: Ref
|
|||||||
local Array<RankRelation> Relations;
|
local Array<RankRelation> Relations;
|
||||||
local RankRelation Relation;
|
local RankRelation Relation;
|
||||||
|
|
||||||
Relations = CfgRankRelations.default.Relations;
|
Relations = CfgRankRelations.default.Relation;
|
||||||
|
|
||||||
foreach Relations(Relation)
|
foreach Relations(Relation)
|
||||||
{
|
{
|
||||||
@ -158,7 +158,7 @@ private function AddRelation(RankRelation Relation, out Array<CachedRankRelation
|
|||||||
{
|
{
|
||||||
CachedRankRelation.RawID = Relation.ObjectID;
|
CachedRankRelation.RawID = Relation.ObjectID;
|
||||||
|
|
||||||
Ranks = CfgRanks.default.Ranks;
|
Ranks = CfgRanks.default.Rank;
|
||||||
foreach Ranks(Rank)
|
foreach Ranks(Rank)
|
||||||
{
|
{
|
||||||
if (Rank.RankID == Relation.RankID)
|
if (Rank.RankID == Relation.RankID)
|
||||||
|
Loading…
Reference in New Issue
Block a user