#ifndef OPENMW_WORLDPACKET_HPP #define OPENMW_WORLDPACKET_HPP #include #include #include #include #include #include namespace mwmp { class WorldPacket : public BasePacket { public: WorldPacket(RakNet::RakPeerInterface *peer); ~WorldPacket(); virtual void Packet(RakNet::BitStream *bs, BaseEvent *event, bool send); virtual void Send(BaseEvent *event, bool toOtherPlayers = true); virtual void Send(BaseEvent *event, RakNet::AddressOrGUID destination); virtual void Read(BaseEvent *event); protected: BaseEvent *event; }; } #endif //OPENMW_WORLDPACKET_HPP