public GameRequest(string name, byte eventCode, int requestDelayMiliSeconds, RequestStartHandler startHandler, RequestDecisiontHandler decisionHandler) { Name = name; EventCode = eventCode; RequestDelay = requestDelayMiliSeconds; StartaHandler = startHandler; DecisionHandler = decisionHandler; }
/// <summary>registers game request using given name, type of content, request delay, start handler and decision handler</summary> public static void RegisterGameRequest(string nameOfRequest, Type contentType, int requestDelayMiliseconds, RequestStartHandler startHandler, RequestDecisiontHandler decisionHandler) { if (!string.IsNullOrEmpty(nameOfRequest)) { eventHandler.RegisterGameRequest(nameOfRequest, contentType, requestDelayMiliseconds, startHandler, decisionHandler); } }