DarkflameServer/dGame/dUtilities/VanityUtilities.h

35 lines
659 B
C
Raw Normal View History

#pragma once
#include "dCommonVars.h"
#include "Entity.h"
#include <map>
#include <set>
struct VanityObjectLocation {
2022-07-28 13:39:57 +00:00
float m_Chance = 1.0f;
NiPoint3 m_Position;
NiQuaternion m_Rotation;
float m_Scale = 1.0f;
};
struct VanityObject {
LWOOBJID m_ID = LWOOBJID_EMPTY;
2022-07-28 13:39:57 +00:00
std::string m_Name;
LOT m_LOT = LOT_NULL;
2022-07-28 13:39:57 +00:00
std::vector<LOT> m_Equipment;
std::vector<std::string> m_Phrases;
std::map<uint32_t, std::vector<VanityObjectLocation>> m_Locations;
std::vector<LDFBaseData*> m_Config;
};
namespace VanityUtilities {
void SpawnVanity();
VanityObject* GetObject(const std::string& name);
std::string ParseMarkdown(
2022-07-28 13:39:57 +00:00
const std::string& file
);
};