Example #1
0
        public GameRulesetGameMode(ulong key)
        {
            STUGameRulesetGameMode stu = GetInstance <STUGameRulesetGameMode>(key);

            if (stu == null)
            {
                return;
            }
            Init(stu, key);
        }
Example #2
0
        private void Init(STUGameRulesetGameMode ruleset, ulong key = default)
        {
            GUID        = (teResourceGUID)key;
            Description = GetString(ruleset.m_description);
            GameMode    = new GameMode(ruleset.m_gamemode);

            if (ruleset.m_teams != null)
            {
                Teams = ruleset.m_teams.Select(x => new GameRulesetTeam(x)).ToList();
            }
        }
Example #3
0
 public GameRulesetGameMode(STUGameRulesetGameMode stu)
 {
     Init(stu);
 }