Update compiler and includes to version 1.7.0.

This commit is contained in:
Richard Helgeby
2015-03-21 15:43:24 +01:00
parent 743d17e05a
commit 5ec3694535
54 changed files with 4087 additions and 1599 deletions
+45 -10
View File
@@ -45,6 +45,25 @@ enum NetFlow
NetFlow_Both, /**< Both values added together */
};
/**
* Auth string types.
*
* Note that for the Steam2 and Steam3 types, the following ids are
* also valid values:
* "STEAM_ID_PENDING" - Authentication is pending.
* "STEAM_ID_LAN" - Authentication is disabled because of being on a LAN server.
* "BOT" - The client is a bot.
*/
enum AuthIdType
{
AuthId_Engine = 0, /**< The game-specific auth string as returned from the engine */
// The following are only available on games that support Steam authentication.
AuthId_Steam2, /**< Steam2 rendered format, ex "STEAM_1:1:4153990" */
AuthId_Steam3, /**< Steam3 rendered format, ex "[U:1:8307981]" */
AuthId_SteamID64, /**< A SteamID64 (uint64) as a String, ex "76561197968573709" */
};
/**
* MAXPLAYERS is not the same as MaxClients.
* MAXPLAYERS is a hardcoded value as an upper limit. MaxClients changes based on the server.
@@ -80,7 +99,7 @@ forward bool:OnClientConnect(client, String:rejectmsg[], maxlen);
* @param client Client index.
* @noreturn
*/
forward OnClientConnected(client);
forward void OnClientConnected(client);
/**
* Called when a client is entering the game.
@@ -96,7 +115,7 @@ forward OnClientConnected(client);
* @param client Client index.
* @noreturn
*/
forward OnClientPutInServer(client);
forward void OnClientPutInServer(client);
/**
* Called when a client is disconnecting from the server.
@@ -104,7 +123,7 @@ forward OnClientPutInServer(client);
* @param client Client index.
* @noreturn
*/
forward OnClientDisconnect(client);
forward void OnClientDisconnect(client);
/**
* Called when a client is disconnected from the server.
@@ -112,7 +131,7 @@ forward OnClientDisconnect(client);
* @param client Client index.
* @noreturn
*/
forward OnClientDisconnect_Post(client);
forward void OnClientDisconnect_Post(client);
/**
* Called when a client is sending a command.
@@ -132,20 +151,20 @@ forward Action:OnClientCommand(client, args);
* @param client Client index.
* @noreturn
*/
forward OnClientSettingsChanged(client);
forward void OnClientSettingsChanged(client);
/**
* Called when a client receives a Steam ID. The state of a client's
* Called when a client receives an auth ID. The state of a client's
* authorization as an admin is not guaranteed here. Use
* OnClientPostAdminCheck() if you need a client's admin status.
*
* This is called by bots, but the ID will be "BOT".
*
* @param client Client index.
* @param auth Client auth string.
* @param auth Client Steam2 id, if available, else engine auth id.
* @noreturn
*/
forward OnClientAuthorized(client, const String:auth[]);
forward void OnClientAuthorized(client, const String:auth[]);
/**
* Called once a client is authorized and fully in-game, but
@@ -180,7 +199,7 @@ forward Action:OnClientPreAdminCheck(client);
* @param client Client index.
* @noreturn
*/
forward OnClientPostAdminFilter(client);
forward void OnClientPostAdminFilter(client);
/**
* Called once a client is authorized and fully in-game, and
@@ -192,7 +211,7 @@ forward OnClientPostAdminFilter(client);
* @param client Client index.
* @noreturn
*/
forward OnClientPostAdminCheck(client);
forward void OnClientPostAdminCheck(client);
/**
* This function will be deprecated in a future release. Use the MaxClients variable instead.
@@ -267,8 +286,24 @@ native bool:GetClientIP(client, String:ip[], maxlen, bool:remport=true);
* @return True on success, false otherwise.
* @error If the client is not connected or the index is invalid.
*/
#pragma deprecated Use GetClientAuthId
native bool:GetClientAuthString(client, String:auth[], maxlen, bool:validate=true);
/**
* Retrieves a client's authentication string (SteamID).
*
* @param client Player index.
* @param authType Auth id type and format to use.
* @param auth Buffer to store the client's auth id.
* @param maxlen Maximum length of string buffer (includes NULL terminator).
* @param validate Check backend validation status.
* DO NOT PASS FALSE UNLESS YOU UNDERSTAND THE CONSEQUENCES,
* You WILL KNOW if you need to use this, MOST WILL NOT.
* @return True on success, false otherwise.
* @error If the client is not connected or the index is invalid.
*/
native bool:GetClientAuthId(client, AuthIdType:authType, String:auth[], maxlen, bool:validate=true);
/**
* Returns the client's Steam account ID.
*