@cybermp-community/client-types 2.5.0 → 2.5.2

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.
package/dist/game.d.ts CHANGED
@@ -226,11 +226,11 @@ export interface MpFuncs {
226
226
  GetDisplaySize(wrapperSize: C.Vector2, frameSize: C.Vector2): C.Vector2;
227
227
  GetFact(factName: string): number;
228
228
  GetFilledUV(containerSize: C.Vector2, contentSize: C.Vector2): C.RectF;
229
- GetFixedEntityIdsFromEntityReference(puppetRef: C.gameEntityReference): void;
230
- GetFixedEntityIdsFromSpawnerEntityID(entityID: C.entEntityID, communityEntryNames: string[]): void;
229
+ GetFixedEntityIdsFromEntityReference(puppetRef: C.gameEntityReference): C.entEntityID[];
230
+ GetFixedEntityIdsFromSpawnerEntityID(entityID: C.entEntityID, communityEntryNames: string[]): C.entEntityID[];
231
231
  GetGameInstance(): C.ScriptGameInstance;
232
232
  GetGameObjectFromEntityReference(reference: C.gameEntityReference): [boolean, M.WeakHandle<C.gameObject>];
233
- GetGameObjectsFromSpawnerEntityID(entityID: C.entEntityID, communityEntryNames: string[]): void;
233
+ GetGameObjectsFromSpawnerEntityID(entityID: C.entEntityID, communityEntryNames: string[]): M.Handle<C.gameObject>[];
234
234
  GetIgnoredVisionBlockerTypes(objID: C.gameStatsObjectID): C.senseVisionBlockerTypeFlags;
235
235
  GetImmortality(gameObject: M.Handle<C.gameObject>): [boolean, E.gameGodModeType];
236
236
  GetInvalidDelayID(): C.gameDelayID;
@@ -796,8 +796,8 @@ export interface MpFuncs {
796
796
  StrReplaceAll(str: M.ScriptRef<string>, match: M.ScriptRef<string>, with1: M.ScriptRef<string>): string;
797
797
  StrRight(str: M.ScriptRef<string>, length: number): string;
798
798
  StrSplit(str: M.ScriptRef<string>, divider: M.ScriptRef<string>, includeEmpty?: boolean): string[];
799
- StrSplitFirst(str: M.ScriptRef<string>, divider: M.ScriptRef<string>): [boolean, string];
800
- StrSplitLast(str: M.ScriptRef<string>, divider: M.ScriptRef<string>): [boolean, string];
799
+ StrSplitFirst(str: M.ScriptRef<string>, divider: M.ScriptRef<string>): [boolean, string, string];
800
+ StrSplitLast(str: M.ScriptRef<string>, divider: M.ScriptRef<string>): [boolean, string, string];
801
801
  StrUpper(str: M.ScriptRef<string>): string;
802
802
  StringToBool(s: M.ScriptRef<string>): boolean;
803
803
  StringToFloat(value: M.ScriptRef<string>, defValue?: number): number;
@@ -123,7 +123,7 @@ declare module '../mp.d.ts' {
123
123
  /**
124
124
  * Returns time in ms since game start.
125
125
  */
126
- getGameTimer(): number;
126
+ getTimer(): number;
127
127
 
128
128
  getLauncherSettingsJSON(): string;
129
129
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cybermp-community/client-types",
3
- "version": "2.5.0",
3
+ "version": "2.5.2",
4
4
  "description": "TypeScript type definitions for the CyberMP client-side environment.",
5
5
  "license": "CC BY-SA 4.0",
6
6
  "author": {