-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 87719b2 Author: zonical <[email protected]> Date: Mon Apr 24 13:42:05 2023 +1200 Remove enum structs from the rest of the functions commit 4abd145 Author: zonical <[email protected]> Date: Fri Apr 21 07:48:29 2023 +1200 Added OnClientActivatedContractPost commit 830b06d Author: zonical <[email protected]> Date: Thu Apr 20 18:09:16 2023 +1200 Next set of natives commit 040c105 Author: zonical <[email protected]> Date: Thu Apr 20 13:16:03 2023 +1200 First batch of changes - new natives, ripped out a lot of unsafe stuff, changes variable names
- Loading branch information
Showing
11 changed files
with
1,318 additions
and
563 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
addons/sourcemod/scripting/include/zcontracts/zcontracts_forwards.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
// =========================== FORWARDS =========================== | ||
|
||
/** | ||
* Sent on client completion of a Contract objective. | ||
* | ||
* @param client Client index. | ||
* @param uuid The UUID of the original Contract. | ||
* @param objective Objective index. | ||
*/ | ||
forward void OnContractObjectiveCompleted(int client, char UUID[MAX_UUID_SIZE], int objective); | ||
/** | ||
* Sent on client completion of a Contract. | ||
* | ||
* @param client Client index. | ||
* @param uuid The UUID of the original Contract. | ||
*/ | ||
forward void OnContractCompleted(int client, char UUID[MAX_UUID_SIZE]); | ||
|
||
/** | ||
* Called before a contract is saved to the database. This is not called for any | ||
* low-level value setting functions (e.g SetContractProgressDatabase). | ||
* | ||
* @param client Client index. | ||
* @param uuid The UUID of the original Contract. | ||
*/ | ||
forward bool OnContractPreSave(int client, char UUID[MAX_UUID_SIZE]); | ||
|
||
/** | ||
* Called before an objective is saved to the database. This is not called for any | ||
* low-level value setting functions (e.g SetObjectiveProgressDatabase). | ||
* | ||
* @param client Client index. | ||
* @param uuid The UUID of the original Contract. | ||
* @param objective Objective index. | ||
*/ | ||
forward bool OnObjectivePreSave(int client, char UUID[MAX_UUID_SIZE], int objective); | ||
|
||
/** | ||
* Called when an event is about to potentially add progress to a Contract. | ||
* | ||
* @param client Client index. | ||
* @param UUID UUID of the Contract. | ||
* @param objective Objective index. | ||
* @param event Name of the event being processed. | ||
* @param value Value passed by the event. | ||
* @return A value higher than Plugin_Continue will prevent potential progress being added to the Contract. | ||
*/ | ||
forward Action OnProcessContractLogic(int client, char UUID[MAX_UUID_SIZE], int objective, char event[MAX_EVENT_SIZE], | ||
int value); | ||
|
||
/** | ||
* Called when a client selects a Contract. | ||
* | ||
* @param client Client index. | ||
* @param UUID UUID of the Contract. | ||
*/ | ||
forward void OnClientActivatedContract(int client, char UUID[MAX_UUID_SIZE]); | ||
|
||
/** | ||
* Called when a client selects a Contract and data from the database has been retrieved. | ||
* | ||
* @param client Client index. | ||
* @param UUID UUID of the Contract. | ||
*/ | ||
forward void OnClientActivatedContractPost(int client, char UUID[MAX_UUID_SIZE]); | ||
|
||
/** | ||
* Called when the database returns progress data about a Contract. | ||
* | ||
* @param client Client index. | ||
* @param UUID UUID of the Contract. | ||
* @param progress Progress value from the database. | ||
*/ | ||
forward void OnContractProgressReceived(int client, char UUID[MAX_UUID_SIZE], int progress); | ||
|
||
/** | ||
* Called when the database returns progress data about a Contract Objective. | ||
* | ||
* @param client Client index. | ||
* @param UUID UUID of the Contract. | ||
* @param objective ID of the Objective. | ||
* @param progress Progress value from the database. | ||
*/ | ||
forward void OnObjectiveProgressReceived(int client, char UUID[MAX_UUID_SIZE], int objective, int progress); |
Oops, something went wrong.