Reworked source tree so it compiles

This commit is contained in:
L 2023-01-29 20:59:31 +01:00
parent 19e33444e7
commit 8ef16a91f2
164 changed files with 3183 additions and 20134 deletions

27
code/game/consoleevent.h Normal file
View 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;