mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-30 06:37:57 +03:00
Reworked source tree so it compiles
This commit is contained in:
parent
19e33444e7
commit
8ef16a91f2
164 changed files with 3183 additions and 20134 deletions
27
code/game/consoleevent.h
Normal file
27
code/game/consoleevent.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
#pragma once
|
||||
|
||||
#include <listener.h>
|
||||
#include <mem_blockalloc.h>
|
||||
#include "g_public.h"
|
||||
|
||||
class ConsoleEvent : public Event
|
||||
{
|
||||
private:
|
||||
gentity_t* m_consoleedict;
|
||||
|
||||
public:
|
||||
CLASS_PROTOTYPE(ConsoleEvent);
|
||||
|
||||
void* operator new(size_t size);
|
||||
void operator delete(void* ptr);
|
||||
|
||||
ConsoleEvent();
|
||||
ConsoleEvent(str name) : Event(name) { m_consoleedict = NULL; }
|
||||
|
||||
void SetConsoleEdict(gentity_t* edict);
|
||||
gentity_t* GetConsoleEdict(void);
|
||||
|
||||
virtual void ErrorInternal(Listener* l, str text);
|
||||
};
|
||||
|
||||
extern MEM_BlockAlloc< ConsoleEvent, MEM_BLOCKSIZE > ConsoleEvent_allocator;
|
Loading…
Add table
Add a link
Reference in a new issue