Example #1
0
        public string GameName;  // WORLDNAME_MAXLEN

        public void Deserialize(BinaryReader reader)
        {
            ConnectStatus      = reader.Read <MediusPlayerStatus>();
            MediusLobbyWorldID = reader.ReadInt32();
            MediusGameWorldID  = reader.ReadInt32();
            LobbyName          = reader.ReadString(MediusConstants.WORLDNAME_MAXLEN);
            GameName           = reader.ReadString(MediusConstants.WORLDNAME_MAXLEN);
        }
        public override void Deserialize(BinaryReader reader)
        {
            //
            base.Deserialize(reader);

            //
            reader.ReadBytes(3);
            StatusCode      = reader.Read <MediusCallbackStatus>();
            AccountName     = reader.ReadString(MediusConstants.ACCOUNTNAME_MAXLEN);
            ApplicationID   = reader.ReadInt32();
            PlayerStatus    = reader.Read <MediusPlayerStatus>();
            ConnectionClass = reader.Read <MediusConnectionType>();
            Stats           = reader.ReadBytes(MediusConstants.ACCOUNTSTATS_MAXLEN);
        }
        public override void Deserialize(BinaryReader reader)
        {
            //
            base.Deserialize(reader);

            //
            reader.ReadBytes(3);
            StatusCode        = reader.Read <MediusCallbackStatus>();
            IgnoreAccountID   = reader.ReadInt32();
            IgnoreAccountName = reader.ReadString(MediusConstants.ACCOUNTNAME_MAXLEN);
            PlayerStatus      = reader.Read <MediusPlayerStatus>();
            EndOfList         = reader.ReadBoolean();
            reader.ReadBytes(3);
        }