/*****************************************************************************/ /* Template for version 2.0 plugins. */ /* Contact: yann.chachkoff@myrealbox.com */ /*****************************************************************************/ /* That code is placed under the GNU General Public Licence (GPL) */ /* (C)2001-2005 by Chachkoff Yann (Feel free to deliver your complaints) */ /*****************************************************************************/ /* CrossFire, A Multiplayer game for X-windows */ /* */ /* Copyright (C) 2000 Mark Wedel */ /* Copyright (C) 1992 Frank Tore Johansen */ /* */ /* This program is free software; you can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ /* the Free Software Foundation; either version 2 of the License, or */ /* (at your option) any later version. */ /* */ /* This program is distributed in the hope that it will be useful, */ /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ /* GNU General Public License for more details. */ /* */ /* You should have received a copy of the GNU General Public License */ /* along with this program; if not, write to the Free Software */ /* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* */ /*****************************************************************************/ #ifndef PLUGIN_TEMPLATE_H #define PLUGIN_TEMPLATE_H #define PLUGIN_NAME "Template" #define PLUGIN_VERSION "Template Plugin 2.0" #ifndef __CEXTRACT__ #include #endif #undef MODULEAPI #ifdef WIN32 #ifdef PYTHON_PLUGIN_EXPORTS #define MODULEAPI __declspec(dllexport) #else #define MODULEAPI __declspec(dllimport) #endif #else #define MODULEAPI #endif #include #include #include typedef struct _cfpcontext { struct _cfpcontext* down; object* who; object* activator; object* third; char message[1024]; int fix; int event_code; char options[1024]; int returnvalue; int parms[5]; } CFPContext; extern f_plug_api gethook; extern CFPContext* context_stack; extern CFPContext* current_context; #endif /* PLUGIN_TEMPLATE_H */