core/HalfLife2.h
author David Anderson <dvander@alliedmods.net>
Thu Apr 05 07:09:17 2007 +0000 (2007-04-05)
changeset 667 0347227ef615
parent 592 c2a2c38f1331
child 677 e2ae32d5132c
permissions -rw-r--r--
added file headers
     1 /**
     2  * vim: set ts=4 :
     3  * ===============================================================
     4  * SourceMod (C)2004-2007 AlliedModders LLC.  All rights reserved.
     5  * ===============================================================
     6  *
     7  * This file is not open source and may not be copied without explicit
     8  * written permission of AlliedModders LLC.  This file may not be redistributed 
     9  * in whole or significant part.
    10  * For information, see LICENSE.txt or http://www.sourcemod.net/license.php
    11  *
    12  * Version: $Id$
    13  */
    14 
    15 #ifndef _INCLUDE_SOURCEMOD_CHALFLIFE2_H_
    16 #define _INCLUDE_SOURCEMOD_CHALFLIFE2_H_
    17 
    18 #include <sh_list.h>
    19 #include "sm_trie.h"
    20 #include "sm_globals.h"
    21 #include "dt_send.h"
    22 #include "server_class.h"
    23 
    24 using namespace SourceHook;
    25 
    26 struct DataTableInfo
    27 {
    28 	ServerClass *sc;
    29 	Trie *lookup;
    30 };
    31 
    32 class CHalfLife2
    33 {
    34 public:
    35 	CHalfLife2();
    36 	~CHalfLife2();
    37 public:
    38 	/*void OnSourceModStartup(bool late);
    39 	void OnSourceModAllShutdown();*/
    40 public:
    41 	SendProp *FindInSendTable(const char *classname, const char *offset);
    42 	ServerClass *FindServerClass(const char *classname);
    43 private:
    44 	DataTableInfo *_FindServerClass(const char *classname);
    45 private:
    46 	Trie *m_pClasses;
    47 	List<DataTableInfo *> m_Tables;
    48 };
    49 
    50 extern CHalfLife2 g_HL2;
    51 
    52 #endif //_INCLUDE_SOURCEMOD_CHALFLIFE2_H_