forked from teamnwah/openmw-tes3coop
[General] Make Send and RequestData functions non virtual
Move PVS-Studio cmake file to cmake directory
This commit is contained in:
parent
f271a65d93
commit
bc2cc07d67
3 changed files with 5 additions and 5 deletions
|
@ -81,7 +81,7 @@ endif(EXISTS ${PROJECT_SOURCE_DIR}/.git)
|
||||||
# Macros
|
# Macros
|
||||||
include(OpenMWMacros)
|
include(OpenMWMacros)
|
||||||
|
|
||||||
include(PVS-Studio.cmake)
|
include(PVS-Studio)
|
||||||
|
|
||||||
# doxygen main page
|
# doxygen main page
|
||||||
|
|
||||||
|
|
|
@ -17,9 +17,9 @@ namespace mwmp
|
||||||
virtual ~BasePacket() = default;
|
virtual ~BasePacket() = default;
|
||||||
|
|
||||||
virtual void Packet(RakNet::BitStream *bs, bool send);
|
virtual void Packet(RakNet::BitStream *bs, bool send);
|
||||||
virtual uint32_t Send(bool toOtherPlayers = true);
|
uint32_t Send(bool toOtherPlayers = true);
|
||||||
virtual uint32_t Send(RakNet::AddressOrGUID destination);
|
uint32_t Send(RakNet::AddressOrGUID destination);
|
||||||
virtual void Read();
|
void Read();
|
||||||
|
|
||||||
void setGUID(RakNet::RakNetGUID guid);
|
void setGUID(RakNet::RakNetGUID guid);
|
||||||
RakNet::RakNetGUID getGUID();
|
RakNet::RakNetGUID getGUID();
|
||||||
|
@ -27,7 +27,7 @@ namespace mwmp
|
||||||
void SetReadStream(RakNet::BitStream *bitStream);
|
void SetReadStream(RakNet::BitStream *bitStream);
|
||||||
void SetSendStream(RakNet::BitStream *bitStream);
|
void SetSendStream(RakNet::BitStream *bitStream);
|
||||||
void SetStreams(RakNet::BitStream *inStream, RakNet::BitStream *outStream);
|
void SetStreams(RakNet::BitStream *inStream, RakNet::BitStream *outStream);
|
||||||
virtual uint32_t RequestData(RakNet::RakNetGUID guid);
|
uint32_t RequestData(RakNet::RakNetGUID guid);
|
||||||
|
|
||||||
static inline uint32_t headerSize()
|
static inline uint32_t headerSize()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue