00001 00005 /* 00006 Copyright (C) 2002-2010 UFO: Alien Invasion. 00007 00008 This program is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU General Public License 00010 as published by the Free Software Foundation; either version 2 00011 of the License, or (at your option) any later version. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 00017 See the GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with this program; if not, write to the Free Software 00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00022 00023 */ 00024 00025 #ifndef E_MAIN_H_ 00026 #define E_MAIN_H_ 00027 00031 typedef struct eventRegister_s { 00035 const event_t type; 00039 const char *name; 00043 const char *formatString; 00049 void (*eventCallback)(const struct eventRegister_s *self, struct dbuffer *msg); 00056 int (*timeCallback)(const struct eventRegister_s *self, struct dbuffer *msg, const int dt); 00057 00063 qboolean (*eventCheck)(const struct eventRegister_s *self, const struct dbuffer *msg); 00064 } eventRegister_t; 00065 00066 const eventRegister_t *CL_GetEvent(const event_t eType); 00067 00068 #endif