2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "dCommonVars.h"
|
|
|
|
#include "Entity.h"
|
|
|
|
#include <map>
|
2024-02-25 22:59:10 +00:00
|
|
|
#include <set>
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2024-02-28 23:16:47 +00:00
|
|
|
struct VanityObjectLocation {
|
2021-12-05 17:54:36 +00:00
|
|
|
float m_Chance = 1.0f;
|
|
|
|
NiPoint3 m_Position;
|
|
|
|
NiQuaternion m_Rotation;
|
2024-02-25 22:59:10 +00:00
|
|
|
float m_Scale = 1.0f;
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|
|
|
|
|
2024-02-28 23:16:47 +00:00
|
|
|
struct VanityObject {
|
2023-11-10 00:33:39 +00:00
|
|
|
LWOOBJID m_ID = LWOOBJID_EMPTY;
|
2021-12-05 17:54:36 +00:00
|
|
|
std::string m_Name;
|
2024-02-28 23:16:47 +00:00
|
|
|
LOT m_LOT = LOT_NULL;
|
2021-12-05 17:54:36 +00:00
|
|
|
std::vector<LOT> m_Equipment;
|
|
|
|
std::vector<std::string> m_Phrases;
|
2024-02-25 22:59:10 +00:00
|
|
|
std::map<uint32_t, std::vector<VanityObjectLocation>> m_Locations;
|
|
|
|
std::vector<LDFBaseData*> m_Config;
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2024-02-28 23:16:47 +00:00
|
|
|
namespace VanityUtilities {
|
|
|
|
void SpawnVanity();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2024-02-28 23:16:47 +00:00
|
|
|
VanityObject* GetObject(const std::string& name);
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2024-02-28 23:16:47 +00:00
|
|
|
std::string ParseMarkdown(
|
2021-12-05 17:54:36 +00:00
|
|
|
const std::string& file
|
|
|
|
);
|
|
|
|
};
|