mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-11-17 23:52:35 +00:00
switch cppscripts to references and unique_ptrs
This commit is contained in:
@@ -357,10 +357,10 @@ namespace CppScripts {
|
||||
virtual void OnRequestActivityExit(Entity* sender, LWOOBJID player, bool canceled){};
|
||||
};
|
||||
|
||||
Script* const GetScript(Entity* parent, const std::string& scriptName);
|
||||
Script& GetScript(Entity* parent, const std::string& scriptName);
|
||||
|
||||
// Get the invalid script. Would be a static variable of the namespace, but that would be
|
||||
// more cluttery to use. Also this allows us to control where this invalid script is defined and initialized
|
||||
// since we dont want anyone externally modifying it.
|
||||
Script* const GetInvalidScript();
|
||||
Script& GetInvalidScript();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user