Beispiel #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);
            }
        }
Beispiel #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;
 }
Beispiel #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="actionGetter"></param>
 /// <returns></returns>
 public static bool CheckRunloader(ActionGetter actionGetter)
 {
     return(!IsRealse && actionGetter.IsRunloader());
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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;
 }