Don't expose CellArrays in ISourceMod to extensions

Don't let extensions have access to the internal implementation of cell
arrays.
This commit is contained in:
Peace-Maker
2016-08-26 15:09:18 -07:00
parent 5b9ae5917b
commit ecbedb7b11
4 changed files with 14 additions and 31 deletions
+13
View File
@@ -50,11 +50,24 @@ public:
free(m_Data);
}
/**
* @brief Creates a cell array object.
*
* @param blocksize The number of cells each member of the array can
* hold. For example, 32 cells is equivalent to:
* new Array[X][32]
* @return A new ICellArray object.
*/
static ICellArray *New(size_t blocksize)
{
return new CellArray(blocksize);
}
/**
* @brief Releases a cell array's resources.
*
* @param pack An ICellArray object to release.
*/
static void Free(ICellArray *arr)
{
delete arr;
-10
View File
@@ -745,16 +745,6 @@ bool SourceModBase::IsMapRunning()
return g_OnMapStarted;
}
ICellArray *SourceModBase::CreateCellArray(size_t blocksize)
{
return logicore.CreateCellArray(blocksize);
}
void SourceModBase::FreeCellArray(ICellArray *arr)
{
logicore.FreeCellArray(arr);
}
class ConVarRegistrar :
public IConCommandBaseAccessor,
public SMGlobalClass
-2
View File
@@ -135,8 +135,6 @@ public: // ISourceMod
int GetPluginId();
int GetShApiVersion();
bool IsMapRunning();
ICellArray *CreateCellArray(size_t blocksize);
void FreeCellArray(ICellArray *arr);
private:
void ShutdownServices();
private: