Exemplo n.º 1
0
        public override void Deserialize(BinaryReader reader)
        {
            //
            base.Deserialize(reader);

            //
            GameName     = reader.ReadString(MediusConstants.MGCL_GAMENAME_MAXLEN);
            GameStats    = reader.ReadBytes(MediusConstants.MGCL_GAMESTATS_MAXLEN);
            GamePassword = reader.ReadString(MediusConstants.MGCL_GAMEPASSWORD_MAXLEN);
            reader.ReadBytes(3);
            ApplicationID    = reader.ReadInt32();
            MaxClients       = reader.ReadInt32();
            MinClients       = reader.ReadInt32();
            GameLevel        = reader.ReadInt32();
            PlayerSkillLevel = reader.ReadInt32();
            RulesSet         = reader.ReadInt32();
            GenericField1    = reader.ReadInt32();
            GenericField2    = reader.ReadInt32();
            GenericField3    = reader.ReadInt32();
            GenericField4    = reader.ReadInt32();
            GenericField5    = reader.ReadInt32();
            GenericField6    = reader.ReadInt32();
            GenericField7    = reader.ReadInt32();
            GenericField8    = reader.ReadInt32();
            GameHostType     = reader.Read <MGCL_GAME_HOST_TYPE>();
            reader.ReadBytes(3);
            AddressList = reader.Read <NetAddressList>();
            WorldID     = reader.ReadInt32();
            AccountID   = reader.ReadInt32();
        }
Exemplo n.º 2
0
        public override void Deserialize(BinaryReader reader)
        {
            //
            base.Deserialize(reader);

            //
            reader.ReadBytes(3);
            TrustLevel  = reader.Read <MGCL_TRUST_LEVEL>();
            AddressList = reader.Read <NetAddressList>();
        }
        public override void Deserialize(BinaryReader reader)
        {
            //
            base.Deserialize(reader);

            //
            reader.ReadBytes(3);
            CurrentMediusWorldID = reader.ReadInt32();
            NewGameWorldID       = reader.ReadInt32();
            AddressList          = reader.Read <NetAddressList>();
        }
Exemplo n.º 4
0
        public override void Deserialize(BinaryReader reader)
        {
            //
            base.Deserialize(reader);

            //
            SessionKey = reader.ReadString(MediusConstants.SESSIONKEY_MAXLEN);
            reader.ReadBytes(2);
            MediusWorldID = reader.ReadInt32();
            JoinType      = reader.Read <MediusJoinType>();
            GamePassword  = reader.ReadString(MediusConstants.GAMEPASSWORD_MAXLEN);
            GameHostType  = reader.Read <MediusGameHostType>();
            pubKey        = reader.Read <RSA_KEY>();
            AddressList   = reader.Read <NetAddressList>();
        }