@plugify-plugins/s2sdk-types 2.3.20 → 2.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +21 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -8816,6 +8816,16 @@ declare module ":plugify-plugin-s2sdk" {
8816
8816
  */
8817
8817
  export function GetEventPlayerIndex(event: number, key: string): number;
8818
8818
 
8819
+ /**
8820
+ * @description Retrieves the player slot of a game event's key.
8821
+ *
8822
+ * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetEventPlayerSlot|Docs}
8823
+ *
8824
+ * @param event A pointer to the IGameEvent object containing event data.
8825
+ * @param key The key for which to retrieve the player index.
8826
+ */
8827
+ export function GetEventPlayerSlot(event: number, key: string): number;
8828
+
8819
8829
  /**
8820
8830
  * @description Retrieves the player pawn address of a game event's key.
8821
8831
  *
@@ -8953,6 +8963,17 @@ declare module ":plugify-plugin-s2sdk" {
8953
8963
  */
8954
8964
  export function SetEventPlayerIndex(event: number, key: string, value: number): void;
8955
8965
 
8966
+ /**
8967
+ * @description Sets the player slot value of a game event's key.
8968
+ *
8969
+ * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetEventPlayerSlot|Docs}
8970
+ *
8971
+ * @param event A pointer to the IGameEvent object containing event data.
8972
+ * @param key The key for which to set the player slot value.
8973
+ * @param value The player slot value to set.
8974
+ */
8975
+ export function SetEventPlayerSlot(event: number, key: string, value: number): void;
8976
+
8956
8977
  /**
8957
8978
  * @description Sets the entity address of a game event's key.
8958
8979
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plugify-plugins/s2sdk-types",
3
- "version": "2.3.20",
3
+ "version": "2.3.21",
4
4
  "description": "generated typescript types to write plugins on plugify",
5
5
  "types": "index.d.ts",
6
6
  "scripts": {},