gtkradiant/plugins/mapxml/plugin.h
TTimo 8037810110 transfer from internal tree r5311 branches/1.4-gpl
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant@177 8a3a26a2-13c4-0310-b231-cf6edde360e5
2007-09-12 18:54:28 +00:00

49 lines
1.2 KiB
C++

#ifndef _PLUGIN_H_
#define _PLUGIN_H_
#include <stdlib.h>
#include <stdio.h>
#include "libxml/parser.h"
#include "synapse.h"
#define USE_QERTABLE_DEFINE
#include "qerplugin.h"
#include "imap.h"
#include "ishaders.h"
#define USE_ENTITYTABLE_DEFINE
#include "ientity.h"
#define USE_BRUSHTABLE_DEFINE
#include "ibrush.h"
#define USE_PATCHTABLE_DEFINE
#include "ipatch.h"
extern _QERFuncTable_1 g_FuncTable;
extern _QERShadersTable g_ShadersTable;
extern _QEREntityTable g_EntityTable;
extern _QERBrushTable g_BrushTable;
extern _QERPatchTable g_PatchTable;
#define Error g_FuncTable.m_pfnError
#define QERApp_Shader_ForName g_ShadersTable.m_pfnShader_ForName
extern void *g_pRadiantWnd;
void Map_Read (IDataStream *in, CPtrArray *map);
void Map_Write (CPtrArray *map, IDataStream *out);
extern CSynapseServer* g_pSynapseServer;
class CSynapseClientXMap : public CSynapseClient
{
public:
// CSynapseClient API
bool RequestAPI(APIDescriptor_t *pAPI);
const char* GetInfo();
const char* GetName(); ///< required for XML runtime config
CSynapseClientXMap() { }
virtual ~CSynapseClientXMap() { }
};
#endif // _PLUGIN_H_