mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-11-14 22:28:47 +00:00
Another consistency pass
- change NotifyObject to use u16 string - move stuff to header that is inline - use u16strings instead of converting to u16 string - move entity to dEntity
This commit is contained in:
@@ -12,11 +12,9 @@ class InvalidScript;
|
||||
enum class eMissionState : int32_t;
|
||||
enum class ePetTamingNotifyType : uint32_t;
|
||||
enum class eRebuildState : uint32_t;
|
||||
enum class eCinematicEvent : uint32_t;
|
||||
|
||||
namespace CppScripts {
|
||||
|
||||
extern std::unique_ptr<InvalidScript> invalidScript;
|
||||
extern std::map<std::string, CppScripts::Script*> m_Scripts;
|
||||
/**
|
||||
* Base class for all scripts. Includes virtual methods to be overridden to handle LUA equivelent events.
|
||||
*
|
||||
@@ -76,7 +74,7 @@ namespace CppScripts {
|
||||
*
|
||||
* Equivalent to 'function onNotifyObject(self, msg)'
|
||||
*/
|
||||
virtual void OnNotifyObject(Entity* self, Entity* sender, const std::string& name, int32_t param1 = 0, int32_t param2 = 0) {};
|
||||
virtual void OnNotifyObject(Entity* self, Entity* sender, const std::u16string& name, int32_t param1 = 0, int32_t param2 = 0) {};
|
||||
|
||||
/**
|
||||
* Invoked upon a player exiting the modular build minigame.
|
||||
@@ -363,6 +361,8 @@ namespace CppScripts {
|
||||
*/
|
||||
virtual void OnRequestActivityExit(Entity* sender, LWOOBJID player, bool canceled) {};
|
||||
};
|
||||
|
||||
Script* GetScript(Entity* parent, const std::string& scriptName);
|
||||
|
||||
extern std::unique_ptr<InvalidScript> invalidScript;
|
||||
extern std::map<std::string, CppScripts::Script*> m_Scripts;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user