Beispiel #1
0
        public static InvDropPacket Read(NBufferReader reader)
        {
            var ret = new InvDropPacket();

            ret.Obj = ObjectSlot.Read(reader);
            return(ret);
        }
Beispiel #2
0
        public static UseItemPacket Read(NBufferReader reader)
        {
            var ret = new UseItemPacket();

            ret.Time     = reader.ReadUInt32();
            ret.Slot     = ObjectSlot.Read(reader);
            ret.Position = Position.Read(reader);
            ret.UseType  = reader.ReadByte();
            return(ret);
        }
Beispiel #3
0
        public static InvSwapPacket Read(NBufferReader reader)
        {
            var ret = new InvSwapPacket();

            ret.Time     = reader.ReadUInt32();
            ret.Position = Position.Read(reader);
            ret.Obj1     = ObjectSlot.Read(reader);
            ret.Obj2     = ObjectSlot.Read(reader);
            return(ret);
        }