added interface spec for data packs
authorDavid Anderson <dvander@alliedmods.net>
Tue Feb 06 19:00:58 2007 +0000 (2007-02-06)
changeset 4401d8333f9baed
parent 439 0f0e53f49f5a
child 441 beba00d0a3e3
added interface spec for data packs
core/msvc8/sourcemod_mm.vcproj
public/ISourceMod.h
     1.1 --- a/core/msvc8/sourcemod_mm.vcproj	Tue Feb 06 05:48:52 2007 +0000
     1.2 +++ b/core/msvc8/sourcemod_mm.vcproj	Tue Feb 06 19:00:58 2007 +0000
     1.3 @@ -342,6 +342,10 @@
     1.4  				>
     1.5  			</File>
     1.6  			<File
     1.7 +				RelativePath="..\..\public\IDataPack.h"
     1.8 +				>
     1.9 +			</File>
    1.10 +			<File
    1.11  				RelativePath="..\..\public\IExtensionSys.h"
    1.12  				>
    1.13  			</File>
     2.1 --- a/public/ISourceMod.h	Tue Feb 06 05:48:52 2007 +0000
     2.2 +++ b/public/ISourceMod.h	Tue Feb 06 19:00:58 2007 +0000
     2.3 @@ -116,6 +116,35 @@
     2.4  									SourcePawn::IPluginContext *pContext,
     2.5  									const cell_t *params,
     2.6  									unsigned int param) =0;
     2.7 +
     2.8 +#if 0
     2.9 +		/**
    2.10 +		 * @brief Creates a data pack object.
    2.11 +		 *
    2.12 +		 * @return			A new IDataPack object.
    2.13 +		 */
    2.14 +		virtual IDataPack *CreateDataPack() =0;
    2.15 +
    2.16 +		/**
    2.17 +		 * @brief Releases a data pack's resources so it can be re-used.
    2.18 +		 *
    2.19 +		 * @param pack		An IDataPack object to release.
    2.20 +		 */
    2.21 +		virtual void FreeDataPack(IDataPack *pack) =0;
    2.22 +
    2.23 +		/**
    2.24 +		 * @brief Returns the automated data pack handle type.
    2.25 +		 *
    2.26 +		 * The readonly data type is the parent of the writable type.  
    2.27 +		 * Note that calling CloseHandle() on either type will release the data pack.
    2.28 +		 * The readonly type is inheritable, but due to limitations of the Handle System,
    2.29 +		 * the writable type is not.
    2.30 +		 *
    2.31 +		 * @param readonly	If true, the readonly type will be returned.
    2.32 +		 * @return			The Handle type for storing generic data packs.
    2.33 +		 */
    2.34 +		 virtual HandleType_t GetDataPackHandleType(bool readonly=false) =0;
    2.35 +#endif
    2.36  	};
    2.37  }
    2.38