Example #1
0
        public static bool TryParse(string c, out DevCommand command)
        {
            Match m = REGEX.Match(c);

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