public static bool TryParse(string c, out DevCommand command) { Match m = REGEX.Match(c); if(m.Success) { command = new DevCommandKillBuildings(); return true; } command = null; return false; }