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
+1 -19
View File
@@ -40,11 +40,10 @@
#include <IHandleSys.h>
#include <sp_vm_api.h>
#include <IDataPack.h>
#include <ICellArray.h>
#include <time.h>
#define SMINTERFACE_SOURCEMOD_NAME "ISourceMod"
#define SMINTERFACE_SOURCEMOD_VERSION 14
#define SMINTERFACE_SOURCEMOD_VERSION 13
/**
* @brief Forward declaration of the KeyValues class.
@@ -319,23 +318,6 @@ namespace SourceMod
* @return True if a map is currently running, otherwise false.
*/
virtual bool IsMapRunning() = 0;
/**
* @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.
*/
virtual ICellArray *CreateCellArray(size_t blocksize) = 0;
/**
* @brief Releases a cell array's resources so it can be re-used.
*
* @param pack An ICellArray object to release.
*/
virtual void FreeCellArray(ICellArray *arr) = 0;
};
}