public static bool TryParse(string c, out DevCommand command) { Match m = REGEX.Match(c); if (m.Success) { command = new DevCommandKillBuildings(); return(true); } command = null; return(false); }
private void ApplyLogic(GameState s, float dt, DevCommandKillBuildings c) { RTSTeam team; for(int ti = 0; ti < s.activeTeams.Length; ti++) { team = s.activeTeams[ti].Team; foreach(var building in team.Buildings) { building.Damage(9001); // OVER 9000 } } }
public static bool TryParse(string c, out DevCommand command) { Match m = REGEX.Match(c); if(m.Success) { command = new DevCommandKillBuildings(); return true; } command = null; return false; }