Updated includes and spcomp to SourceMod 1.9
This commit is contained in:
Vendored
+13
-18
@@ -66,7 +66,6 @@ typeset EventHook
|
||||
// this event has set the hook mode EventHookMode_PostNoCopy.
|
||||
// @param name String containing the name of the event.
|
||||
// @param dontBroadcast True if event was not broadcast to clients, false otherwise.
|
||||
// @noreturn
|
||||
///
|
||||
function void (Event event, const char[] name, bool dontBroadcast);
|
||||
};
|
||||
@@ -79,6 +78,13 @@ methodmap Event < Handle
|
||||
//
|
||||
// @param dontBroadcast Optional boolean that determines if event should be broadcast to clients.
|
||||
public native void Fire(bool dontBroadcast=false);
|
||||
|
||||
// Fires a game event to only the specified client.
|
||||
//
|
||||
// Unlike Fire, this function DOES NOT close the event Handle.
|
||||
//
|
||||
// @param client Index of client to receive the event..
|
||||
public native void FireToClient(int client);
|
||||
|
||||
// Cancels a previously created game event that has not been fired. This
|
||||
// is necessary to avoid leaking memory when an event isn't fired.
|
||||
@@ -88,7 +94,7 @@ methodmap Event < Handle
|
||||
//
|
||||
// @param key Name of event key.
|
||||
// @param defValue Optional default value to use if the key is not found.
|
||||
// @return The boolean value of the specfied event key.
|
||||
// @return The boolean value of the specified event key.
|
||||
public native bool GetBool(const char[] key, bool defValue=false);
|
||||
|
||||
// Sets the boolean value of a game event's key.
|
||||
@@ -101,7 +107,7 @@ methodmap Event < Handle
|
||||
//
|
||||
// @param key Name of event key.
|
||||
// @param defValue Optional default value to use if the key is not found.
|
||||
// @return The integer value of the specfied event key.
|
||||
// @return The integer value of the specified event key.
|
||||
public native int GetInt(const char[] key, int defValue=0);
|
||||
|
||||
// Sets the integer value of a game event's key.
|
||||
@@ -119,7 +125,7 @@ methodmap Event < Handle
|
||||
//
|
||||
// @param key Name of event key.
|
||||
// @param defValue Optional default value to use if the key is not found.
|
||||
// @return The floating point value of the specfied event key.
|
||||
// @return The floating point value of the specified event key.
|
||||
public native float GetFloat(const char[] key, float defValue=0.0);
|
||||
|
||||
// Sets the floating point value of a game event's key.
|
||||
@@ -163,7 +169,6 @@ methodmap Event < Handle
|
||||
* @param name Name of event.
|
||||
* @param callback An EventHook function pointer.
|
||||
* @param mode Optional EventHookMode determining the type of hook.
|
||||
* @noreturn
|
||||
* @error Invalid event name or invalid callback function.
|
||||
*/
|
||||
native void HookEvent(const char[] name, EventHook callback, EventHookMode mode=EventHookMode_Post);
|
||||
@@ -185,7 +190,6 @@ native bool HookEventEx(const char[] name, EventHook callback, EventHookMode mod
|
||||
* @param name Name of event.
|
||||
* @param callback An EventHook function pointer.
|
||||
* @param mode Optional EventHookMode determining the type of hook.
|
||||
* @noreturn
|
||||
* @error Invalid callback function or no active hook for specified event.
|
||||
*/
|
||||
native void UnhookEvent(const char[] name, EventHook callback, EventHookMode mode=EventHookMode_Post);
|
||||
@@ -211,7 +215,6 @@ native Event CreateEvent(const char[] name, bool force=false);
|
||||
*
|
||||
* @param event Handle to the event.
|
||||
* @param dontBroadcast Optional boolean that determines if event should be broadcast to clients.
|
||||
* @noreturn
|
||||
* @error Invalid or corrupt Handle.
|
||||
*/
|
||||
native void FireEvent(Handle event, bool dontBroadcast=false);
|
||||
@@ -220,7 +223,6 @@ native void FireEvent(Handle event, bool dontBroadcast=false);
|
||||
* Cancels a previously created game event that has not been fired.
|
||||
*
|
||||
* @param event Handled to the event.
|
||||
* @noreturn
|
||||
* @error Invalid or corrupt Handle.
|
||||
*/
|
||||
native void CancelCreatedEvent(Handle event);
|
||||
@@ -231,7 +233,7 @@ native void CancelCreatedEvent(Handle event);
|
||||
* @param event Handle to the event.
|
||||
* @param key Name of event key.
|
||||
* @param defValue Optional default value to use if the key is not found.
|
||||
* @return The boolean value of the specfied event key.
|
||||
* @return The boolean value of the specified event key.
|
||||
* @error Invalid or corrupt Handle.
|
||||
*/
|
||||
native bool GetEventBool(Handle event, const char[] key, bool defValue=false);
|
||||
@@ -242,7 +244,6 @@ native bool GetEventBool(Handle event, const char[] key, bool defValue=false);
|
||||
* @param event Handle to the event.
|
||||
* @param key Name of event key.
|
||||
* @param value New boolean value.
|
||||
* @noreturn
|
||||
* @error Invalid or corrupt Handle.
|
||||
*/
|
||||
native void SetEventBool(Handle event, const char[] key, bool value);
|
||||
@@ -253,7 +254,7 @@ native void SetEventBool(Handle event, const char[] key, bool value);
|
||||
* @param event Handle to the event.
|
||||
* @param key Name of event key.
|
||||
* @param defValue Optional default value to use if the key is not found.
|
||||
* @return The integer value of the specfied event key.
|
||||
* @return The integer value of the specified event key.
|
||||
* @error Invalid or corrupt Handle.
|
||||
*/
|
||||
native int GetEventInt(Handle event, const char[] key, int defValue=0);
|
||||
@@ -269,7 +270,6 @@ native int GetEventInt(Handle event, const char[] key, int defValue=0);
|
||||
* @param event Handle to the event.
|
||||
* @param key Name of event key.
|
||||
* @param value New integer value.
|
||||
* @noreturn
|
||||
* @error Invalid or corrupt Handle.
|
||||
*/
|
||||
native void SetEventInt(Handle event, const char[] key, int value);
|
||||
@@ -280,7 +280,7 @@ native void SetEventInt(Handle event, const char[] key, int value);
|
||||
* @param event Handle to the event.
|
||||
* @param key Name of event key.
|
||||
* @param defValue Optional default value to use if the key is not found.
|
||||
* @return The floating point value of the specfied event key.
|
||||
* @return The floating point value of the specified event key.
|
||||
* @error Invalid or corrupt Handle.
|
||||
*/
|
||||
native float GetEventFloat(Handle event, const char[] key, float defValue=0.0);
|
||||
@@ -291,7 +291,6 @@ native float GetEventFloat(Handle event, const char[] key, float defValue=0.0);
|
||||
* @param event Handle to the event.
|
||||
* @param key Name of event key.
|
||||
* @param value New floating point value.
|
||||
* @noreturn
|
||||
* @error Invalid or corrupt Handle.
|
||||
*/
|
||||
native void SetEventFloat(Handle event, const char[] key, float value);
|
||||
@@ -304,7 +303,6 @@ native void SetEventFloat(Handle event, const char[] key, float value);
|
||||
* @param value Buffer to store the value of the specified event key.
|
||||
* @param maxlength Maximum length of string buffer.
|
||||
* @param defValue Optional default value to use if the key is not found.
|
||||
* @noreturn
|
||||
* @error Invalid or corrupt Handle.
|
||||
*/
|
||||
native void GetEventString(Handle event, const char[] key, char[] value, int maxlength, const char[] defvalue="");
|
||||
@@ -315,7 +313,6 @@ native void GetEventString(Handle event, const char[] key, char[] value, int max
|
||||
* @param event Handle to the event.
|
||||
* @param key Name of event key.
|
||||
* @param value New string value.
|
||||
* @noreturn
|
||||
* @error Invalid or corrupt Handle.
|
||||
*/
|
||||
native void SetEventString(Handle event, const char[] key, const char[] value);
|
||||
@@ -326,7 +323,6 @@ native void SetEventString(Handle event, const char[] key, const char[] value);
|
||||
* @param event Handle to the event.
|
||||
* @param name Buffer to store the name of the event.
|
||||
* @param maxlength Maximum length of string buffer.
|
||||
* @noreturn
|
||||
* @error Invalid or corrupt Handle.
|
||||
*/
|
||||
native void GetEventName(Handle event, char[] name, int maxlength);
|
||||
@@ -339,7 +335,6 @@ native void GetEventName(Handle event, char[] name, int maxlength);
|
||||
*
|
||||
* @param event Handle to an event from an event hook.
|
||||
* @param dontBroadcast True to disable broadcasting, false otherwise.
|
||||
* @noreturn
|
||||
* @error Invalid Handle.
|
||||
*/
|
||||
native void SetEventBroadcast(Handle event, bool dontBroadcast);
|
||||
|
||||
Reference in New Issue
Block a user