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

            if (m.Success)
            {
                string cwd = Directory.GetCurrentDirectory();
                command = new DevCommandSave(RegexHelper.ExtractFile(m, cwd));
                return(true);
            }
            command = null;
            return(false);
        }
 private void ApplyLogic(GameState s, float dt, DevCommandSave c)
 {
     GameEngine.Save(s, c.file.FullName);
 }
Example #3
0
 public static bool TryParse(string c, out DevCommand command)
 {
     Match m = REGEX.Match(c);
     if(m.Success) {
         string cwd = Directory.GetCurrentDirectory();
         command = new DevCommandSave(RegexHelper.ExtractFile(m, cwd));
         return true;
     }
     command = null;
     return false;
 }