Example #1
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            LifePoints    = reader.ReadVarInt();
            MaxLifePoints = reader.ReadVarInt();
            Prospecting   = reader.ReadVarShort();
            RegenRate     = reader.ReadByte();
            Initiative    = reader.ReadVarShort();
            AlignmentSide = reader.ReadByte();
            WorldX        = reader.ReadShort();
            WorldY        = reader.ReadShort();
            MapId         = reader.ReadDouble();
            SubAreaId     = reader.ReadVarShort();
            var statusTypeId = reader.ReadShort();

            Status = new PlayerStatus();
            Status.Deserialize(reader);
            var countEntities = reader.ReadShort();

            Entities = new List <PartyEntityBaseInformation>();
            for (short i = 0; i < countEntities; i++)
            {
                var entitiestypeId = reader.ReadShort();
                PartyEntityBaseInformation type = new PartyEntityBaseInformation();
                type.Deserialize(reader);
                Entities.Add(type);
            }
        }
Example #2
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            WorldX    = reader.ReadShort();
            WorldY    = reader.ReadShort();
            MapId     = reader.ReadDouble();
            SubAreaId = reader.ReadVarShort();
            var countEntities = reader.ReadShort();

            Entities = new List <PartyEntityBaseInformation>();
            for (short i = 0; i < countEntities; i++)
            {
                PartyEntityBaseInformation type = new PartyEntityBaseInformation();
                type.Deserialize(reader);
                Entities.Add(type);
            }
        }
Example #3
0
        public override void Deserialize(ICustomDataInput reader)
        {
            GuestId   = reader.ReadVarLong();
            HostId    = reader.ReadVarLong();
            Name      = reader.ReadUTF();
            GuestLook = new EntityLook();
            GuestLook.Deserialize(reader);
            Breed = reader.ReadByte();
            Sex   = reader.ReadBoolean();
            var statusTypeId = reader.ReadShort();

            Status = new PlayerStatus();
            Status.Deserialize(reader);
            var countEntities = reader.ReadShort();

            Entities = new List <PartyEntityBaseInformation>();
            for (short i = 0; i < countEntities; i++)
            {
                PartyEntityBaseInformation type = new PartyEntityBaseInformation();
                type.Deserialize(reader);
                Entities.Add(type);
            }
        }