mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-29 14:17:57 +03:00
28 lines
566 B
C
28 lines
566 B
C
![]() |
#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;
|