diff options
author | Northstar <northstar@northstar.tf> | 2023-12-20 15:20:02 +0100 |
---|---|---|
committer | Northstar <northstar@northstar.tf> | 2023-12-20 15:20:02 +0100 |
commit | 1e5c4a7f6a734352f802c82b293fe3b215e3a5b2 (patch) | |
tree | b1a5484f3839e1b0c2a9169856a51c16cf255180 /NorthstarDLL/squirrel | |
parent | 714282b52039b12225c8348ef7346d092676ffb1 (diff) | |
download | NorthstarLauncher-1e5c4a7f6a734352f802c82b293fe3b215e3a5b2.tar.gz NorthstarLauncher-1e5c4a7f6a734352f802c82b293fe3b215e3a5b2.zip |
Format project
Diffstat (limited to 'NorthstarDLL/squirrel')
-rw-r--r-- | NorthstarDLL/squirrel/squirrel.h | 8 | ||||
-rw-r--r-- | NorthstarDLL/squirrel/squirrelautobind.h | 4 | ||||
-rw-r--r-- | NorthstarDLL/squirrel/squirrelclasstypes.h | 8 |
3 files changed, 10 insertions, 10 deletions
diff --git a/NorthstarDLL/squirrel/squirrel.h b/NorthstarDLL/squirrel/squirrel.h index 50dd31d0..a4932044 100644 --- a/NorthstarDLL/squirrel/squirrel.h +++ b/NorthstarDLL/squirrel/squirrel.h @@ -64,10 +64,10 @@ namespace NS::log // Cuts down on compile time by ~5 seconds class SquirrelManagerBase { - protected: +protected: std::vector<SQFuncRegistration*> m_funcRegistrations; - public: +public: CSquirrelVM* m_pSQVM; std::map<std::string, SQFunction> m_funcOverrides = {}; std::map<std::string, SQFunction> m_funcOriginals = {}; @@ -319,7 +319,7 @@ class SquirrelManagerBase template <ScriptContext context> class SquirrelManager : public virtual SquirrelManagerBase { - public: +public: #pragma region MessageBuffer SquirrelMessageBuffer* messageBuffer; @@ -404,7 +404,7 @@ template <ScriptContext context> class SquirrelManager : public virtual Squirrel #pragma endregion - public: +public: SquirrelManager() { m_pSQVM = nullptr; diff --git a/NorthstarDLL/squirrel/squirrelautobind.h b/NorthstarDLL/squirrel/squirrelautobind.h index 19ecb808..0fc599f3 100644 --- a/NorthstarDLL/squirrel/squirrelautobind.h +++ b/NorthstarDLL/squirrel/squirrelautobind.h @@ -5,7 +5,7 @@ typedef void (*SqAutoBindFunc)(); class SquirrelAutoBindContainer { - public: +public: std::vector<std::function<void()>> clientSqAutoBindFuncs; std::vector<std::function<void()>> serverSqAutoBindFuncs; }; @@ -61,7 +61,7 @@ class __squirrelautobind; class __squirrelautobind { - public: +public: __squirrelautobind() = delete; __squirrelautobind(std::function<void()> clientAutoBindFunc, std::function<void()> serverAutoBindFunc) diff --git a/NorthstarDLL/squirrel/squirrelclasstypes.h b/NorthstarDLL/squirrel/squirrelclasstypes.h index c193f2fc..cd777551 100644 --- a/NorthstarDLL/squirrel/squirrelclasstypes.h +++ b/NorthstarDLL/squirrel/squirrelclasstypes.h @@ -122,7 +122,7 @@ typedef void (*sq_schedule_call_externalType)( class SquirrelMessage { - public: +public: std::string functionName; FunctionVector args; bool isExternal = false; @@ -133,10 +133,10 @@ class SquirrelMessage class SquirrelMessageBuffer { - private: +private: std::queue<SquirrelMessage> messages = {}; - public: +public: std::mutex mutex; std::optional<SquirrelMessage> pop() { @@ -179,7 +179,7 @@ class SquirrelMessageBuffer // Super simple wrapper class to allow pushing Assets via call class SquirrelAsset { - public: +public: std::string path; SquirrelAsset(std::string path) : path(path) {}; }; |