From 0d30d788e9b387852cdc25c77f67301549c7ec85 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Thu, 15 Aug 2019 16:42:18 +0200 Subject: [PATCH] Extern support for getting a userdata type by hash id --- src/UserData/UserDataScriptType.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/UserData/UserDataScriptType.cpp b/src/UserData/UserDataScriptType.cpp index 27f872d..842cc75 100644 --- a/src/UserData/UserDataScriptType.cpp +++ b/src/UserData/UserDataScriptType.cpp @@ -1,2 +1,10 @@ #include "UserDataScriptType.hpp" + +namespace Porygon::UserData{ +extern "C"{ +UserDataScriptType* CreateUserDataType(uint32_t id){ + return new UserDataScriptType(id); +} +} +} \ No newline at end of file