mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-14 11:28:08 +00:00
format codebase
This commit is contained in:
@@ -2,33 +2,33 @@
|
||||
#include "CDTable.h"
|
||||
|
||||
struct CDRailActivatorComponent {
|
||||
int32_t id;
|
||||
std::u16string startAnimation;
|
||||
std::u16string loopAnimation;
|
||||
std::u16string stopAnimation;
|
||||
std::u16string startSound;
|
||||
std::u16string loopSound;
|
||||
std::u16string stopSound;
|
||||
std::pair<uint32_t, std::u16string> startEffectID;
|
||||
std::pair<uint32_t, std::u16string> loopEffectID;
|
||||
std::pair<uint32_t, std::u16string> stopEffectID;
|
||||
std::string preconditions;
|
||||
bool playerCollision;
|
||||
bool cameraLocked;
|
||||
bool damageImmune;
|
||||
bool noAggro;
|
||||
bool showNameBillboard;
|
||||
int32_t id;
|
||||
std::u16string startAnimation;
|
||||
std::u16string loopAnimation;
|
||||
std::u16string stopAnimation;
|
||||
std::u16string startSound;
|
||||
std::u16string loopSound;
|
||||
std::u16string stopSound;
|
||||
std::pair<uint32_t, std::u16string> startEffectID;
|
||||
std::pair<uint32_t, std::u16string> loopEffectID;
|
||||
std::pair<uint32_t, std::u16string> stopEffectID;
|
||||
std::string preconditions;
|
||||
bool playerCollision;
|
||||
bool cameraLocked;
|
||||
bool damageImmune;
|
||||
bool noAggro;
|
||||
bool showNameBillboard;
|
||||
};
|
||||
|
||||
class CDRailActivatorComponentTable : public CDTable {
|
||||
public:
|
||||
CDRailActivatorComponentTable();
|
||||
~CDRailActivatorComponentTable();
|
||||
CDRailActivatorComponentTable();
|
||||
~CDRailActivatorComponentTable();
|
||||
|
||||
std::string GetName() const override;
|
||||
[[nodiscard]] CDRailActivatorComponent GetEntryByID(int32_t id) const;
|
||||
[[nodiscard]] std::vector<CDRailActivatorComponent> GetEntries() const;
|
||||
std::string GetName() const override;
|
||||
[[nodiscard]] CDRailActivatorComponent GetEntryByID(int32_t id) const;
|
||||
[[nodiscard]] std::vector<CDRailActivatorComponent> GetEntries() const;
|
||||
private:
|
||||
static std::pair<uint32_t , std::u16string> EffectPairFromString(std::string& str);
|
||||
std::vector<CDRailActivatorComponent> m_Entries {};
|
||||
static std::pair<uint32_t, std::u16string> EffectPairFromString(std::string& str);
|
||||
std::vector<CDRailActivatorComponent> m_Entries{};
|
||||
};
|
||||
|
Reference in New Issue
Block a user