mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-24 05:18:40 +00:00
Remove "typedef struct" or "typedef enum" from a few places
This commit is contained in:
@@ -359,7 +359,7 @@ public:
|
|||||||
BOOL Publics; // contains public symbols
|
BOOL Publics; // contains public symbols
|
||||||
};
|
};
|
||||||
*/
|
*/
|
||||||
typedef struct IMAGEHLP_MODULE64_V2 {
|
struct IMAGEHLP_MODULE64_V2 {
|
||||||
DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_MODULE64)
|
DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_MODULE64)
|
||||||
DWORD64 BaseOfImage; // base load address of module
|
DWORD64 BaseOfImage; // base load address of module
|
||||||
DWORD ImageSize; // virtual size of the loaded module
|
DWORD ImageSize; // virtual size of the loaded module
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ protected:
|
|||||||
CHAR loadedImageName[STACKWALK_MAX_NAMELEN];
|
CHAR loadedImageName[STACKWALK_MAX_NAMELEN];
|
||||||
} CallstackEntry;
|
} CallstackEntry;
|
||||||
|
|
||||||
typedef enum CallstackEntryType {firstEntry, nextEntry, lastEntry};
|
enum CallstackEntryType {firstEntry, nextEntry, lastEntry};
|
||||||
|
|
||||||
virtual void OnSymInit(LPCSTR szSearchPath, DWORD symOptions, LPCSTR szUserName);
|
virtual void OnSymInit(LPCSTR szSearchPath, DWORD symOptions, LPCSTR szUserName);
|
||||||
virtual void OnLoadModule(LPCSTR img, LPCSTR mod, DWORD64 baseAddr, DWORD size, DWORD result, LPCSTR symType, LPCSTR pdbName, ULONGLONG fileVersion);
|
virtual void OnLoadModule(LPCSTR img, LPCSTR mod, DWORD64 baseAddr, DWORD size, DWORD result, LPCSTR symType, LPCSTR pdbName, ULONGLONG fileVersion);
|
||||||
|
|||||||
@@ -26,13 +26,13 @@
|
|||||||
//this is the only part of an EQStream that is seen by the application.
|
//this is the only part of an EQStream that is seen by the application.
|
||||||
|
|
||||||
|
|
||||||
typedef enum {
|
enum EQStreamState {
|
||||||
ESTABLISHED,
|
ESTABLISHED,
|
||||||
CLOSING, //waiting for pending data to flush.
|
CLOSING, //waiting for pending data to flush.
|
||||||
DISCONNECTING, //have sent disconnect, waiting for their disconnect reply.
|
DISCONNECTING, //have sent disconnect, waiting for their disconnect reply.
|
||||||
CLOSED, //received a disconnect from remote side.
|
CLOSED, //received a disconnect from remote side.
|
||||||
UNESTABLISHED
|
UNESTABLISHED
|
||||||
} EQStreamState;
|
};
|
||||||
|
|
||||||
class EQApplicationPacket;
|
class EQApplicationPacket;
|
||||||
class OpcodeManager;
|
class OpcodeManager;
|
||||||
|
|||||||
+2
-2
@@ -46,7 +46,7 @@
|
|||||||
#define GUILD_INITIATE 7
|
#define GUILD_INITIATE 7
|
||||||
#define GUILD_RECRUIT 8
|
#define GUILD_RECRUIT 8
|
||||||
|
|
||||||
typedef enum {
|
enum GuildAction {
|
||||||
GUILD_ACTION_BANNER_CHANGE = 1,
|
GUILD_ACTION_BANNER_CHANGE = 1,
|
||||||
GUILD_ACTION_BANNER_PLANT = 2,
|
GUILD_ACTION_BANNER_PLANT = 2,
|
||||||
GUILD_ACTION_BANNER_REMOVE = 3,
|
GUILD_ACTION_BANNER_REMOVE = 3,
|
||||||
@@ -77,6 +77,6 @@ typedef enum {
|
|||||||
GUILD_ACTION_REAL_ESTATE_GUILD_PLOT_SELL = 28,
|
GUILD_ACTION_REAL_ESTATE_GUILD_PLOT_SELL = 28,
|
||||||
GUILD_ACTION_REAL_ESTATE_MODIFY_TROPHIES = 29,
|
GUILD_ACTION_REAL_ESTATE_MODIFY_TROPHIES = 29,
|
||||||
GUILD_ACTION_MEMBERS_DEMOTE_SELF = 30,
|
GUILD_ACTION_MEMBERS_DEMOTE_SELF = 30,
|
||||||
} GuildAction;
|
};
|
||||||
|
|
||||||
constexpr int format_as(GuildAction action) { return static_cast<int>(action); }
|
constexpr int format_as(GuildAction action) { return static_cast<int>(action); }
|
||||||
|
|||||||
+1
-2
@@ -45,5 +45,4 @@ struct LootItem {
|
|||||||
uint32 lootdrop_id; // required for zone state referencing
|
uint32 lootdrop_id; // required for zone state referencing
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::list<LootItem*> LootItems;
|
using LootItems = std::list<LootItem*>;
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -38,10 +38,10 @@
|
|||||||
#define RELOADTASKS 0
|
#define RELOADTASKS 0
|
||||||
#define RELOADTASKSETS 2
|
#define RELOADTASKSETS 2
|
||||||
|
|
||||||
typedef enum {
|
enum TaskMethodType {
|
||||||
METHODSINGLEID = 0,
|
METHODSINGLEID = 0,
|
||||||
METHODQUEST = 2
|
METHODQUEST = 2
|
||||||
} TaskMethodType;
|
};
|
||||||
|
|
||||||
enum class TaskActivityType : int32_t // task element/objective
|
enum class TaskActivityType : int32_t // task element/objective
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -24,14 +24,14 @@
|
|||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
typedef enum {
|
enum CLE_Status {
|
||||||
Never,
|
Never,
|
||||||
Offline,
|
Offline,
|
||||||
Online,
|
Online,
|
||||||
CharSelect,
|
CharSelect,
|
||||||
Zoning,
|
Zoning,
|
||||||
InZone
|
InZone
|
||||||
} CLE_Status;
|
};
|
||||||
|
|
||||||
static const char *CLEStatusString[] = {
|
static const char *CLEStatusString[] = {
|
||||||
"Never",
|
"Never",
|
||||||
|
|||||||
+2
-2
@@ -25,10 +25,10 @@
|
|||||||
|
|
||||||
class LauncherLink;
|
class LauncherLink;
|
||||||
|
|
||||||
typedef struct {
|
struct LauncherZone{
|
||||||
std::string name;
|
std::string name;
|
||||||
uint16 port;
|
uint16 port;
|
||||||
} LauncherZone;
|
};
|
||||||
|
|
||||||
//a class exported to perl representing a launcher's in-DB config
|
//a class exported to perl representing a launcher's in-DB config
|
||||||
class EQLConfig {
|
class EQLConfig {
|
||||||
|
|||||||
@@ -69,10 +69,10 @@ protected:
|
|||||||
|
|
||||||
uint8 m_dynamicCount;
|
uint8 m_dynamicCount;
|
||||||
|
|
||||||
typedef struct {
|
struct ZoneState{
|
||||||
bool up;
|
bool up;
|
||||||
uint32 starts; //number of times this zone has started
|
uint32 starts; //number of times this zone has started
|
||||||
uint16 port; //the port this zone wants to use (0=pick one)
|
uint16 port; //the port this zone wants to use (0=pick one)
|
||||||
} ZoneState;
|
};
|
||||||
std::map<std::string, ZoneState> m_states;
|
std::map<std::string, ZoneState> m_states;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
#define MAX_SWARM_PETS 12 //this can change as long as you make more coords (swarm_pet_x/swarm_pet_y)
|
#define MAX_SWARM_PETS 12 //this can change as long as you make more coords (swarm_pet_x/swarm_pet_y)
|
||||||
#define WAKE_THE_DEAD_NPCTYPEID 500 //We use first pet in pets table as a template
|
#define WAKE_THE_DEAD_NPCTYPEID 500 //We use first pet in pets table as a template
|
||||||
|
|
||||||
typedef enum {
|
enum aaNonspellAction {
|
||||||
aaActionNone = 0,
|
aaActionNone = 0,
|
||||||
aaActionAETaunt = 1,
|
aaActionAETaunt = 1,
|
||||||
aaActionMassBuff = 2,
|
aaActionMassBuff = 2,
|
||||||
@@ -38,7 +38,7 @@ typedef enum {
|
|||||||
aaActionLeechTouch = 14,
|
aaActionLeechTouch = 14,
|
||||||
aaActionProjectIllusion = 15,
|
aaActionProjectIllusion = 15,
|
||||||
aaActionFadingMemories = 16
|
aaActionFadingMemories = 16
|
||||||
} aaNonspellAction;
|
};
|
||||||
|
|
||||||
enum { //leadership AA indexes
|
enum { //leadership AA indexes
|
||||||
groupAAMarkNPC = 0,
|
groupAAMarkNPC = 0,
|
||||||
@@ -116,7 +116,7 @@ static const uint8 LeadershipAACosts[_maxLeaderAA][MAX_LEADERSHIP_TIERS] = {
|
|||||||
{ 0, 0, 0, 0, 0, 0 }, //raidAA15
|
{ 0, 0, 0, 0, 0, 0 }, //raidAA15
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef enum { //AA IDs
|
enum aaID { //AA IDs
|
||||||
aaNone =0,
|
aaNone =0,
|
||||||
aaInnateStrength =2,//implemented as bonus
|
aaInnateStrength =2,//implemented as bonus
|
||||||
aaInnateStamina =7,//implemented as bonus
|
aaInnateStamina =7,//implemented as bonus
|
||||||
@@ -1525,7 +1525,7 @@ typedef enum { //AA IDs
|
|||||||
|
|
||||||
aaHighestID //this should always be last, and should always
|
aaHighestID //this should always be last, and should always
|
||||||
//follow the highest AA ID
|
//follow the highest AA ID
|
||||||
} aaID;
|
};
|
||||||
|
|
||||||
//Structure representing the database's swarm pet configs
|
//Structure representing the database's swarm pet configs
|
||||||
struct SwarmPet_Struct {
|
struct SwarmPet_Struct {
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
class CheatManager;
|
class CheatManager;
|
||||||
class Client;
|
class Client;
|
||||||
|
|
||||||
typedef enum {
|
enum UpdateMovementType {
|
||||||
Collision = 1,
|
Collision = 1,
|
||||||
TeleportB,
|
TeleportB,
|
||||||
TeleportA,
|
TeleportA,
|
||||||
@@ -37,18 +37,18 @@ typedef enum {
|
|||||||
SpellA, // Titanium - UF
|
SpellA, // Titanium - UF
|
||||||
Unknown0x8,
|
Unknown0x8,
|
||||||
SpellB // Used in RoF+
|
SpellB // Used in RoF+
|
||||||
} UpdateMovementType;
|
};
|
||||||
|
|
||||||
typedef enum {
|
enum ExemptionType {
|
||||||
ShadowStep,
|
ShadowStep,
|
||||||
KnockBack,
|
KnockBack,
|
||||||
Port,
|
Port,
|
||||||
Assist,
|
Assist,
|
||||||
Sense,
|
Sense,
|
||||||
MAX_EXEMPTIONS
|
MAX_EXEMPTIONS
|
||||||
} ExemptionType;
|
};
|
||||||
|
|
||||||
typedef enum {
|
enum CheatTypes {
|
||||||
MQWarp,
|
MQWarp,
|
||||||
MQWarpShadowStep,
|
MQWarpShadowStep,
|
||||||
MQWarpKnockBack,
|
MQWarpKnockBack,
|
||||||
@@ -59,7 +59,7 @@ typedef enum {
|
|||||||
MQGhost,
|
MQGhost,
|
||||||
MQFastMem,
|
MQFastMem,
|
||||||
MQWarpAbsolute
|
MQWarpAbsolute
|
||||||
} CheatTypes;
|
};
|
||||||
|
|
||||||
class CheatManager {
|
class CheatManager {
|
||||||
public:
|
public:
|
||||||
|
|||||||
+6
-7
@@ -106,7 +106,7 @@ enum { //scribing argument to MemorizeSpell
|
|||||||
};
|
};
|
||||||
|
|
||||||
//Modes for the zoning state of the client.
|
//Modes for the zoning state of the client.
|
||||||
typedef enum {
|
enum ZoneMode {
|
||||||
ZoneToSafeCoords, // Always send ZonePlayerToBind_Struct to client: Succor/Evac
|
ZoneToSafeCoords, // Always send ZonePlayerToBind_Struct to client: Succor/Evac
|
||||||
GMSummon, // Always send ZonePlayerToBind_Struct to client: Only a GM Summon
|
GMSummon, // Always send ZonePlayerToBind_Struct to client: Only a GM Summon
|
||||||
GMHiddenSummon, // Always send ZonePlayerToBind_Struct to client silently: Only a GM Summon
|
GMHiddenSummon, // Always send ZonePlayerToBind_Struct to client silently: Only a GM Summon
|
||||||
@@ -117,7 +117,7 @@ typedef enum {
|
|||||||
SummonPC, // In-zone GMMove() always: Call of the Hero spell or some other type of in zone only summons
|
SummonPC, // In-zone GMMove() always: Call of the Hero spell or some other type of in zone only summons
|
||||||
Rewind, // Summon to /rewind location.
|
Rewind, // Summon to /rewind location.
|
||||||
EvacToSafeCoords
|
EvacToSafeCoords
|
||||||
} ZoneMode;
|
};
|
||||||
|
|
||||||
// translate above enum to a string
|
// translate above enum to a string
|
||||||
std::string GetZoneModeString(ZoneMode mode);
|
std::string GetZoneModeString(ZoneMode mode);
|
||||||
@@ -130,13 +130,13 @@ enum {
|
|||||||
HideCorpseNPC = 5
|
HideCorpseNPC = 5
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef enum
|
enum ShowSpellType
|
||||||
{
|
{
|
||||||
Disciplines,
|
Disciplines,
|
||||||
Spells
|
Spells
|
||||||
} ShowSpellType;
|
};
|
||||||
|
|
||||||
typedef enum
|
enum XTargetType
|
||||||
{
|
{
|
||||||
Empty = 0,
|
Empty = 0,
|
||||||
Auto = 1,
|
Auto = 1,
|
||||||
@@ -165,8 +165,7 @@ typedef enum
|
|||||||
MyPetTarget = 24,
|
MyPetTarget = 24,
|
||||||
MyMercenary = 25,
|
MyMercenary = 25,
|
||||||
MyMercenaryTarget = 26
|
MyMercenaryTarget = 26
|
||||||
|
};
|
||||||
} XTargetType;
|
|
||||||
|
|
||||||
struct XTarget_Struct
|
struct XTarget_Struct
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -28,11 +28,11 @@ class Seperator;
|
|||||||
|
|
||||||
typedef void (*CmdFuncPtr)(Client *, const Seperator *);
|
typedef void (*CmdFuncPtr)(Client *, const Seperator *);
|
||||||
|
|
||||||
typedef struct {
|
struct CommandRecord {
|
||||||
uint8 admin;
|
uint8 admin;
|
||||||
std::string description;
|
std::string description;
|
||||||
CmdFuncPtr function; // null means perl function
|
CmdFuncPtr function; // null means perl function
|
||||||
} CommandRecord;
|
};
|
||||||
|
|
||||||
extern int (*command_dispatch)(Client *, std::string, bool);
|
extern int (*command_dispatch)(Client *, std::string, bool);
|
||||||
extern int command_count; // Commands Loaded Count
|
extern int command_count; // Commands Loaded Count
|
||||||
|
|||||||
+2
-2
@@ -922,7 +922,7 @@ struct DataBucketCache
|
|||||||
|
|
||||||
enum eStandingPetOrder { SPO_Follow, SPO_Sit, SPO_Guard, SPO_FeignDeath };
|
enum eStandingPetOrder { SPO_Follow, SPO_Sit, SPO_Guard, SPO_FeignDeath };
|
||||||
|
|
||||||
typedef enum {
|
enum PetTypeOld {
|
||||||
petFamiliar, //only listens to /pet get lost
|
petFamiliar, //only listens to /pet get lost
|
||||||
petAnimation, //does not listen to any commands
|
petAnimation, //does not listen to any commands
|
||||||
petOther,
|
petOther,
|
||||||
@@ -930,4 +930,4 @@ typedef enum {
|
|||||||
petNPCFollow,
|
petNPCFollow,
|
||||||
petTargetLock, //remain active as long something is on the hatelist. Don't listen to any commands
|
petTargetLock, //remain active as long something is on the hatelist. Don't listen to any commands
|
||||||
petNone = 0xFF // not a pet
|
petNone = 0xFF // not a pet
|
||||||
} PetTypeOld;
|
};
|
||||||
|
|||||||
+2
-2
@@ -17,7 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
typedef enum {
|
enum QuestEventID {
|
||||||
EVENT_SAY = 0,
|
EVENT_SAY = 0,
|
||||||
EVENT_TRADE, //being given an item or money
|
EVENT_TRADE, //being given an item or money
|
||||||
EVENT_DEATH, //being killed
|
EVENT_DEATH, //being killed
|
||||||
@@ -169,6 +169,6 @@ typedef enum {
|
|||||||
EVENT_SPELL_EFFECT_BOT,
|
EVENT_SPELL_EFFECT_BOT,
|
||||||
EVENT_SPELL_EFFECT_BUFF_TIC_BOT,
|
EVENT_SPELL_EFFECT_BUFF_TIC_BOT,
|
||||||
_LargestEventID
|
_LargestEventID
|
||||||
} QuestEventID;
|
};
|
||||||
|
|
||||||
extern const char *QuestEventSubroutines[_LargestEventID];
|
extern const char *QuestEventSubroutines[_LargestEventID];
|
||||||
|
|||||||
+2
-2
@@ -32,7 +32,7 @@
|
|||||||
#include <deque>
|
#include <deque>
|
||||||
#include <list>
|
#include <list>
|
||||||
|
|
||||||
typedef struct {
|
struct NPCProximity {
|
||||||
float min_x;
|
float min_x;
|
||||||
float max_x;
|
float max_x;
|
||||||
float min_y;
|
float min_y;
|
||||||
@@ -41,7 +41,7 @@ typedef struct {
|
|||||||
float max_z;
|
float max_z;
|
||||||
bool say;
|
bool say;
|
||||||
bool proximity_set;
|
bool proximity_set;
|
||||||
} NPCProximity;
|
};
|
||||||
|
|
||||||
struct AISpells_Struct {
|
struct AISpells_Struct {
|
||||||
uint32 type; // 0 = never, must be one (and only one) of the defined values
|
uint32 type; // 0 = never, must be one (and only one) of the defined values
|
||||||
|
|||||||
+3
-2
@@ -21,13 +21,14 @@
|
|||||||
|
|
||||||
#pragma pack(push)
|
#pragma pack(push)
|
||||||
#pragma pack(1)
|
#pragma pack(1)
|
||||||
typedef struct ZBSP_Node {
|
|
||||||
|
struct ZBSP_Node {
|
||||||
int32 node_number;
|
int32 node_number;
|
||||||
float normal[3], splitdistance;
|
float normal[3], splitdistance;
|
||||||
int32 region;
|
int32 region;
|
||||||
int32 special;
|
int32 special;
|
||||||
int32 left, right;
|
int32 left, right;
|
||||||
} ZBSP_Node;
|
};
|
||||||
|
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user