]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - plugins/mapxml/plugin.h
Backing out commit 483. Going to set linker flags instead.
[xonotic/netradiant.git] / plugins / mapxml / plugin.h
1 #ifndef _PLUGIN_H_
2 #define _PLUGIN_H_
3
4 #include <stdlib.h>
5 #include <stdio.h>
6
7 #include "libxml/parser.h"
8
9 #include "synapse.h"
10 #define USE_QERTABLE_DEFINE
11 #include "qerplugin.h"
12 #include "imap.h"
13 #include "ishaders.h"
14 #define USE_ENTITYTABLE_DEFINE
15 #include "ientity.h"
16 #define USE_BRUSHTABLE_DEFINE
17 #include "ibrush.h"
18 #define USE_PATCHTABLE_DEFINE
19 #include "ipatch.h"
20
21 extern _QERFuncTable_1 g_FuncTable;
22 extern _QERShadersTable g_ShadersTable;
23 extern _QEREntityTable g_EntityTable;
24 extern _QERBrushTable g_BrushTable;
25 extern _QERPatchTable g_PatchTable;
26
27 #define Error g_FuncTable.m_pfnError
28 #define QERApp_Shader_ForName g_ShadersTable.m_pfnShader_ForName
29
30 extern void *g_pRadiantWnd;
31
32 void Map_Read (IDataStream *in, CPtrArray *map);
33 void Map_Write (CPtrArray *map, IDataStream *out);
34
35 extern CSynapseServer* g_pSynapseServer;
36
37 class CSynapseClientXMap : public CSynapseClient
38 {
39 public:
40   // CSynapseClient API
41   bool RequestAPI(APIDescriptor_t *pAPI);
42   const char* GetInfo();
43   const char* GetName(); ///< required for XML runtime config
44   
45   CSynapseClientXMap() { }
46   virtual ~CSynapseClientXMap() { }
47 };
48
49 #endif // _PLUGIN_H_