24 lines
494 B
C++
24 lines
494 B
C++
//
|
|
// Created by main on 24-10-22.
|
|
//
|
|
|
|
#ifndef FUGG_PACKET_H
|
|
#define FUGG_PACKET_H
|
|
|
|
namespace fugg {
|
|
struct Packet {
|
|
uint32_t id;
|
|
};
|
|
|
|
struct PacketMoveItemInInventory : Packet {
|
|
uint32_t from_slot;
|
|
uint32_t to_slot;
|
|
|
|
PacketMoveItemInInventory(uint32_t from_slot, uint32_t to_slot) : Packet{0x2001},
|
|
from_slot(from_slot), to_slot(to_slot) {}
|
|
};
|
|
};
|
|
|
|
|
|
#endif //FUGG_PACKET_H
|