Skip to content

Commit

Permalink
reorder structs.h
Browse files Browse the repository at this point in the history
  • Loading branch information
pionere committed Nov 21, 2023
1 parent 46e1863 commit 7b844e9
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -2360,44 +2360,14 @@ typedef struct LightListStruct {
static_assert((sizeof(LightListStruct) & (sizeof(LightListStruct) - 1)) == 0, "Align LightListStruct closer to power of 2 for better performance.");
#endif

//////////////////////////////////////////////////
// diabloui
//////////////////////////////////////////////////

typedef struct _uidefaultstats {
uint16_t dsStrength;
uint16_t dsMagic;
uint16_t dsDexterity;
uint16_t dsVitality;
} _uidefaultstats;

typedef struct _uiheroinfo {
BYTE hiIdx;
BYTE hiLevel;
BYTE hiClass;
BYTE hiRank;
char hiName[16];
int16_t hiStrength;
int16_t hiMagic;
int16_t hiDexterity;
int16_t hiVitality;
BOOL hiHasSaved;
} _uiheroinfo;

typedef struct _uigamedata {
uint32_t aeVersionId;
int32_t aeSeed;
BYTE aeDifficulty;
BYTE aeTickRate;
BYTE aeNetUpdateRate; // (was defaultturnssec in vanilla)
BYTE aeMaxPlayers;
BYTE aePlayerId;
} _uigamedata;

//////////////////////////////////////////////////
// storm-net
//////////////////////////////////////////////////

typedef uint8_t plr_t;
typedef uint32_t cookie_t;
typedef uint32_t turn_t;

#pragma pack(push, 1)
typedef struct SNetGameData {
LE_UINT32 ngVersionId;
Expand Down Expand Up @@ -2428,10 +2398,6 @@ typedef struct SNetEvent {
unsigned databytes;
} SNetEvent;

typedef uint8_t plr_t;
typedef uint32_t cookie_t;
typedef uint32_t turn_t;

typedef struct SNetTurnPkt {
turn_t ntpTurn;
unsigned ntpLen;
Expand All @@ -2444,6 +2410,40 @@ typedef struct SNetMsgPkt {
BYTE data[32000]; // size does not matter, the struct is allocated dynamically
} SNetMsgPkt;

//////////////////////////////////////////////////
// diabloui
//////////////////////////////////////////////////

typedef struct _uidefaultstats {
uint16_t dsStrength;
uint16_t dsMagic;
uint16_t dsDexterity;
uint16_t dsVitality;
} _uidefaultstats;

typedef struct _uiheroinfo {
BYTE hiIdx;
BYTE hiLevel;
BYTE hiClass;
BYTE hiRank;
char hiName[16];
int16_t hiStrength;
int16_t hiMagic;
int16_t hiDexterity;
int16_t hiVitality;
BOOL hiHasSaved;
} _uiheroinfo;

typedef struct _uigamedata {
uint32_t aeVersionId;
int32_t aeSeed;
BYTE aeDifficulty;
BYTE aeTickRate;
BYTE aeNetUpdateRate; // (was defaultturnssec in vanilla)
BYTE aeMaxPlayers;
BYTE aePlayerId;
} _uigamedata;

//////////////////////////////////////////////////
// path
//////////////////////////////////////////////////
Expand Down

0 comments on commit 7b844e9

Please sign in to comment.