Switched to the #pragma once system
This commit is contained in:
@@ -19,8 +19,7 @@
|
||||
* 3. This notice may not be removed or altered from any source
|
||||
* distribution.
|
||||
*/
|
||||
#ifndef CHARACTERPACKET_HPP_
|
||||
#define CHARACTERPACKET_HPP_
|
||||
#pragma once
|
||||
|
||||
#include "serial_packet_base.hpp"
|
||||
|
||||
@@ -45,5 +44,3 @@ struct CharacterPacket : SerialPacketBase {
|
||||
|
||||
void serializeCharacter(void* buffer, CharacterPacket* packet);
|
||||
void deserializeCharacter(void* buffer, CharacterPacket* packet);
|
||||
|
||||
#endif
|
||||
@@ -19,8 +19,7 @@
|
||||
* 3. This notice may not be removed or altered from any source
|
||||
* distribution.
|
||||
*/
|
||||
#ifndef CLIENTPACKET_HPP_
|
||||
#define CLIENTPACKET_HPP_
|
||||
#pragma once
|
||||
|
||||
#include "serial_packet_base.hpp"
|
||||
|
||||
@@ -33,5 +32,3 @@ struct ClientPacket : SerialPacketBase {
|
||||
|
||||
void serializeClient(void* buffer, ClientPacket* packet);
|
||||
void deserializeClient(void* buffer, ClientPacket* packet);
|
||||
|
||||
#endif
|
||||
@@ -19,8 +19,7 @@
|
||||
* 3. This notice may not be removed or altered from any source
|
||||
* distribution.
|
||||
*/
|
||||
#ifndef MONSTERPACKET_HPP_
|
||||
#define MONSTERPACKET_HPP_
|
||||
#pragma once
|
||||
|
||||
#include "serial_packet_base.hpp"
|
||||
|
||||
@@ -42,5 +41,3 @@ struct MonsterPacket : SerialPacketBase {
|
||||
|
||||
void serializeMonster(void* buffer, MonsterPacket* packet);
|
||||
void deserializeMonster(void* buffer, MonsterPacket* packet);
|
||||
|
||||
#endif
|
||||
@@ -19,8 +19,7 @@
|
||||
* 3. This notice may not be removed or altered from any source
|
||||
* distribution.
|
||||
*/
|
||||
#ifndef REGIONPACKET_HPP_
|
||||
#define REGIONPACKET_HPP_
|
||||
#pragma once
|
||||
|
||||
#include "serial_packet_base.hpp"
|
||||
|
||||
@@ -44,5 +43,3 @@ struct RegionPacket : SerialPacketBase {
|
||||
|
||||
void serializeRegion(void* buffer, RegionPacket* packet);
|
||||
void deserializeRegion(void* buffer, RegionPacket* packet);
|
||||
|
||||
#endif
|
||||
@@ -19,8 +19,7 @@
|
||||
* 3. This notice may not be removed or altered from any source
|
||||
* distribution.
|
||||
*/
|
||||
#ifndef SERIALPACKETBASE_HPP_
|
||||
#define SERIALPACKETBASE_HPP_
|
||||
#pragma once
|
||||
|
||||
#include "serial_packet_type.hpp"
|
||||
|
||||
@@ -35,5 +34,3 @@ struct SerialPacketBase {
|
||||
|
||||
virtual ~SerialPacketBase() {};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
* 3. This notice may not be removed or altered from any source
|
||||
* distribution.
|
||||
*/
|
||||
#ifndef SERVERPACKET_HPP_
|
||||
#define SERVERPACKET_HPP_
|
||||
#pragma once
|
||||
|
||||
#include "serial_packet_base.hpp"
|
||||
|
||||
@@ -33,5 +32,3 @@ struct ServerPacket : SerialPacketBase {
|
||||
|
||||
void serializeServer(void* buffer, ServerPacket* packet);
|
||||
void deserializeServer(void* buffer, ServerPacket* packet);
|
||||
|
||||
#endif
|
||||
@@ -19,8 +19,7 @@
|
||||
* 3. This notice may not be removed or altered from any source
|
||||
* distribution.
|
||||
*/
|
||||
#ifndef TEXTPACKET_HPP_
|
||||
#define TEXTPACKET_HPP_
|
||||
#pragma once
|
||||
|
||||
#include "serial_packet_base.hpp"
|
||||
|
||||
@@ -36,5 +35,3 @@ struct TextPacket : SerialPacketBase {
|
||||
|
||||
void serializeText(void* buffer, TextPacket* packet);
|
||||
void deserializeText(void* buffer, TextPacket* packet);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
* 3. This notice may not be removed or altered from any source
|
||||
* distribution.
|
||||
*/
|
||||
#ifndef SERIALPACKET_HPP_
|
||||
#define SERIALPACKET_HPP_
|
||||
#pragma once
|
||||
|
||||
#include "serial_packet_base.hpp"
|
||||
#include "character_packet.hpp"
|
||||
@@ -62,5 +61,3 @@ constexpr int PACKET_BUFFER_SIZE =
|
||||
REGION_METADATA_FOOTPRINT +
|
||||
REGION_TILE_FOOTPRINT +
|
||||
REGION_SOLID_FOOTPRINT;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
* 3. This notice may not be removed or altered from any source
|
||||
* distribution.
|
||||
*/
|
||||
#ifndef SERIALPACKETTYPE_HPP_
|
||||
#define SERIALPACKETTYPE_HPP_
|
||||
#pragma once
|
||||
|
||||
/* DOCS: The headers indicate what packet type is used for each message
|
||||
* different messages under the same header will carry different amounts of
|
||||
@@ -183,5 +182,3 @@ enum class SerialPacketType {
|
||||
|
||||
LAST
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -19,8 +19,7 @@
|
||||
* 3. This notice may not be removed or altered from any source
|
||||
* distribution.
|
||||
*/
|
||||
#ifndef SERIALIZEUTILITY_HPP_
|
||||
#define SERIALIZEUTILITY_HPP_
|
||||
#pragma once
|
||||
|
||||
#include "serial_packet_base.hpp"
|
||||
|
||||
@@ -33,5 +32,3 @@ void deserialCopy(void** buffer, void* data, int size);
|
||||
//primary functions
|
||||
void serializePacket(void* buffer, SerialPacketBase* packet);
|
||||
void deserializePacket(void* buffer, SerialPacketBase* packet);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
* 3. This notice may not be removed or altered from any source
|
||||
* distribution.
|
||||
*/
|
||||
#ifndef UDPNETWORKUTILITY_HPP_
|
||||
#define UDPNETWORKUTILITY_HPP_
|
||||
#pragma once
|
||||
|
||||
//common
|
||||
#include "serial_packet_base.hpp"
|
||||
@@ -73,5 +72,3 @@ private:
|
||||
UDPsocket socket = nullptr;
|
||||
UDPpacket* packet = nullptr;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user