Example #1
0
        protected override void Read(NReader rdr)
        {
            Tiles = new TileData[rdr.ReadInt16()];
            for (int i = 0; i < Tiles.Length; i++)
            {
                Tiles[i] = new TileData
                {
                    X    = rdr.ReadInt16(),
                    Y    = rdr.ReadInt16(),
                    Tile = rdr.ReadUInt16()
                };
            }

            NewObjects = new ObjectDef[rdr.ReadInt16()];
            for (int i = 0; i < NewObjects.Length; i++)
            {
                NewObjects[i] = ObjectDef.Read(rdr);
            }

            RemovedObjectIds = new int[rdr.ReadInt16()];
            for (int i = 0; i < RemovedObjectIds.Length; i++)
            {
                RemovedObjectIds[i] = rdr.ReadInt32();
            }
        }
        protected override void Read(ClientProcessor psr, NReader rdr)
        {
            Tiles = new TileData[rdr.ReadInt16()];
            for (var i = 0; i < Tiles.Length; i++)
            {
                Tiles[i] = new TileData
                {
                    X    = rdr.ReadInt16(),
                    Y    = rdr.ReadInt16(),
                    Tile = (Tile)rdr.ReadByte()
                };
            }

            NewObjects = new ObjectDef[rdr.ReadInt16()];
            for (var i = 0; i < NewObjects.Length; i++)
            {
                NewObjects[i] = ObjectDef.Read(rdr);
            }

            RemovedObjectIds = new int[rdr.ReadInt16()];
            for (var i = 0; i < RemovedObjectIds.Length; i++)
            {
                RemovedObjectIds[i] = rdr.ReadInt32();
            }
        }
Example #3
0
        protected override void Read(NReader rdr)
        {
            Tiles = new TileData[rdr.ReadInt16()];
            for (var i = 0; i < Tiles.Length; i++)
            {
                Tiles[i] = new TileData()
                {
                    X    = rdr.ReadInt16(),
                    Y    = rdr.ReadInt16(),
                    Tile = (Tile)rdr.ReadUInt16(),
                };
            }

            NewObjs = new ObjectDef[rdr.ReadInt16()];
            for (var i = 0; i < NewObjs.Length; i++)
            {
                NewObjs[i] = ObjectDef.Read(rdr);
            }

            Drops = new int[rdr.ReadInt16()];
            for (var i = 0; i < Drops.Length; i++)
            {
                Drops[i] = rdr.ReadInt32();
            }
        }
Example #4
0
        protected override void Read(DReader rdr)
        {
            Tiles = new TileData[rdr.ReadInt16()];
            for (var i = 0; i < Tiles.Length; i++)
            {
                Tiles[i] = new TileData
                {
                    X    = rdr.ReadInt16(),
                    Y    = rdr.ReadInt16(),
                    Type = rdr.ReadUInt16()
                };
            }

            NewObjects = new ObjectDef[rdr.ReadInt16()];
            for (var i = 0; i < NewObjects.Length; i++)
            {
                NewObjects[i] = ObjectDef.Read(rdr);
            }

            Drops = new int[rdr.ReadInt16()];
            for (int i = 0; i < Drops.Length; i++)
            {
                Drops[i] = rdr.ReadInt32();
            }
        }
Example #5
0
        protected override void Read(Client psr, NReader rdr)
        {
            Tiles = new TileData[rdr.ReadInt16()];
            for (int i = 0; i < Tiles.Length; i++)
            {
                Tiles[i] = TileData.Read(psr, rdr);
            }

            NewObjects = new ObjectDef[rdr.ReadInt16()];
            for (int i = 0; i < NewObjects.Length; i++)
            {
                NewObjects[i] = ObjectDef.Read(psr, rdr);
            }

            RemovedObjectIds = new int[rdr.ReadInt16()];
            for (int i = 0; i < RemovedObjectIds.Length; i++)
            {
                RemovedObjectIds[i] = rdr.ReadInt32();
            }
        }