ZoneLoading: Add ZoneMemory and the possibility to unload zones and their memory

This commit is contained in:
Jan
2019-12-24 18:41:42 +01:00
parent d224eb8ce5
commit 7121f2e215
9 changed files with 116 additions and 2 deletions

View File

@ -0,0 +1,19 @@
#pragma once
#include "Zone/XBlock.h"
#include <vector>
class ZoneMemory
{
std::vector<XBlock*> m_blocks;
std::vector<void*> m_allocations;
public:
ZoneMemory();
~ZoneMemory();
void AddBlock(XBlock* block);
void* Alloc(size_t size);
char* Dup(const char* str);
};