- typedef _QERFuncTable_1 Type;
-
- STRING_CONSTANT(Name, "*");
-
- RadiantCoreAPI()
- {
- m_radiantcore.getEnginePath = &EnginePath_get;
- m_radiantcore.getLocalRcPath = &LocalRcPath_get;
- m_radiantcore.getAppPath = &AppPath_get;
- m_radiantcore.getGameToolsPath = &GameToolsPath_get;
- m_radiantcore.getSettingsPath = &SettingsPath_get;
- m_radiantcore.getMapsPath = &getMapsPath;
-
- m_radiantcore.getGameFile = &getGameFile;
- m_radiantcore.getGameName = &gamename_get;
- m_radiantcore.getGameMode = &gamemode_get;
-
- m_radiantcore.getMapName = &getMapName;
- m_radiantcore.getMapWorldEntity = getMapWorldEntity;
- m_radiantcore.getGridSize = GetGridSize;
-
- m_radiantcore.getGameDescriptionKeyValue = &GameDescription_getKeyValue;
- m_radiantcore.getRequiredGameDescriptionKeyValue = &GameDescription_getRequiredKeyValue;
-
- m_radiantcore.XYWindowDestroyed_connect = XYWindowDestroyed_connect;
- m_radiantcore.XYWindowDestroyed_disconnect = XYWindowDestroyed_disconnect;
- m_radiantcore.XYWindowMouseDown_connect = XYWindowMouseDown_connect;
- m_radiantcore.XYWindowMouseDown_disconnect = XYWindowMouseDown_disconnect;
- m_radiantcore.XYWindow_getViewType = XYWindow_getViewType;
- m_radiantcore.XYWindow_windowToWorld = XYWindow_windowToWorld;
- m_radiantcore.TextureBrowser_getSelectedShader = TextureBrowser_getSelectedShader;
-
- m_radiantcore.m_pfnMessageBox = >k_MessageBox;
- m_radiantcore.m_pfnFileDialog = &file_dialog;
- m_radiantcore.m_pfnColorDialog = &color_dialog;
- m_radiantcore.m_pfnDirDialog = &dir_dialog;
- m_radiantcore.m_pfnNewImage = &new_plugin_image;
- }
-
- _QERFuncTable_1 *getTable()
- {
- return &m_radiantcore;
- }
+typedef _QERFuncTable_1 Type;
+STRING_CONSTANT( Name, "*" );
+
+RadiantCoreAPI(){
+ m_radiantcore.getEnginePath = &EnginePath_get;
+ m_radiantcore.getLocalRcPath = &LocalRcPath_get;
+ m_radiantcore.getAppPath = &AppPath_get;
+ m_radiantcore.getDataPath = &DataPath_get;
+ m_radiantcore.getGameToolsPath = &GameToolsPath_get;
+ m_radiantcore.getSettingsPath = &SettingsPath_get;
+ m_radiantcore.getMapsPath = &getMapsPath;
+
+ m_radiantcore.getGameFile = &getGameFile;
+ m_radiantcore.getGameName = &gamename_get;
+ m_radiantcore.getGameMode = &gamemode_get;
+
+ m_radiantcore.getMapName = &getMapName;
+ m_radiantcore.getMapWorldEntity = getMapWorldEntity;
+ m_radiantcore.getGridSize = GetGridSize;
+
+ m_radiantcore.getGameDescriptionKeyValue = &GameDescription_getKeyValue;
+ m_radiantcore.getRequiredGameDescriptionKeyValue = &GameDescription_getRequiredKeyValue;
+
+ m_radiantcore.XYWindowDestroyed_connect = XYWindowDestroyed_connect;
+ m_radiantcore.XYWindowDestroyed_disconnect = XYWindowDestroyed_disconnect;
+ m_radiantcore.XYWindowMouseDown_connect = XYWindowMouseDown_connect;
+ m_radiantcore.XYWindowMouseDown_disconnect = XYWindowMouseDown_disconnect;
+ m_radiantcore.XYWindow_getViewType = XYWindow_getViewType;
+ m_radiantcore.XYWindow_windowToWorld = XYWindow_windowToWorld;
+ m_radiantcore.TextureBrowser_getSelectedShader = TextureBrowser_getSelectedShader;
+
+ m_radiantcore.m_pfnMessageBox = >k_MessageBox;
+ m_radiantcore.m_pfnFileDialog = &file_dialog;
+ m_radiantcore.m_pfnColorDialog = &color_dialog;
+ m_radiantcore.m_pfnDirDialog = &dir_dialog;
+ m_radiantcore.m_pfnNewImage = &new_plugin_image;
+}
+_QERFuncTable_1* getTable(){
+ return &m_radiantcore;
+}