Added lists .c .h and mud_event .c .h

This commit is contained in:
Vatiken
2012-02-12 22:09:38 +00:00
parent dd280c1b58
commit b34c23da96
4 changed files with 487 additions and 0 deletions

36
src/mud_event.h Normal file
View File

@@ -0,0 +1,36 @@
/**
* @file mud_event.h
*
* Part of the core tbaMUD source code distribution, which is a derivative
* of, and continuation of, CircleMUD.
*/
#ifndef _MUD_EVENT_H_
#define _MUD_EVENT_H_
#include "dg_event.h"
#define EVENT_WORLD 0
#define EVENT_DESC 1
#define EVENT_CHAR 2
struct mud_event_data {
struct event * pEvent;
int iEvent_Type;
void * pStruct;
char * sVariables;
};
/* Externals */
extern struct list_data * world_events;
/* Local Functions */
void init_events(void);
struct mud_event_data *new_mud_event(int iEvent_Type, void *pStruct, char *sVariables);
void attach_mud_event(void (*func), struct mud_event_data *pMudEvent, long time);
void free_mud_event(struct mud_event_data *pMudEvent);
/* Events */
EVENTFUNC(get_protocols);
EVENTFUNC(display_usage);
#endif /* _MUD_EVENT_H_ */