예제 #1
0
        internal void WriteError(ActionGetter actionGetter, int errorCode, string errorInfo)
        {
            Action <BaseGameResponse, ActionGetter, int, string> handler = WriteErrorCallback;

            if (handler != null)
            {
                handler(this, actionGetter, errorCode, errorInfo);
            }
        }
예제 #2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="aActionId"></param>
 /// <param name="actionGetter"></param>
 protected BaseStruct(int aActionId, ActionGetter actionGetter) :
     base(aActionId)
 {
     actionId          = aActionId;
     this.actionGetter = actionGetter;
 }
예제 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="actionGetter"></param>
 /// <returns></returns>
 public static bool CheckRunloader(ActionGetter actionGetter)
 {
     return(!IsRealse && actionGetter.IsRunloader());
 }
예제 #4
0
 /// <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;
 }
예제 #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="aActionId"></param>
 /// <param name="actionGetter"></param>
 protected BinaryAction(int aActionId, ActionGetter actionGetter)
     : base(aActionId, actionGetter)
 {
     actionGetter.OpCode = OpCode.Binary;
 }
예제 #6
0
 /// <summary>
 /// init
 /// </summary>
 /// <param name="paramGetter"></param>
 /// <param name="response"></param>
 protected RemoteStruct(ActionGetter paramGetter, MessageStructure response)
 {
     this.paramGetter = paramGetter;
     this.response    = response;
 }