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; } }
public override void ReadFrom(ApolloBufferReader reader) { reader.Read(ref OpenID); reader.Read(ref Url); reader.Read(ref EnableManualUpdate); reader.Read(ref MaxIdleTime); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
public override void ReadFrom(ApolloBufferReader reader) { reader.Read(ref Position); reader.Read(ref QueueLen); reader.Read(ref EstimateTime); }
public override void ReadFrom(ApolloBufferReader reader) { reader.Read(ref Type); reader.Read(ref Value); reader.Read(ref Expire); }
public override void ReadFrom(ApolloBufferReader reader) { base.ReadFrom(reader); }
public override void ReadFrom(ApolloBufferReader reader) { reader.Read(ref RoleInfos); }
public override void ReadFrom(ApolloBufferReader reader) { reader.Read(ref currentIP); reader.Read(ref currentServerID); }
public override void ReadFrom(ApolloBufferReader reader) { reader.Read(ref treeList); }
public override void ReadFrom(ApolloBufferReader reader) { reader.Read(ref RouteType); reader.Read(ref AllowLost); }
public override void ReadFrom(ApolloBufferReader reader) { reader.Read(ref Flag); reader.Read(ref Url); reader.Read(ref RoleCollection); }
public override void ReadFrom(ApolloBufferReader reader) { }
public override void ReadFrom(ApolloBufferReader reader) { base.ReadFrom(reader); reader.Read(ref TypeId); reader.Read(ref ZoneId); }
public override void ReadFrom(ApolloBufferReader reader) { reader.Read(ref Attr1); reader.Read(ref Attr2); reader.Read(ref UserData); }
protected virtual void BeforeDecode(ApolloBufferReader reader) { }
public override void ReadFrom(ApolloBufferReader reader) { base.ReadFrom(reader); reader.Read(ref ServiceName); }
public override void ReadFrom(ApolloBufferReader reader) { reader.Read(ref PluginName); reader.Read(ref GameId); reader.Read(ref GameKey); }
protected override void BeforeDecode(ApolloBufferReader reader) { reader.Read(ref action); }
public override void ReadFrom(ApolloBufferReader reader) { reader.Read(ref ChannelID); reader.Read(ref OpenID); }
public abstract void ReadFrom(ApolloBufferReader reader);