Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 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
         }
     }
 }
Ejemplo n.º 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;
 }