-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(onesync/server): basic state bag write policies
* Basic rejection logic for write-protected keys in player/entity state bags. * Resync replicated state bags with the source client (on rejection). * Native handler 'SET_STATE_BAG_KEY_POLICY' to allow setting write policies per key.
- Loading branch information
1 parent
1bdfac8
commit dbdc89c
Showing
4 changed files
with
84 additions
and
3 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
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
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
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,16 @@ | ||
--- | ||
ns: CFX | ||
apiset: server | ||
--- | ||
## SET_STATE_BAG_KEY_POLICY | ||
|
||
```c | ||
void SET_STATE_BAG_KEY_POLICY(char* keyName, BOOL writePolicy); | ||
``` | ||
Sets the write policy for a statebag key. | ||
(This affects all player and entity statebags.) | ||
## Parameters | ||
* **keyName**: The key name to set the write policy for. | ||
* **writePolicy**: Whether to allow clients to write to this key. |