diff options
Diffstat (limited to 'primedev/squirrel/squirrelautobind.cpp')
-rw-r--r-- | primedev/squirrel/squirrelautobind.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/primedev/squirrel/squirrelautobind.cpp b/primedev/squirrel/squirrelautobind.cpp new file mode 100644 index 00000000..c15240f5 --- /dev/null +++ b/primedev/squirrel/squirrelautobind.cpp @@ -0,0 +1,20 @@ +#include "squirrelautobind.h" + +SquirrelAutoBindContainer* g_pSqAutoBindContainer; + +ON_DLL_LOAD_RELIESON("client.dll", ClientSquirrelAutoBind, ClientSquirrel, (CModule module)) +{ + spdlog::info("ClientSquirrelAutoBInd AutoBindFuncsVectorsize {}", g_pSqAutoBindContainer->clientSqAutoBindFuncs.size()); + for (auto& autoBindFunc : g_pSqAutoBindContainer->clientSqAutoBindFuncs) + { + autoBindFunc(); + } +} + +ON_DLL_LOAD_RELIESON("server.dll", ServerSquirrelAutoBind, ServerSquirrel, (CModule module)) +{ + for (auto& autoBindFunc : g_pSqAutoBindContainer->serverSqAutoBindFuncs) + { + autoBindFunc(); + } +} |