zterrain/ZSystem.h
C header source for ZSystem, 42 lines. Raw file
//----------------------------------------------------------------------------//
typedef struct _ZSYSTEM_CACHE_ITEM {
int size;
struct _ZSYSTEM_CACHE_ITEM *next;
} ZSYSTEM_CACHE_ITEM;
typedef struct _ZSYSTEM_CACHE {
int size, maxsize, num;
ZSYSTEM_CACHE_ITEM *itemlist;
} ZSYSTEM_CACHE;
typedef struct _ZSYSTEM {
void *uniproc; // Object procedure for universal object
ZSYSTEM_CACHE *cache; // Cache
} ZSYSTEM;
typedef void (*ZSYSTEM_OBJECTPROC)(ZSYSTEM *zs);
//----------------------------------------------------------------------------//