public GameRulesetGameMode(ulong key) { STUGameRulesetGameMode stu = GetInstance <STUGameRulesetGameMode>(key); if (stu == null) { return; } Init(stu, key); }
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(); } }
public GameRulesetGameMode(STUGameRulesetGameMode stu) { Init(stu); }