mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-23 22:17:31 +00:00
6aa90ad5b2
* Breakout rest of the enums from dcommonvars so we don't have to deal with merge conflicts ePlayerFlags is not a scoped enum, yet, due to it's complexity * address feedback * make player flag types consistent * fix typo
33 lines
1.2 KiB
C++
33 lines
1.2 KiB
C++
#pragma once
|
|
#include "CppScripts.h"
|
|
|
|
struct SpyDialogue {
|
|
std::string token;
|
|
uint32_t conversationID;
|
|
};
|
|
|
|
struct SpyData {
|
|
int32_t flagID;
|
|
LOT itemID;
|
|
uint32_t missionID;
|
|
};
|
|
|
|
class NtFactionSpyServer : public CppScripts::Script {
|
|
void OnStartup(Entity* self) override;
|
|
void OnProximityUpdate(Entity* self, Entity* entering, std::string name, std::string status) override;
|
|
void OnCinematicUpdate(Entity* self, Entity* sender, eCinematicEvent event, const std::u16string& pathName, float_t pathTime, float_t totalTime, int32_t waypoint) override;
|
|
protected:
|
|
virtual void SetVariables(Entity* self);
|
|
bool IsSpy(Entity* self, Entity* possibleSpy);
|
|
LWOOBJID ParamObjectForConversationID(Entity* self, uint32_t conversationID);
|
|
|
|
const std::string m_ProximityName = "SpyDistance";
|
|
const std::u16string m_SpyDialogueNotification = u"displayDialogueLine";
|
|
const std::u16string m_SpyCinematicVariable = u"SpyCinematic";
|
|
const std::u16string m_SpyCinematicObjectsVariable = u"SpyCinematicObjects";
|
|
const std::u16string m_CinematicRootVariable = u"CinematicRoot";
|
|
const std::u16string m_SpyProximityVariable = u"Proximity";
|
|
const std::u16string m_SpyDialogueTableVariable = u"SpyDialogueTable";
|
|
const std::u16string m_SpyDataVariable = u"SpyData";
|
|
};
|