@plugify-plugins/s2sdk-types 2.5.1 → 2.7.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.
- package/index.d.ts +206 -12
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -10311,7 +10311,7 @@ declare module ":plugify-plugin-s2sdk" {
|
|
|
10311
10311
|
*
|
|
10312
10312
|
* @param entity Pointer to the instance of the class where the value is to be set.
|
|
10313
10313
|
* @param offset The offset of the schema to use.
|
|
10314
|
-
* @param size Number of bytes to
|
|
10314
|
+
* @param size Number of bytes to read (valid values are 1, 2, 4 or 8).
|
|
10315
10315
|
*/
|
|
10316
10316
|
export function GetEntData2(entity: number, offset: number, size: number): number;
|
|
10317
10317
|
|
|
@@ -10336,7 +10336,7 @@ declare module ":plugify-plugin-s2sdk" {
|
|
|
10336
10336
|
*
|
|
10337
10337
|
* @param entity Pointer to the instance of the class where the value is to be set.
|
|
10338
10338
|
* @param offset The offset of the schema to use.
|
|
10339
|
-
* @param size Number of bytes to
|
|
10339
|
+
* @param size Number of bytes to read (valid values are 1, 2, 4 or 8).
|
|
10340
10340
|
*/
|
|
10341
10341
|
export function GetEntDataFloat2(entity: number, offset: number, size: number): number;
|
|
10342
10342
|
|
|
@@ -10400,20 +10400,45 @@ declare module ":plugify-plugin-s2sdk" {
|
|
|
10400
10400
|
*/
|
|
10401
10401
|
export function SetEntDataString2(entity: number, offset: number, value: string, changeState: boolean, chainOffset: number): void;
|
|
10402
10402
|
|
|
10403
|
+
/**
|
|
10404
|
+
* @description Peeks into an entity's object schema and retrieves the string value at the given offset.
|
|
10405
|
+
*
|
|
10406
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetEntDataCString2|Docs}
|
|
10407
|
+
*
|
|
10408
|
+
* @param entity Pointer to the instance of the class where the value is to be set.
|
|
10409
|
+
* @param offset The offset of the schema to use.
|
|
10410
|
+
* @param size Number of bytes to read.
|
|
10411
|
+
*/
|
|
10412
|
+
export function GetEntDataCString2(entity: number, offset: number, size: number): string;
|
|
10413
|
+
|
|
10414
|
+
/**
|
|
10415
|
+
* @description Peeks into an entity's object data and sets the string at the given offset.
|
|
10416
|
+
*
|
|
10417
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetEntDataCString2|Docs}
|
|
10418
|
+
*
|
|
10419
|
+
* @param entity Pointer to the instance of the class where the value is to be set.
|
|
10420
|
+
* @param offset The offset of the schema to use.
|
|
10421
|
+
* @param value The string value to set.
|
|
10422
|
+
* @param size Number of bytes to write.
|
|
10423
|
+
* @param changeState If true, change will be sent over the network.
|
|
10424
|
+
* @param chainOffset The offset of the chain entity in the class (-2 for non-entity classes).
|
|
10425
|
+
*/
|
|
10426
|
+
export function SetEntDataCString2(entity: number, offset: number, value: string, size: number, changeState: boolean, chainOffset: number): void;
|
|
10427
|
+
|
|
10403
10428
|
/**
|
|
10404
10429
|
* @description Peeks into an entity's object schema and retrieves the vector value at the given offset.
|
|
10405
10430
|
*
|
|
10406
|
-
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-
|
|
10431
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetEntDataVector3D2|Docs}
|
|
10407
10432
|
*
|
|
10408
10433
|
* @param entity Pointer to the instance of the class where the value is to be set.
|
|
10409
10434
|
* @param offset The offset of the schema to use.
|
|
10410
10435
|
*/
|
|
10411
|
-
export function
|
|
10436
|
+
export function GetEntDataVector3D2(entity: number, offset: number): vec3;
|
|
10412
10437
|
|
|
10413
10438
|
/**
|
|
10414
10439
|
* @description Peeks into an entity's object data and sets the vector at the given offset.
|
|
10415
10440
|
*
|
|
10416
|
-
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-
|
|
10441
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetEntDataVector3D2|Docs}
|
|
10417
10442
|
*
|
|
10418
10443
|
* @param entity Pointer to the instance of the class where the value is to be set.
|
|
10419
10444
|
* @param offset The offset of the schema to use.
|
|
@@ -10421,7 +10446,53 @@ declare module ":plugify-plugin-s2sdk" {
|
|
|
10421
10446
|
* @param changeState If true, change will be sent over the network.
|
|
10422
10447
|
* @param chainOffset The offset of the chain entity in the class (-2 for non-entity classes).
|
|
10423
10448
|
*/
|
|
10424
|
-
export function
|
|
10449
|
+
export function SetEntDataVector3D2(entity: number, offset: number, value: vec3, changeState: boolean, chainOffset: number): void;
|
|
10450
|
+
|
|
10451
|
+
/**
|
|
10452
|
+
* @description Peeks into an entity's object schema and retrieves the vector value at the given offset.
|
|
10453
|
+
*
|
|
10454
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetEntDataVector4D2|Docs}
|
|
10455
|
+
*
|
|
10456
|
+
* @param entity Pointer to the instance of the class where the value is to be set.
|
|
10457
|
+
* @param offset The offset of the schema to use.
|
|
10458
|
+
*/
|
|
10459
|
+
export function GetEntDataVector4D2(entity: number, offset: number): vec4;
|
|
10460
|
+
|
|
10461
|
+
/**
|
|
10462
|
+
* @description Peeks into an entity's object data and sets the vector at the given offset.
|
|
10463
|
+
*
|
|
10464
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetEntDataVector4D2|Docs}
|
|
10465
|
+
*
|
|
10466
|
+
* @param entity Pointer to the instance of the class where the value is to be set.
|
|
10467
|
+
* @param offset The offset of the schema to use.
|
|
10468
|
+
* @param value The vector value to set.
|
|
10469
|
+
* @param changeState If true, change will be sent over the network.
|
|
10470
|
+
* @param chainOffset The offset of the chain entity in the class (-2 for non-entity classes).
|
|
10471
|
+
*/
|
|
10472
|
+
export function SetEntDataVector4D2(entity: number, offset: number, value: vec4, changeState: boolean, chainOffset: number): void;
|
|
10473
|
+
|
|
10474
|
+
/**
|
|
10475
|
+
* @description Peeks into an entity's object schema and retrieves the vector value at the given offset.
|
|
10476
|
+
*
|
|
10477
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetEntDataVector2D2|Docs}
|
|
10478
|
+
*
|
|
10479
|
+
* @param entity Pointer to the instance of the class where the value is to be set.
|
|
10480
|
+
* @param offset The offset of the schema to use.
|
|
10481
|
+
*/
|
|
10482
|
+
export function GetEntDataVector2D2(entity: number, offset: number): vec2;
|
|
10483
|
+
|
|
10484
|
+
/**
|
|
10485
|
+
* @description Peeks into an entity's object data and sets the vector at the given offset.
|
|
10486
|
+
*
|
|
10487
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetEntDataVector2D2|Docs}
|
|
10488
|
+
*
|
|
10489
|
+
* @param entity Pointer to the instance of the class where the value is to be set.
|
|
10490
|
+
* @param offset The offset of the schema to use.
|
|
10491
|
+
* @param value The vector value to set.
|
|
10492
|
+
* @param changeState If true, change will be sent over the network.
|
|
10493
|
+
* @param chainOffset The offset of the chain entity in the class (-2 for non-entity classes).
|
|
10494
|
+
*/
|
|
10495
|
+
export function SetEntDataVector2D2(entity: number, offset: number, value: vec2, changeState: boolean, chainOffset: number): void;
|
|
10425
10496
|
|
|
10426
10497
|
/**
|
|
10427
10498
|
* @description Peeks into an entity's object data and retrieves the entity handle at the given offset.
|
|
@@ -10464,7 +10535,7 @@ declare module ":plugify-plugin-s2sdk" {
|
|
|
10464
10535
|
*
|
|
10465
10536
|
* @param entityHandle The handle of the entity from which the value is to be retrieved.
|
|
10466
10537
|
* @param offset The offset of the schema to use.
|
|
10467
|
-
* @param size Number of bytes to
|
|
10538
|
+
* @param size Number of bytes to read (valid values are 1, 2, 4 or 8).
|
|
10468
10539
|
*/
|
|
10469
10540
|
export function GetEntData(entityHandle: number, offset: number, size: number): number;
|
|
10470
10541
|
|
|
@@ -10489,7 +10560,7 @@ declare module ":plugify-plugin-s2sdk" {
|
|
|
10489
10560
|
*
|
|
10490
10561
|
* @param entityHandle The handle of the entity from which the value is to be retrieved.
|
|
10491
10562
|
* @param offset The offset of the schema to use.
|
|
10492
|
-
* @param size Number of bytes to
|
|
10563
|
+
* @param size Number of bytes to read (valid values are 1, 2, 4 or 8).
|
|
10493
10564
|
*/
|
|
10494
10565
|
export function GetEntDataFloat(entityHandle: number, offset: number, size: number): number;
|
|
10495
10566
|
|
|
@@ -10553,20 +10624,68 @@ declare module ":plugify-plugin-s2sdk" {
|
|
|
10553
10624
|
*/
|
|
10554
10625
|
export function SetEntDataString(entityHandle: number, offset: number, value: string, changeState: boolean, chainOffset: number): void;
|
|
10555
10626
|
|
|
10627
|
+
/**
|
|
10628
|
+
* @description Peeks into an entity's object schema and retrieves the string value at the given offset.
|
|
10629
|
+
*
|
|
10630
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetEntDataCString|Docs}
|
|
10631
|
+
*
|
|
10632
|
+
* @param entityHandle The handle of the entity from which the value is to be retrieved.
|
|
10633
|
+
* @param offset The offset of the schema to use.
|
|
10634
|
+
* @param size Number of bytes to read.
|
|
10635
|
+
*/
|
|
10636
|
+
export function GetEntDataCString(entityHandle: number, offset: number, size: number): string;
|
|
10637
|
+
|
|
10638
|
+
/**
|
|
10639
|
+
* @description Peeks into an entity's object data and sets the string at the given offset.
|
|
10640
|
+
*
|
|
10641
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetEntDataCString|Docs}
|
|
10642
|
+
*
|
|
10643
|
+
* @param entityHandle The handle of the entity from which the value is to be retrieved.
|
|
10644
|
+
* @param offset The offset of the schema to use.
|
|
10645
|
+
* @param value The string value to set.
|
|
10646
|
+
* @param size Number of bytes to write.
|
|
10647
|
+
* @param changeState If true, change will be sent over the network.
|
|
10648
|
+
* @param chainOffset The offset of the chain entity in the class (-2 for non-entity classes).
|
|
10649
|
+
*/
|
|
10650
|
+
export function SetEntDataCString(entityHandle: number, offset: number, value: string, size: number, changeState: boolean, chainOffset: number): void;
|
|
10651
|
+
|
|
10652
|
+
/**
|
|
10653
|
+
* @description Peeks into an entity's object schema and retrieves the vector value at the given offset.
|
|
10654
|
+
*
|
|
10655
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetEntDataVector3D|Docs}
|
|
10656
|
+
*
|
|
10657
|
+
* @param entityHandle The handle of the entity from which the value is to be retrieved.
|
|
10658
|
+
* @param offset The offset of the schema to use.
|
|
10659
|
+
*/
|
|
10660
|
+
export function GetEntDataVector3D(entityHandle: number, offset: number): vec3;
|
|
10661
|
+
|
|
10662
|
+
/**
|
|
10663
|
+
* @description Peeks into an entity's object data and sets the vector at the given offset.
|
|
10664
|
+
*
|
|
10665
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetEntDataVector3D|Docs}
|
|
10666
|
+
*
|
|
10667
|
+
* @param entityHandle The handle of the entity from which the value is to be retrieved.
|
|
10668
|
+
* @param offset The offset of the schema to use.
|
|
10669
|
+
* @param value The vector value to set.
|
|
10670
|
+
* @param changeState If true, change will be sent over the network.
|
|
10671
|
+
* @param chainOffset The offset of the chain entity in the class (-2 for non-entity classes).
|
|
10672
|
+
*/
|
|
10673
|
+
export function SetEntDataVector3D(entityHandle: number, offset: number, value: vec3, changeState: boolean, chainOffset: number): void;
|
|
10674
|
+
|
|
10556
10675
|
/**
|
|
10557
10676
|
* @description Peeks into an entity's object schema and retrieves the vector value at the given offset.
|
|
10558
10677
|
*
|
|
10559
|
-
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-
|
|
10678
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetEntDataVector4D|Docs}
|
|
10560
10679
|
*
|
|
10561
10680
|
* @param entityHandle The handle of the entity from which the value is to be retrieved.
|
|
10562
10681
|
* @param offset The offset of the schema to use.
|
|
10563
10682
|
*/
|
|
10564
|
-
export function
|
|
10683
|
+
export function GetEntDataVector4D(entityHandle: number, offset: number): vec4;
|
|
10565
10684
|
|
|
10566
10685
|
/**
|
|
10567
10686
|
* @description Peeks into an entity's object data and sets the vector at the given offset.
|
|
10568
10687
|
*
|
|
10569
|
-
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-
|
|
10688
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetEntDataVector4D|Docs}
|
|
10570
10689
|
*
|
|
10571
10690
|
* @param entityHandle The handle of the entity from which the value is to be retrieved.
|
|
10572
10691
|
* @param offset The offset of the schema to use.
|
|
@@ -10574,7 +10693,30 @@ declare module ":plugify-plugin-s2sdk" {
|
|
|
10574
10693
|
* @param changeState If true, change will be sent over the network.
|
|
10575
10694
|
* @param chainOffset The offset of the chain entity in the class (-2 for non-entity classes).
|
|
10576
10695
|
*/
|
|
10577
|
-
export function
|
|
10696
|
+
export function SetEntDataVector4D(entityHandle: number, offset: number, value: vec4, changeState: boolean, chainOffset: number): void;
|
|
10697
|
+
|
|
10698
|
+
/**
|
|
10699
|
+
* @description Peeks into an entity's object schema and retrieves the vector value at the given offset.
|
|
10700
|
+
*
|
|
10701
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetEntDataVector2D|Docs}
|
|
10702
|
+
*
|
|
10703
|
+
* @param entityHandle The handle of the entity from which the value is to be retrieved.
|
|
10704
|
+
* @param offset The offset of the schema to use.
|
|
10705
|
+
*/
|
|
10706
|
+
export function GetEntDataVector2D(entityHandle: number, offset: number): vec2;
|
|
10707
|
+
|
|
10708
|
+
/**
|
|
10709
|
+
* @description Peeks into an entity's object data and sets the vector at the given offset.
|
|
10710
|
+
*
|
|
10711
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetEntDataVector2D|Docs}
|
|
10712
|
+
*
|
|
10713
|
+
* @param entityHandle The handle of the entity from which the value is to be retrieved.
|
|
10714
|
+
* @param offset The offset of the schema to use.
|
|
10715
|
+
* @param value The vector value to set.
|
|
10716
|
+
* @param changeState If true, change will be sent over the network.
|
|
10717
|
+
* @param chainOffset The offset of the chain entity in the class (-2 for non-entity classes).
|
|
10718
|
+
*/
|
|
10719
|
+
export function SetEntDataVector2D(entityHandle: number, offset: number, value: vec2, changeState: boolean, chainOffset: number): void;
|
|
10578
10720
|
|
|
10579
10721
|
/**
|
|
10580
10722
|
* @description Peeks into an entity's object data and retrieves the entity handle at the given offset.
|
|
@@ -10829,6 +10971,32 @@ declare module ":plugify-plugin-s2sdk" {
|
|
|
10829
10971
|
*/
|
|
10830
10972
|
export function SetEntSchemaEnt2(entity: number, className: string, memberName: string, value: number, changeState: boolean, element: number): void;
|
|
10831
10973
|
|
|
10974
|
+
/**
|
|
10975
|
+
* @description Pushes an entity handle into an entity's schema collection.
|
|
10976
|
+
*
|
|
10977
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-PushEntSchemaEnt2|Docs}
|
|
10978
|
+
*
|
|
10979
|
+
* @param entity Pointer to the instance of the class where the value is to be pushed.
|
|
10980
|
+
* @param className The name of the class.
|
|
10981
|
+
* @param memberName The name of the schema member.
|
|
10982
|
+
* @param value The entity handle to push.
|
|
10983
|
+
* @param changeState If true, change will be sent over the network.
|
|
10984
|
+
*/
|
|
10985
|
+
export function PushEntSchemaEnt2(entity: number, className: string, memberName: string, value: number, changeState: boolean): void;
|
|
10986
|
+
|
|
10987
|
+
/**
|
|
10988
|
+
* @description Erases an entity handle from an entity's schema collection by index.
|
|
10989
|
+
*
|
|
10990
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-EraseEntSchemaEnt2|Docs}
|
|
10991
|
+
*
|
|
10992
|
+
* @param entity Pointer to the instance of the class where the value is to be erased.
|
|
10993
|
+
* @param className The name of the class.
|
|
10994
|
+
* @param memberName The name of the schema member.
|
|
10995
|
+
* @param element Element index to erase (starting from 0).
|
|
10996
|
+
* @param changeState If true, change will be sent over the network.
|
|
10997
|
+
*/
|
|
10998
|
+
export function EraseEntSchemaEnt2(entity: number, className: string, memberName: string, element: number, changeState: boolean): void;
|
|
10999
|
+
|
|
10832
11000
|
/**
|
|
10833
11001
|
* @description Updates the networked state of a schema field for a given entity pointer.
|
|
10834
11002
|
*
|
|
@@ -11059,6 +11227,32 @@ declare module ":plugify-plugin-s2sdk" {
|
|
|
11059
11227
|
*/
|
|
11060
11228
|
export function SetEntSchemaEnt(entityHandle: number, className: string, memberName: string, value: number, changeState: boolean, element: number): void;
|
|
11061
11229
|
|
|
11230
|
+
/**
|
|
11231
|
+
* @description Pushes an entity handle into an entity's schema collection.
|
|
11232
|
+
*
|
|
11233
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-PushEntSchemaEnt|Docs}
|
|
11234
|
+
*
|
|
11235
|
+
* @param entityHandle The handle of the entity whose schema collection is modified.
|
|
11236
|
+
* @param className The name of the class.
|
|
11237
|
+
* @param memberName The name of the schema member.
|
|
11238
|
+
* @param value The entity handle to push.
|
|
11239
|
+
* @param changeState If true, change will be sent over the network.
|
|
11240
|
+
*/
|
|
11241
|
+
export function PushEntSchemaEnt(entityHandle: number, className: string, memberName: string, value: number, changeState: boolean): void;
|
|
11242
|
+
|
|
11243
|
+
/**
|
|
11244
|
+
* @description Erases an entity handle from an entity's schema collection by index.
|
|
11245
|
+
*
|
|
11246
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-EraseEntSchemaEnt|Docs}
|
|
11247
|
+
*
|
|
11248
|
+
* @param entityHandle The handle of the entity whose schema collection is modified.
|
|
11249
|
+
* @param className The name of the class.
|
|
11250
|
+
* @param memberName The name of the schema member.
|
|
11251
|
+
* @param element Element index to erase (starting from 0).
|
|
11252
|
+
* @param changeState If true, change will be sent over the network.
|
|
11253
|
+
*/
|
|
11254
|
+
export function EraseEntSchemaEnt(entityHandle: number, className: string, memberName: string, element: number, changeState: boolean): void;
|
|
11255
|
+
|
|
11062
11256
|
/**
|
|
11063
11257
|
* @description Updates the networked state of a schema field for a given entity handle.
|
|
11064
11258
|
*
|