Implement Precompiled Headers (#591)

When applied, this will speed up compile times dramatically.
This commit is contained in:
David Markowitz
2022-07-04 15:24:45 -07:00
committed by GitHub
parent 6e2936504c
commit 8a54e7ccd2
10 changed files with 98 additions and 0 deletions

View File

@@ -1,5 +1,8 @@
#pragma once
#ifndef BEHAVIORSLOT_H
#define BEHAVIORSLOT_H
enum class BehaviorSlot
{
Invalid = -1,
@@ -9,3 +12,5 @@ enum class BehaviorSlot
Head,
Consumable
};
#endif

View File

@@ -1,5 +1,8 @@
#pragma once
#ifndef INVENTORYCOMPONENT_H
#define INVENTORYCOMPONENT_H
#include <map>
#include <stack>
@@ -445,3 +448,5 @@ private:
*/
void UpdatePetXml(tinyxml2::XMLDocument* document);
};
#endif

View File

@@ -1,5 +1,8 @@
#pragma once
#ifndef PROPERTYSELECTQUERY_H
#define PROPERTYSELECTQUERY_H
#include "Entity.h"
class PropertySelectQueryProperty final
@@ -24,3 +27,5 @@ public:
float PerformanceCost = 0; // The performance cost of the property
uint32_t PerformanceIndex = 0; // The performance index of the property? Always 0?
};
#endif

View File

@@ -1,5 +1,8 @@
#pragma once
#ifndef INVENTORY_H
#define INVENTORY_H
#include <map>
#include <vector>
@@ -182,3 +185,5 @@ private:
*/
static std::vector<LOT> m_GameMasterRestrictedItems;
};
#endif

View File

@@ -1,5 +1,8 @@
#pragma once
#ifndef MISSION_H
#define MISSION_H
#include <vector>
#include <string>
@@ -259,3 +262,5 @@ private:
*/
std::vector<MissionTask*> m_Tasks;
};
#endif

View File

@@ -1,8 +1,13 @@
#pragma once
#ifndef MISSIONLOCKSTATE_H
#define MISSIONLOCKSTATE_H
enum class MissionLockState : int
{
MISSION_LOCK_LOCKED,
MISSION_LOCK_NEW,
MISSION_LOCK_UNLOCKED,
};
#endif

View File

@@ -1,5 +1,8 @@
#pragma once
#ifndef MISSIONTASK_H
#define MISSIONTASK_H
#include "CDMissionTasksTable.h"
#include "MissionTaskType.h"
#include "dCommonVars.h"
@@ -180,3 +183,5 @@ private:
*/
void CheckCompletion() const;
};
#endif

View File

@@ -1,5 +1,8 @@
#pragma once
#ifndef MISSIONTASKTYPE_H
#define MISSIONTASKTYPE_H
//! An enum for mission task types
enum class MissionTaskType : int {
MISSION_TASK_TYPE_UNKNOWN = -1, //!< The task type is unknown
@@ -24,3 +27,5 @@ enum class MissionTaskType : int {
MISSION_TASK_TYPE_PLACE_MODEL = 25, //!< A task for picking up a model
MISSION_TASK_TYPE_VISIT_PROPERTY = 30 //!< A task for visiting a property
};
#endif