mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 17:48:19 +00:00
Organize generated protocol includes
This commit is contained in:
parent
da5ec5a0d2
commit
0a4b1b9a7b
|
@ -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()']
|
||||
|
|
|
@ -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 {']
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue