public static bool TryParse(string c, out DevCommand command) { Match m = REGEX.Match(c); if(m.Success) { command = new DevCommandCapital(RegexHelper.ExtractInt(m)); return true; } command = null; return false; }
public static bool TryParse(string c, out DevCommand command) { Match m = REGEX.Match(c); if (m.Success) { command = new DevCommandCapital(RegexHelper.ExtractInt(m)); return(true); } command = null; return(false); }
private void ApplyLogic(GameState s, float dt, DevCommandCapital c) { foreach(var t in s.activeTeams) { t.Team.Input.AddEvent(new CapitalEvent(t.Team.Index, c.change)); } }