From 554234f4f238305ee82504bdbb51096efaea74f0 Mon Sep 17 00:00:00 2001 From: oroborus Date: Mon, 28 Jul 2008 16:33:48 +0000 Subject: - moduly si medzi sebou mozu exportovat a imporotvat funkcie - na premiestnovanie striel a tuxov v moduloch modPipe a modTetelport sa pouzivaju funkcie z modulu modMove - uhladeny kod v module.c ;) git-svn-id: http://opensvn.csie.org/tuxanci_ng@176 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/base/modules.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/base/modules.h') diff --git a/src/base/modules.h b/src/base/modules.h index d7e440f..8036a6a 100644 --- a/src/base/modules.h +++ b/src/base/modules.h @@ -30,6 +30,9 @@ typedef struct export_fce_s #endif int (*fce_getNetTypeGame)(); + int (*fce_loadDepModule)(void *name); + void (*fce_addToExportFce)(char *name, void *function); + void* (*fce_getExportFce)(char *name); void (*fce_getTuxProportion)(tux_t *tux, int *x,int *y, int *w, int *h); void (*fce_setTuxProportion)(tux_t *tux, int x, int y); @@ -52,7 +55,7 @@ typedef struct export_fce_s typedef struct module_s { - char *file; + char *name; void *image; int (*fce_init)(export_fce_t *p); @@ -69,6 +72,7 @@ typedef struct module_s extern void initModule(); extern int loadModule(char *name); +extern int loadDepModule(char *name); #ifndef PUBLIC_SERVER extern void drawModule(int x, int y, int w, int h); #endif -- cgit v1.2.3