Crossfire Server, Branches 1.12
R18729
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
plugin_template.h
Go to the documentation of this file.
1
/*****************************************************************************/
2
/* Template for version 2.0 plugins. */
3
/* Contact: yann.chachkoff@myrealbox.com */
4
/*****************************************************************************/
5
/* That code is placed under the GNU General Public Licence (GPL) */
6
/* (C)2001-2005 by Chachkoff Yann (Feel free to deliver your complaints) */
7
/*****************************************************************************/
8
/* CrossFire, A Multiplayer game for X-windows */
9
/* */
10
/* Copyright (C) 2000 Mark Wedel */
11
/* Copyright (C) 1992 Frank Tore Johansen */
12
/* */
13
/* This program is free software; you can redistribute it and/or modify */
14
/* it under the terms of the GNU General Public License as published by */
15
/* the Free Software Foundation; either version 2 of the License, or */
16
/* (at your option) any later version. */
17
/* */
18
/* This program is distributed in the hope that it will be useful, */
19
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
20
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
21
/* GNU General Public License for more details. */
22
/* */
23
/* You should have received a copy of the GNU General Public License */
24
/* along with this program; if not, write to the Free Software */
25
/* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
26
/* */
27
/*****************************************************************************/
28
#ifndef PLUGIN_TEMPLATE_H
29
#define PLUGIN_TEMPLATE_H
30
31
#define PLUGIN_NAME "Template"
32
#define PLUGIN_VERSION "Template Plugin 2.0"
33
34
#ifndef __CEXTRACT__
35
#include <
plugin.h
>
36
#endif
37
38
#undef MODULEAPI
39
#ifdef WIN32
40
#ifdef PYTHON_PLUGIN_EXPORTS
41
#define MODULEAPI __declspec(dllexport)
42
#else
43
#define MODULEAPI __declspec(dllimport)
44
#endif
45
46
#else
47
#define MODULEAPI
48
#endif
49
50
#include <
plugin_common.h
>
51
#include <
plugin_template.h
>
52
53
typedef
struct
_cfpcontext
{
54
struct
_cfpcontext
*
down
;
55
object
*
who
;
56
object
*
activator
;
57
object
*
third
;
58
object
*
event
;
59
char
message
[1024];
60
int
fix
;
61
int
event_code
;
62
char
options
[1024];
63
int
returnvalue
;
64
int
parms
[5];
65
}
CFPContext
;
66
67
extern
f_plug_api
gethook
;
68
69
extern
CFPContext
*
context_stack
;
70
71
extern
CFPContext
*
current_context
;
72
73
#endif
/* PLUGIN_TEMPLATE_H */
CFPContext
struct _cfpcontext CFPContext
_cfpcontext::event_code
int event_code
Definition:
cfpython.h:124
plugin_template.h
_cfpcontext::options
char options[1024]
Definition:
cfpython.h:126
plugin.h
f_plug_api
void *(* f_plug_api)(int *type,...)
Definition:
plugin.h:121
_cfpcontext::message
char message[1024]
Definition:
cfpython.h:122
_cfpcontext::fix
int fix
Definition:
cfpython.h:123
_cfpcontext::activator
object * activator
Definition:
plugin_template.h:56
gethook
f_plug_api gethook
Definition:
cfnewspaper.c:38
context_stack
CFPContext * context_stack
Definition:
cfpython.c:184
current_context
CFPContext * current_context
Definition:
cfpython.c:186
_cfpcontext::event
object * event
Definition:
plugin_template.h:58
_cfpcontext::third
object * third
Definition:
plugin_template.h:57
_cfpcontext::parms
int parms[5]
Definition:
cfpython.h:128
plugin_common.h
_cfpcontext
Definition:
cfpython.h:116
_cfpcontext::down
struct _cfpcontext * down
Definition:
cfpython.h:117
_cfpcontext::returnvalue
int returnvalue
Definition:
cfpython.h:127
_cfpcontext::who
object * who
Definition:
plugin_template.h:55
crossfire-code
server
branches
1.12
plugins
template
include
plugin_template.h
Generated on Sun Nov 18 2018 02:40:29 for Crossfire Server, Branches 1.12 by
1.8.6