public MethodParamPair( MethodParamResult method, Interfaces.IEventInput input) { _method = method; _params = input; }
public void AddMethod(MethodParamResult inMethod,Data.Inputs.Interfaces.IEventInput input) { MethodParamPair pair = new MethodParamPair(inMethod, input); _methods.AddLast(pair); if (_current == null) _current = _methods.First; }
public MethodParamPair( MethodParamResult method, Interfaces.IEventInput input) { _method = method; _params = input; }
public MethodParamPair( MethodParamResult method, Interfaces.IEventInput input, Collections.ExitPathGroup _paths) { _result = MethodResult.None; _method = method; _params = input; _exitPaths = _paths; }
public MethodParamPair( MethodParamResult method, Interfaces.IEventInput input, int nextMethod) { _result = MethodResult.None; _method = method; _params = input; _exitPaths = new Dictionary<MethodResult, int>(); _exitPaths[MethodResult.Success] = nextMethod; }
public MethodParamPair( MethodParamResult method, Interfaces.IEventInput input, Collections.ExitPathGroup _paths) { _result = MethodResult.None; _method = method; _params = input; _exitPaths = _paths; }
public MethodParamPair( MethodParamResult method, Interfaces.IEventInput input, int nextMethod) { _result = MethodResult.None; _method = method; _params = input; _exitPaths = new Dictionary <MethodResult, int>(); _exitPaths[MethodResult.Success] = nextMethod; }
public void AddMethod(MethodParamResult inMethod, Data.Inputs.Interfaces.IEventInput input) { MethodParamPair pair = new MethodParamPair(inMethod, input, 0); _methods.AddLast(pair); if (_current == null) { _current = _methods.First; } }
public static Data.Inputs.MethodParamPair GenerateMethodFromString(string input) { Data.Inputs.MethodParamPair output = null; string[] temp = input.Split(';'); string methodName = temp[0].ToLower(); switch (methodName) { case "addgold": { if (temp.Length != 2) { throw new Data.Exceptions.EngineException("Incorrect number of parameters passed", false); } try { MethodParamResult method = AdjustGold; IntInput parameter = new IntInput(); parameter.Input = int.Parse(temp[1]); output = new MethodParamPair(method, parameter); } catch { EquestriEngine.ErrorMessage = "Error Creating MethodParamPair"; } break; } case "addexp": { MethodParamResult method = AdjustGold; IntInput parameter = new IntInput(); parameter.Input = int.Parse(temp[1]); output = new MethodParamPair(method, parameter); break; } case "toggleswitch": { if (temp.Length != 2) { throw new Data.Exceptions.EngineException("Incorrect number of parameters passed", false); } MethodParamResult method = ToggleSwitch; StringInput parameter = new StringInput(); parameter.Input = temp[1]; output = new MethodParamPair(method, parameter); break; } case "activateswitch": { if (temp.Length != 2) { throw new Data.Exceptions.EngineException("Incorrect number of parameters passed", false); } break; } case "deactivateswitch": { if (temp.Length != 2) { throw new Data.Exceptions.EngineException("Incorrect number of parameters passed", false); } break; } default: throw new Data.Exceptions.EngineException("Method name Not Found", false); } return(output); }