@plugify-plugins/s2sdk-types 1.2.1 → 1.3.0

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 +12 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -3171,9 +3171,10 @@ declare module ":s2sdk" {
3171
3171
  *
3172
3172
  * {@link https://untrustedmodders.github.io/plugify-generator/?file=https://github.com/untrustedmodders/plugify-source-2/blob/main/s2sdk.pplugin.in#item-QueryInterface|Docs}
3173
3173
  *
3174
- * @param name The name of the module to query the interface from.
3174
+ * @param module The name of the module to query the interface from.
3175
+ * @param name The name of the interface to find.
3175
3176
  */
3176
- export function QueryInterface(name: string): number;
3177
+ export function QueryInterface(module: string, name: string): number;
3177
3178
 
3178
3179
  /**
3179
3180
  * @description Returns the path of the game's directory.
@@ -5735,6 +5736,15 @@ declare module ":s2sdk" {
5735
5736
  */
5736
5737
  export function OnPreWorldUpdate_Unregister(callback: typeof Callbacks.OnPreWorldUpdateCallback): void;
5737
5738
 
5739
+ /**
5740
+ * @description Retrieves the pointer to the current game rules proxy instance.
5741
+ *
5742
+ * {@link https://untrustedmodders.github.io/plugify-generator/?file=https://github.com/untrustedmodders/plugify-source-2/blob/main/s2sdk.pplugin.in#item-GetGameRulesProxy|Docs}
5743
+ *
5744
+ *
5745
+ */
5746
+ export function GetGameRulesProxy(): number;
5747
+
5738
5748
  /**
5739
5749
  * @description Retrieves the pointer to the current game rules instance.
5740
5750
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plugify-plugins/s2sdk-types",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "description": "generated typescript types to write plugins on plugify",
5
5
  "types": "index.d.ts",
6
6
  "scripts": {},