internal void WriteError(ActionGetter actionGetter, int errorCode, string errorInfo) { Action <BaseGameResponse, ActionGetter, int, string> handler = WriteErrorCallback; if (handler != null) { handler(this, actionGetter, errorCode, errorInfo); } }
/// <summary> /// /// </summary> /// <param name="aActionId"></param> /// <param name="actionGetter"></param> protected BinaryAction(int aActionId, ActionGetter actionGetter) : base(aActionId, actionGetter) { }
/// <summary> /// 构造函数 /// </summary> /// <param name="aActionId"></param> /// <param name="actionGetter"></param> protected BaseStruct(int aActionId, ActionGetter actionGetter) : base(aActionId) { actionId = aActionId; this.actionGetter = actionGetter; }
/// <summary> /// /// </summary> /// <param name="actionGetter"></param> /// <returns></returns> public static bool CheckRunloader(ActionGetter actionGetter) { return(!IsRealse && actionGetter.IsRunloader()); }
/// <summary> /// /// </summary> /// <param name="aActionId"></param> /// <param name="actionGetter"></param> protected BinaryAction(int aActionId, ActionGetter actionGetter) : base(aActionId, actionGetter) { actionGetter.OpCode = OpCode.Binary; }
/// <summary> /// /// </summary> /// <param name="aActionId"></param> /// <param name="actionGetter"></param> protected JsonAction(int aActionId, ActionGetter actionGetter) : base(aActionId, actionGetter) { IsWebSocket = true; actionGetter.OpCode = OpCode.Text; }
/// <summary> /// init /// </summary> /// <param name="paramGetter"></param> /// <param name="response"></param> protected RemoteStruct(ActionGetter paramGetter, MessageStructure response) { this.paramGetter = paramGetter; this.response = response; }
/// <summary> /// /// </summary> /// <param name="aActionId"></param> /// <param name="actionGetter"></param> protected JsonAction(int aActionId, ActionGetter actionGetter) : base(aActionId, actionGetter) { }