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); }
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; }