added 0728 structs + small CNStruct.hpp refactor

This commit is contained in:
CPunch 2020-08-20 11:36:29 -05:00
parent af6158fbb2
commit 7cf239e3af
3 changed files with 4892 additions and 12 deletions

View File

@ -1,7 +1,5 @@
/*
CNStructs.hpp - defines some basic structs & useful methods for packets used by FusionFall
NOTE: this is missing the vast majority of packets, I have also ommitted the ERR & FAIL packets for simplicity
CNStructs.hpp - defines some basic structs & useful methods for packets used by FusionFall based on the version defined
*/
#ifndef _CNS_HPP
@ -12,9 +10,9 @@
#include <stdint.h>
// Can't use this in MSVC.
#ifndef _MSC_VER
#include <sys/time.h>
#include <sys/time.h>
#else
#include <time.h>
#include <time.h>
#endif
#include <cstring>
#include <string>
@ -33,15 +31,11 @@ uint64_t getTime();
//#define CNPROTO_VERSION_0728
#define CNPROTO_VERSION_0104
#ifdef CNPROTO_VERSION_0728
#define AEQUIP_COUNT 12
#else
#define AEQUIP_COUNT 9
#endif
// ========================================================[[ beta-20100104 ]]========================================================
#ifdef CNPROTO_VERSION_0104
#if defined(CNPROTO_VERSION_0104)
#include "structs/0104.hpp"
#elif defined(CNPROTO_VERSION_0728)
#include "structs/0728.hpp"
#endif
#endif

View File

@ -1,5 +1,7 @@
/* genstructs.py */
#define AEQUIP_COUNT 9
#pragma pack(push)
#pragma pack(4)

4884
src/structs/0728.hpp Normal file

File diff suppressed because it is too large Load Diff