mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-24 14:37:25 +00:00
43707952d2
* feat: move all ldf config to be in xml cleanup dev-tribute.xml add comments to atm.xml remove custom script tag in favor of ldfconfig for it * replace sto* calls with tryParse's * remove unesessary .has_value() calls and check for null_lot * remove member variable naming that on on-member vars * move max's vendor inventory to be configurable via vanity * Consolidate triplecated vendor code * don't write name if one is not given * Updates to vanity xml's and demo for later docs * rename vars
35 lines
659 B
C++
35 lines
659 B
C++
#pragma once
|
|
|
|
#include "dCommonVars.h"
|
|
#include "Entity.h"
|
|
#include <map>
|
|
#include <set>
|
|
|
|
struct VanityObjectLocation {
|
|
float m_Chance = 1.0f;
|
|
NiPoint3 m_Position;
|
|
NiQuaternion m_Rotation;
|
|
float m_Scale = 1.0f;
|
|
};
|
|
|
|
struct VanityObject {
|
|
LWOOBJID m_ID = LWOOBJID_EMPTY;
|
|
std::string m_Name;
|
|
LOT m_LOT = LOT_NULL;
|
|
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(
|
|
const std::string& file
|
|
);
|
|
};
|