Ejemplo n.º 1
0
        public GameRulesetGameMode(ulong key)
        {
            STUGameRulesetGameMode stu = GetInstance <STUGameRulesetGameMode>(key);

            if (stu == null)
            {
                return;
            }
            Init(stu, key);
        }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 3
0
 public GameRulesetGameMode(STUGameRulesetGameMode stu)
 {
     Init(stu);
 }