Add ICellArray and create/free in ISourceMod

Add an ICellArray interface to expose the adt_array CellArray class from
logic to core.
Add methods to ISourceMod to create and delete ICellArray instances in
logic.
This commit is contained in:
Peace-Maker
2016-08-21 21:32:23 +02:00
parent f3c454084a
commit 5b9ae5917b
10 changed files with 202 additions and 7 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ namespace SourceMod {
// Add 1 to the RHS of this expression to bump the intercom file
// This is to prevent mismatching core/logic binaries
static const uint32_t SM_LOGIC_MAGIC = 0x0F47C0DE - 54;
static const uint32_t SM_LOGIC_MAGIC = 0x0F47C0DE - 55;
} // namespace SourceMod
+3
View File
@@ -51,6 +51,7 @@ class IExtensionSys;
class ITextParsers;
class ILogger;
class IDataPack;
class ICellArray;
struct sm_logic_t
{
@@ -71,6 +72,8 @@ struct sm_logic_t
void (*RegisterProfiler)(IProfilingTool *tool);
IDataPack * (*CreateDataPack)();
void (*FreeDataPack)(IDataPack *pack);
ICellArray * (*CreateCellArray)(size_t blocksize);
void (*FreeCellArray)(ICellArray *arr);
IScriptManager *scripts;
IShareSys *sharesys;
IExtensionSys *extsys;