コード例 #1
0
        public override void Read(byte[] packet)
        {
            ProtocolReader reader = new ProtocolReader(packet);

            this.Tiles      = reader.ReadVector <TilePoint>(new ReadItemDelegate(reader.ReadTilePoint));
            this.NewObjects = reader.ReadVector <GameObject>(new ReadItemDelegate(reader.ReadGameObject));
            this.Drops      = reader.ReadVector <int>(new ReadItemDelegate(() => (object)reader.ReadInt32())); // idk why the f**k I have to use lambda
        }
コード例 #2
0
        public override void Read(byte[] packet)
        {
            ProtocolReader reader = new ProtocolReader(packet);

            this.Tiles = reader.ReadVector<TilePoint>(new ReadItemDelegate(reader.ReadTilePoint));
            this.NewObjects = reader.ReadVector<GameObject>(new ReadItemDelegate(reader.ReadGameObject));
            this.Drops = reader.ReadVector<int>(new ReadItemDelegate(() => (object)reader.ReadInt32())); // idk why the f**k I have to use lambda
        }
コード例 #3
0
        public override void Read(byte[] packet)
        {
            ProtocolReader reader = new ProtocolReader(packet);

            this.TickId   = reader.ReadInt32();
            this.TickTime = reader.ReadInt32();
            this.Statuses = reader.ReadVector <ObjectStatusData>(new ReadItemDelegate(reader.ReadObjectStatusData));
        }
コード例 #4
0
        public override void Read(byte[] packet)
        {
            ProtocolReader reader = new ProtocolReader(packet);

            this.TickId = reader.ReadInt32();
            this.TickTime = reader.ReadInt32();
            this.Statuses = reader.ReadVector<ObjectStatusData>(new ReadItemDelegate(reader.ReadObjectStatusData));
        }
コード例 #5
0
        public override void Read(byte[] packet)
        {
            ProtocolReader reader = new ProtocolReader(packet);

            this.Width               = reader.ReadInt32();
            this.Height              = reader.ReadInt32();
            this.Name                = reader.ReadString();
            this.FP                  = reader.ReadUInt32();
            this.Background          = reader.ReadInt32();
            this.AllowPlayerTeleport = reader.ReadBool();
            this.ShowDisplays        = reader.ReadBool();
            this.ExtraXml            = reader.ReadVector <string>(new ReadItemDelegate(reader.ReadLongString));
        }
コード例 #6
0
        public override void Read(byte[] packet)
        {
            ProtocolReader reader = new ProtocolReader(packet);

            this.Width = reader.ReadInt32();
            this.Height = reader.ReadInt32();
            this.Name = reader.ReadString();
            this.FP = reader.ReadUInt32();
            this.Background = reader.ReadInt32();
            this.AllowPlayerTeleport = reader.ReadBool();
            this.ShowDisplays = reader.ReadBool();
            this.ExtraXml = reader.ReadVector<string>(new ReadItemDelegate(reader.ReadLongString));
        }