mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-09-24 06:47:07 +00:00
ZoneLoading: Add ZoneMemory and the possibility to unload zones and their memory
This commit is contained in:
@@ -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);
|
||||
};
|
||||
Reference in New Issue
Block a user