Organize generated protocol includes

This commit is contained in:
Robert Müller 2022-06-16 16:35:08 +02:00
parent da5ec5a0d2
commit 0a4b1b9a7b
3 changed files with 6 additions and 4 deletions

View file

@ -91,7 +91,7 @@ def main():
print("#ifndef GAME_GENERATED_PROTOCOL_H")
print("#define GAME_GENERATED_PROTOCOL_H")
print("#include <engine/shared/protocol.h>")
print("class CUnpacker;")
print("#include <engine/message.h>")
print(network.RawHeader)
@ -169,8 +169,9 @@ def main():
lines = []
lines += ['#include "protocol.h"']
lines += ['#include <engine/shared/packer.h>']
lines += ['#include <engine/shared/protocol.h>']
lines += ['#include <engine/message.h>']
lines += ['#include <engine/shared/uuid_manager.h>']
lines += ['#include <game/mapitems_ex.h>']
lines += ['CNetObjHandler::CNetObjHandler()']

View file

@ -96,7 +96,7 @@ def main():
print("#ifndef GAME_GENERATED_PROTOCOL7_H")
print("#define GAME_GENERATED_PROTOCOL7_H")
print("#include <engine/shared/protocol.h>")
print("class CUnpacker;")
print("#include <engine/message.h>")
print("namespace protocol7 {")
print(network.RawHeader)
@ -181,8 +181,8 @@ def main():
lines = []
lines += ['#include "protocol7.h"']
lines += ['#include <engine/shared/packer.h>']
lines += ['#include <engine/shared/protocol.h>']
lines += ['#include <engine/message.h>']
lines += ['namespace protocol7 {']

View file

@ -6,6 +6,7 @@
#include <engine/console.h>
#include <engine/shared/config.h>
#include <engine/shared/protocol.h>
#include <engine/shared/ringbuffer.h>
#include <game/client/component.h>