diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-28 16:33:48 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-28 16:33:48 +0000 |
| commit | 554234f4f238305ee82504bdbb51096efaea74f0 (patch) | |
| tree | d3ca5826ff970de0abbcb96a370a8adcac80744d /src/base/modules.h | |
| parent | f1fca3a63e37866dbcc84ffbf5927697fc60c263 (diff) | |
- 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
Diffstat (limited to 'src/base/modules.h')
| -rw-r--r-- | src/base/modules.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 |