public static TickSettings ExodusSettings() { eTickSystem type = eTickSystem.SemiRealTime; float secondsPerTurn = 30f; return(new TickSettings(type, secondsPerTurn)); }
public static TickSettings HotseatSettings() { eTickSystem type = eTickSystem.TurnBased; float secondsPerTurn = 1f; return(new TickSettings(type, secondsPerTurn)); }
public static TickSystem Make(HomelandsGame game, TickSettings settings) { eTickSystem type = settings._type; if (type == eTickSystem.TurnBased) { return new TickSysTurnBased(game, settings); } else if (type == eTickSystem.SemiRealTime) { return new TickSysRealTime(game, settings); } else { throw new System.NotImplementedException(); } }
public TickSettings(TickConfigs configs) { _type = configs._type; _secondsPerTurn = configs._secondsPerTurn; }
public TickSettings(eTickSystem type, float secondsPerTurn) { _type = type; _secondsPerTurn = secondsPerTurn; }