removed const from most apis. it was pointless since there were no actual const pointers.
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40621
This commit is contained in:
@@ -146,21 +146,21 @@ namespace SourceMod
|
||||
*
|
||||
* @return Forward name.
|
||||
*/
|
||||
virtual const char *GetForwardName() const =0;
|
||||
virtual const char *GetForwardName() =0;
|
||||
|
||||
/**
|
||||
* @brief Returns the number of functions in this forward.
|
||||
*
|
||||
* @return Number of functions in forward.
|
||||
*/
|
||||
virtual unsigned int GetFunctionCount() const =0;
|
||||
virtual unsigned int GetFunctionCount() =0;
|
||||
|
||||
/**
|
||||
* @brief Returns the method of multi-calling this forward has.
|
||||
*
|
||||
* @return ExecType of the forward.
|
||||
*/
|
||||
virtual ExecType GetExecType() const =0;
|
||||
virtual ExecType GetExecType() =0;
|
||||
|
||||
/**
|
||||
* @brief Executes the forward.
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace SourceMod
|
||||
* @return String containing the player's name,
|
||||
* or NULL if unavailable.
|
||||
*/
|
||||
virtual const char *GetName() const =0;
|
||||
virtual const char *GetName() =0;
|
||||
|
||||
/**
|
||||
* @brief Returns the player's IP address.
|
||||
@@ -53,7 +53,7 @@ namespace SourceMod
|
||||
* @return String containing the player's IP address,
|
||||
* or NULL if unavailable.
|
||||
*/
|
||||
virtual const char *GetIPAddress() const =0;
|
||||
virtual const char *GetIPAddress() =0;
|
||||
|
||||
/**
|
||||
* @brief Returns the player's authentication string.
|
||||
@@ -61,21 +61,21 @@ namespace SourceMod
|
||||
* @return String containing the player's auth string.
|
||||
* May be NULL if unavailable.
|
||||
*/
|
||||
virtual const char *GetAuthString() const =0;
|
||||
virtual const char *GetAuthString() =0;
|
||||
|
||||
/**
|
||||
* @brief Returns the player's edict_t structure.
|
||||
*
|
||||
* @return edict_t pointer, or NULL if unavailable.
|
||||
*/
|
||||
virtual edict_t *GetEdict() const =0;
|
||||
virtual edict_t *GetEdict() =0;
|
||||
|
||||
/**
|
||||
* @brief Returns whether the player is in game (putinserver).
|
||||
*
|
||||
* @return True if in game, false otherwise.
|
||||
*/
|
||||
virtual bool IsInGame() const =0;
|
||||
virtual bool IsInGame() =0;
|
||||
|
||||
/**
|
||||
* @brief Returns whether the player is connected.
|
||||
@@ -85,21 +85,21 @@ namespace SourceMod
|
||||
*
|
||||
* @return True if connected, false otherwise.
|
||||
*/
|
||||
virtual bool IsConnected() const =0;
|
||||
virtual bool IsConnected() =0;
|
||||
|
||||
/**
|
||||
* @brief Returns whether the player is a fake client.
|
||||
*
|
||||
* @return True if a fake client, false otherwise.
|
||||
*/
|
||||
virtual bool IsFakeClient() const =0;
|
||||
virtual bool IsFakeClient() =0;
|
||||
|
||||
/**
|
||||
* @brief Returns the client's AdminId, if any.
|
||||
*
|
||||
* @return AdminId, or INVALID_ADMIN_ID if none.
|
||||
*/
|
||||
virtual AdminId GetAdminId() const =0;
|
||||
virtual AdminId GetAdminId() =0;
|
||||
|
||||
/**
|
||||
* @brief Sets the client's AdminId.
|
||||
|
||||
+10
-10
@@ -93,50 +93,50 @@ namespace SourceMod
|
||||
/**
|
||||
* @brief Returns the lifetime of a plugin.
|
||||
*/
|
||||
virtual PluginType GetType() const =0;
|
||||
virtual PluginType GetType() =0;
|
||||
|
||||
/**
|
||||
* @brief Returns the current API context being used in the plugin.
|
||||
*
|
||||
* @return Pointer to an IPluginContext, or NULL if not loaded.
|
||||
*/
|
||||
virtual SourcePawn::IPluginContext *GetBaseContext() const =0;
|
||||
virtual SourcePawn::IPluginContext *GetBaseContext() =0;
|
||||
|
||||
/**
|
||||
* @brief Returns the context structure being used in the plugin.
|
||||
*
|
||||
* @return Pointer to an sp_context_t, or NULL if not loaded.
|
||||
*/
|
||||
virtual sp_context_t *GetContext() const =0;
|
||||
virtual sp_context_t *GetContext() =0;
|
||||
|
||||
/**
|
||||
* @brief Returns the plugin file structure.
|
||||
*
|
||||
* @return Pointer to an sp_plugin_t, or NULL if not loaded.
|
||||
*/
|
||||
virtual const sp_plugin_t *GetPluginStructure() const =0;
|
||||
virtual const sp_plugin_t *GetPluginStructure() =0;
|
||||
|
||||
/**
|
||||
* @brief Returns information about the plugin by reference.
|
||||
*
|
||||
* @return Pointer to a sm_plugininfo_t object, NULL if plugin is not loaded.
|
||||
*/
|
||||
virtual const sm_plugininfo_t *GetPublicInfo() const =0;
|
||||
virtual const sm_plugininfo_t *GetPublicInfo() =0;
|
||||
|
||||
/**
|
||||
* @brief Returns the plugin filename (relative to plugins dir).
|
||||
*/
|
||||
virtual const char *GetFilename() const =0;
|
||||
virtual const char *GetFilename() =0;
|
||||
|
||||
/**
|
||||
* @brief Returns true if a plugin is in debug mode, false otherwise.
|
||||
*/
|
||||
virtual bool IsDebugging() const =0;
|
||||
virtual bool IsDebugging() =0;
|
||||
|
||||
/**
|
||||
* @brief Returns the plugin status.
|
||||
*/
|
||||
virtual PluginStatus GetStatus() const =0;
|
||||
virtual PluginStatus GetStatus() =0;
|
||||
|
||||
/**
|
||||
* @brief Sets whether the plugin is paused or not.
|
||||
@@ -148,12 +148,12 @@ namespace SourceMod
|
||||
/**
|
||||
* @brief Returns the unique serial number of a plugin.
|
||||
*/
|
||||
virtual unsigned int GetSerial() const =0;
|
||||
virtual unsigned int GetSerial() =0;
|
||||
|
||||
/**
|
||||
* @brief Returns a plugin's identity token.
|
||||
*/
|
||||
virtual IdentityToken_t *GetIdentity() const =0;
|
||||
virtual IdentityToken_t *GetIdentity() =0;
|
||||
|
||||
/**
|
||||
* @brief Sets a property on this plugin. This is used for per-plugin
|
||||
|
||||
Reference in New Issue
Block a user