コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: DevCommands.cs プロジェクト: Antr0py/VoxelRTS
        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);
        }
コード例 #3
0
 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));
     }
 }