RTSEngine.Data.DevCommandFOW.TryParse C# (CSharp) Method

TryParse() public static method

public static TryParse ( string c, DevCommand &command ) : bool
c string
command DevCommand
return bool
        public static bool TryParse(string c, out DevCommand command)
        {
            Match m;
            if((m = REGEX1.Match(c)).Success) {
                command = new DevCommandFOW(FogOfWar.Active);
                return true;
            }
            if((m = REGEX2.Match(c)).Success) {
                command = new DevCommandFOW(FogOfWar.Nothing);
                return true;
            }
            command = null;
            return false;
        }