added usage of the Handle System to begin experimenting
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40257
This commit is contained in:
@@ -17,6 +17,8 @@ namespace SourceMod
|
||||
typedef unsigned int HandleType_t;
|
||||
typedef unsigned int Handle_t;
|
||||
|
||||
class SourcePawn::IPluginContext;
|
||||
|
||||
/**
|
||||
* About type checking:
|
||||
* Types can be inherited - a Parent type ("Supertype") can have child types.
|
||||
@@ -179,13 +181,13 @@ namespace SourceMod
|
||||
*
|
||||
* @param type Type to use on the handle.
|
||||
* @param object Object to bind to the handle.
|
||||
* @param ctx Plugin context that will own this handle. NULL for none.
|
||||
* @param pOwner Plugin context that will own this handle. NULL for none.
|
||||
* @param ident Identity token if any security rights are needed.
|
||||
* @return A new Handle_t.
|
||||
*/
|
||||
virtual Handle_t CreateScriptHandle(HandleType_t type,
|
||||
void *object,
|
||||
sp_context_t *ctx,
|
||||
SourcePawn::IPluginContext *pOwner,
|
||||
IdentityToken_t *ident) =0;
|
||||
|
||||
/**
|
||||
|
||||
@@ -64,6 +64,12 @@ namespace SourceMod
|
||||
* @brief Returns whether the current entry is a file.
|
||||
*/
|
||||
virtual bool IsEntryFile() =0;
|
||||
|
||||
/**
|
||||
* @brief Returns true if the current entry is valid
|
||||
* (Used similarly to MoreFiles).
|
||||
*/
|
||||
virtual bool IsEntryValid() =0;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user