예제 #1
0
        public override void ReadFrom(ApolloBufferReader reader)
        {
            int tmp = 0;

            reader.Read(ref tmp);
            Type = (TreeNodeType)tmp;
            switch (Type)
            {
            case TreeNodeType.Category:
            {
                Category = new CategoryNode();
                reader.Read(ref Category);
            }
            break;

            case TreeNodeType.Leaf:
            {
                Leaf = new LeafNode();
                reader.Read(ref Leaf);
                break;
            }

            default:
                return;
            }
        }
예제 #2
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
     reader.Read(ref OpenID);
     reader.Read(ref Url);
     reader.Read(ref EnableManualUpdate);
     reader.Read(ref MaxIdleTime);
 }
예제 #3
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
     reader.Read(ref Channel);
     reader.Read(ref OpenId);
     reader.Read(ref UserId);
     reader.Read(ref Uid);
     reader.Read(ref tokenList);
 }
예제 #4
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
     reader.Read(ref ErrCode);
     reader.Read(ref ErrMsg);
     reader.Read(ref Token);
     reader.Read(ref PassTime);
     reader.Read(ref JoinTime);
 }
예제 #5
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
     reader.Read(ref ErrorCode);
     reader.Read(ref Reason);
     reader.Read(ref Extend);
     reader.Read(ref Extend2);
     reader.Read(ref Extend3);
 }
예제 #6
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
     reader.Read(ref Url);
     reader.Read(ref AppId);
     reader.Read(ref OpenId);
     reader.Read(ref Token);
     reader.Read(ref AuthType);
     reader.Read(ref Channel);
 }
예제 #7
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
     reader.Read(ref Type);
     reader.Read(ref ErrCode);
     reader.Read(ref ErrMsg);
     reader.Read(ref CurPosition);
     reader.Read(ref TotalCount);
     reader.Read(ref EstimatedTime);
 }
예제 #8
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
     reader.Read(ref DetailState);
     reader.Read(ref Carrier);
     reader.Read(ref CarrierCode);
     reader.Read(ref SSID);
     reader.Read(ref BSSID);
     reader.Read(ref CurrentAPN);
 }
예제 #9
0
        protected override void BeforeDecode(ApolloBufferReader reader)
        {
            reader.Read(ref type);

            reader.Read(ref Id);
            reader.Read(ref ParentId);
            reader.Read(ref Name);
            reader.Read(ref Tag);
            reader.Read(ref CustomData);
        }
예제 #10
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
     reader.Read(ref OpenId);
     reader.Read(ref TreeId);
     reader.Read(ref LeafId);
     reader.Read(ref LastLoginTime);
     reader.Read(ref RoleId);
     reader.Read(ref RoleLevel);
     reader.Read(ref RoleName);
     reader.Read(ref UserData);
 }
예제 #11
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
     reader.Read(ref MaxBufferSize);
     reader.Read(ref MaxSendMessageSize);
     reader.Read(ref MaxRecvMessageSize);
     reader.Read(ref EncMethod);
     reader.Read(ref KeyMakingMethod);
     reader.Read(ref DH);
     reader.Read(ref Timeout);
     reader.Read(ref LoopInterval);
     reader.Read(ref ClearBufferWhenReconnect);
     reader.Read(ref InfoType);
 }
예제 #12
0
 public bool Decode(ApolloBufferReader reader)
 {
     if (reader != null)
     {
         try
         {
             BeforeDecode(reader);
             ReadFrom(reader);
             return(true);
         }
         catch (Exception ex)
         {
             ADebug.LogException(ex);
             return(false);
         }
     }
     return(false);
 }
예제 #13
0
 public bool Decode(byte[] data)
 {
     if (data != null)
     {
         try
         {
             ApolloBufferReader reader = new ApolloBufferReader(data);
             BeforeDecode(reader);
             ReadFrom(reader);
             return(true);
         }
         catch (Exception ex)
         {
             ADebug.LogException(ex);
             return(false);
         }
     }
     return(false);
 }
예제 #14
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
     reader.Read(ref Position);
     reader.Read(ref QueueLen);
     reader.Read(ref EstimateTime);
 }
예제 #15
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
     reader.Read(ref Type);
     reader.Read(ref Value);
     reader.Read(ref Expire);
 }
예제 #16
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
     base.ReadFrom(reader);
 }
예제 #17
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
     reader.Read(ref RoleInfos);
 }
예제 #18
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
     reader.Read(ref currentIP);
     reader.Read(ref currentServerID);
 }
예제 #19
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
     reader.Read(ref treeList);
 }
예제 #20
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
     reader.Read(ref RouteType);
     reader.Read(ref AllowLost);
 }
예제 #21
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
     reader.Read(ref Flag);
     reader.Read(ref Url);
     reader.Read(ref RoleCollection);
 }
예제 #22
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
 }
예제 #23
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
     base.ReadFrom(reader);
     reader.Read(ref TypeId);
     reader.Read(ref ZoneId);
 }
예제 #24
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
     reader.Read(ref Attr1);
     reader.Read(ref Attr2);
     reader.Read(ref UserData);
 }
예제 #25
0
 protected virtual void BeforeDecode(ApolloBufferReader reader)
 {
 }
예제 #26
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
     base.ReadFrom(reader);
     reader.Read(ref ServiceName);
 }
예제 #27
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
     reader.Read(ref PluginName);
     reader.Read(ref GameId);
     reader.Read(ref GameKey);
 }
예제 #28
0
 protected override void BeforeDecode(ApolloBufferReader reader)
 {
     reader.Read(ref action);
 }
예제 #29
0
 public override void ReadFrom(ApolloBufferReader reader)
 {
     reader.Read(ref ChannelID);
     reader.Read(ref OpenID);
 }
예제 #30
0
 public abstract void ReadFrom(ApolloBufferReader reader);