mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-22 13:30:06 +00:00
added 0728 structs + small CNStruct.hpp refactor
This commit is contained in:
parent
af6158fbb2
commit
7cf239e3af
@ -1,7 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
CNStructs.hpp - defines some basic structs & useful methods for packets used by FusionFall
|
CNStructs.hpp - defines some basic structs & useful methods for packets used by FusionFall based on the version defined
|
||||||
|
|
||||||
NOTE: this is missing the vast majority of packets, I have also ommitted the ERR & FAIL packets for simplicity
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _CNS_HPP
|
#ifndef _CNS_HPP
|
||||||
@ -12,9 +10,9 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
// Can't use this in MSVC.
|
// Can't use this in MSVC.
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#else
|
#else
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#endif
|
#endif
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -33,15 +31,11 @@ uint64_t getTime();
|
|||||||
//#define CNPROTO_VERSION_0728
|
//#define CNPROTO_VERSION_0728
|
||||||
#define CNPROTO_VERSION_0104
|
#define CNPROTO_VERSION_0104
|
||||||
|
|
||||||
#ifdef CNPROTO_VERSION_0728
|
|
||||||
#define AEQUIP_COUNT 12
|
|
||||||
#else
|
|
||||||
#define AEQUIP_COUNT 9
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// ========================================================[[ beta-20100104 ]]========================================================
|
// ========================================================[[ beta-20100104 ]]========================================================
|
||||||
#ifdef CNPROTO_VERSION_0104
|
#if defined(CNPROTO_VERSION_0104)
|
||||||
#include "structs/0104.hpp"
|
#include "structs/0104.hpp"
|
||||||
|
#elif defined(CNPROTO_VERSION_0728)
|
||||||
|
#include "structs/0728.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
/* genstructs.py */
|
/* genstructs.py */
|
||||||
|
|
||||||
|
#define AEQUIP_COUNT 9
|
||||||
|
|
||||||
#pragma pack(push)
|
#pragma pack(push)
|
||||||
|
|
||||||
#pragma pack(4)
|
#pragma pack(4)
|
||||||
|
4884
src/structs/0728.hpp
Normal file
4884
src/structs/0728.hpp
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user