@plugify-plugins/s2sdk-types 2.3.28 → 2.4.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 +47 -17
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2639,6 +2639,16 @@ declare module ":plugify-plugin-s2sdk" {
2639
2639
 
2640
2640
  function OnServerStartupCallback(): void;
2641
2641
 
2642
+ /**
2643
+ * @description Called before server activation to build game session manifest.
2644
+ *
2645
+ * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-OnBuildGameSessionManifestCallback|Docs}
2646
+ *
2647
+ *
2648
+ */
2649
+
2650
+ function OnBuildGameSessionManifestCallback(): void;
2651
+
2642
2652
  /**
2643
2653
  * @description Called on every server activate.
2644
2654
  *
@@ -7948,41 +7958,43 @@ declare module ":plugify-plugin-s2sdk" {
7948
7958
  export function GetAllConVars(): string[];
7949
7959
 
7950
7960
  /**
7951
- * @description Finds a module by name.
7961
+ * @description Queries an interface from a specified module.
7952
7962
  *
7953
- * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-FindModule|Docs}
7963
+ * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-QueryInterface|Docs}
7954
7964
  *
7955
- * @param name The name of the module to find.
7965
+ * @param module The name of the module to query the interface from.
7966
+ * @param name The name of the interface to find.
7956
7967
  */
7957
- export function FindModule(name: string): number;
7968
+ export function QueryInterface(module: string, name: string): number;
7958
7969
 
7959
7970
  /**
7960
- * @description Finds an interface by name.
7971
+ * @description Returns the path of the game's directory.
7972
+ *
7973
+ * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetGameDirectory|Docs}
7961
7974
  *
7962
- * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-FindInterface|Docs}
7963
7975
  *
7964
- * @param name The name of the interface to find.
7965
7976
  */
7966
- export function FindInterface(name: string): number;
7977
+ export function GetGameDirectory(): string;
7967
7978
 
7968
7979
  /**
7969
- * @description Queries an interface from a specified module.
7980
+ * @description Reads a file and returns its contents as a string.
7970
7981
  *
7971
- * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-QueryInterface|Docs}
7982
+ * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-ReadFileVPK|Docs}
7972
7983
  *
7973
- * @param module The name of the module to query the interface from.
7974
- * @param name The name of the interface to find.
7984
+ * @param localFileName The relative path of the file to read.
7985
+ * @param pathId The filesystem search path ID (e.g., "GAME"). If empty, uses "GAME".
7975
7986
  */
7976
- export function QueryInterface(module: string, name: string): number;
7987
+ export function ReadFileVPK(localFileName: string, pathId: string): string;
7977
7988
 
7978
7989
  /**
7979
- * @description Returns the path of the game's directory.
7980
- *
7981
- * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetGameDirectory|Docs}
7990
+ * @description Finds all files matching the given wildcard and path ID.
7982
7991
  *
7992
+ * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-FindFileAbsoluteList|Docs}
7983
7993
  *
7994
+ * @param wildcard The wildcard pattern to match.
7995
+ * @param pathId The filesystem search path ID (e.g., "GAME"). If empty, uses "GAME".
7984
7996
  */
7985
- export function GetGameDirectory(): string;
7997
+ export function FindFileAbsoluteList(wildcard: string, pathId: string): string[];
7986
7998
 
7987
7999
  /**
7988
8000
  * @description Returns the current map name.
@@ -11395,6 +11407,24 @@ declare module ":plugify-plugin-s2sdk" {
11395
11407
  */
11396
11408
  export function OnServerStartup_Unregister(callback: typeof Callbacks.OnServerStartupCallback): void;
11397
11409
 
11410
+ /**
11411
+ * @description Register callback to event.
11412
+ *
11413
+ * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-OnBuildGameSessionManifest_Register|Docs}
11414
+ *
11415
+ * @param callback Function callback.
11416
+ */
11417
+ export function OnBuildGameSessionManifest_Register(callback: typeof Callbacks.OnBuildGameSessionManifestCallback): void;
11418
+
11419
+ /**
11420
+ * @description Unregister callback to event.
11421
+ *
11422
+ * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-OnBuildGameSessionManifest_Unregister|Docs}
11423
+ *
11424
+ * @param callback Function callback.
11425
+ */
11426
+ export function OnBuildGameSessionManifest_Unregister(callback: typeof Callbacks.OnBuildGameSessionManifestCallback): void;
11427
+
11398
11428
  /**
11399
11429
  * @description Register callback to event.
11400
11430
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plugify-plugins/s2sdk-types",
3
- "version": "2.3.28",
3
+ "version": "2.4.0",
4
4
  "description": "generated typescript types to write plugins on plugify",
5
5
  "types": "index.d.ts",
6
6
  "scripts": {},