@plugify-plugins/s2sdk-types 2.6.0 → 2.7.1

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 +154 -12
  2. 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 write (valid values are 1, 2, 4 or 8).
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 write (valid values are 1, 2, 4 or 8).
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,91 @@ 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
+
10428
+ /**
10429
+ * @description Peeks into an entity's object schema and retrieves the vector value at the given offset.
10430
+ *
10431
+ * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetEntDataVector3D2|Docs}
10432
+ *
10433
+ * @param entity Pointer to the instance of the class where the value is to be set.
10434
+ * @param offset The offset of the schema to use.
10435
+ */
10436
+ export function GetEntDataVector3D2(entity: number, offset: number): vec3;
10437
+
10438
+ /**
10439
+ * @description Peeks into an entity's object data and sets the vector at the given offset.
10440
+ *
10441
+ * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetEntDataVector3D2|Docs}
10442
+ *
10443
+ * @param entity Pointer to the instance of the class where the value is to be set.
10444
+ * @param offset The offset of the schema to use.
10445
+ * @param value The vector value to set.
10446
+ * @param changeState If true, change will be sent over the network.
10447
+ * @param chainOffset The offset of the chain entity in the class (-2 for non-entity classes).
10448
+ */
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
+
10403
10474
  /**
10404
10475
  * @description Peeks into an entity's object schema and retrieves the vector value at the given offset.
10405
10476
  *
10406
- * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetEntDataVector2|Docs}
10477
+ * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetEntDataVector2D2|Docs}
10407
10478
  *
10408
10479
  * @param entity Pointer to the instance of the class where the value is to be set.
10409
10480
  * @param offset The offset of the schema to use.
10410
10481
  */
10411
- export function GetEntDataVector2(entity: number, offset: number): vec3;
10482
+ export function GetEntDataVector2D2(entity: number, offset: number): vec2;
10412
10483
 
10413
10484
  /**
10414
10485
  * @description Peeks into an entity's object data and sets the vector at the given offset.
10415
10486
  *
10416
- * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetEntDataVector2|Docs}
10487
+ * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetEntDataVector2D2|Docs}
10417
10488
  *
10418
10489
  * @param entity Pointer to the instance of the class where the value is to be set.
10419
10490
  * @param offset The offset of the schema to use.
@@ -10421,7 +10492,7 @@ declare module ":plugify-plugin-s2sdk" {
10421
10492
  * @param changeState If true, change will be sent over the network.
10422
10493
  * @param chainOffset The offset of the chain entity in the class (-2 for non-entity classes).
10423
10494
  */
10424
- export function SetEntDataVector2(entity: number, offset: number, value: vec3, changeState: boolean, chainOffset: number): void;
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 write (valid values are 1, 2, 4 or 8).
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 write (valid values are 1, 2, 4 or 8).
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,91 @@ 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
+
10675
+ /**
10676
+ * @description Peeks into an entity's object schema and retrieves the vector value at the given offset.
10677
+ *
10678
+ * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetEntDataVector4D|Docs}
10679
+ *
10680
+ * @param entityHandle The handle of the entity from which the value is to be retrieved.
10681
+ * @param offset The offset of the schema to use.
10682
+ */
10683
+ export function GetEntDataVector4D(entityHandle: number, offset: number): vec4;
10684
+
10685
+ /**
10686
+ * @description Peeks into an entity's object data and sets the vector at the given offset.
10687
+ *
10688
+ * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetEntDataVector4D|Docs}
10689
+ *
10690
+ * @param entityHandle The handle of the entity from which the value is to be retrieved.
10691
+ * @param offset The offset of the schema to use.
10692
+ * @param value The vector value to set.
10693
+ * @param changeState If true, change will be sent over the network.
10694
+ * @param chainOffset The offset of the chain entity in the class (-2 for non-entity classes).
10695
+ */
10696
+ export function SetEntDataVector4D(entityHandle: number, offset: number, value: vec4, changeState: boolean, chainOffset: number): void;
10697
+
10556
10698
  /**
10557
10699
  * @description Peeks into an entity's object schema and retrieves the vector value at the given offset.
10558
10700
  *
10559
- * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetEntDataVector|Docs}
10701
+ * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetEntDataVector2D|Docs}
10560
10702
  *
10561
10703
  * @param entityHandle The handle of the entity from which the value is to be retrieved.
10562
10704
  * @param offset The offset of the schema to use.
10563
10705
  */
10564
- export function GetEntDataVector(entityHandle: number, offset: number): vec3;
10706
+ export function GetEntDataVector2D(entityHandle: number, offset: number): vec2;
10565
10707
 
10566
10708
  /**
10567
10709
  * @description Peeks into an entity's object data and sets the vector at the given offset.
10568
10710
  *
10569
- * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetEntDataVector|Docs}
10711
+ * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetEntDataVector2D|Docs}
10570
10712
  *
10571
10713
  * @param entityHandle The handle of the entity from which the value is to be retrieved.
10572
10714
  * @param offset The offset of the schema to use.
@@ -10574,7 +10716,7 @@ declare module ":plugify-plugin-s2sdk" {
10574
10716
  * @param changeState If true, change will be sent over the network.
10575
10717
  * @param chainOffset The offset of the chain entity in the class (-2 for non-entity classes).
10576
10718
  */
10577
- export function SetEntDataVector(entityHandle: number, offset: number, value: vec3, changeState: boolean, chainOffset: number): void;
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plugify-plugins/s2sdk-types",
3
- "version": "2.6.0",
3
+ "version": "2.7.1",
4
4
  "description": "generated typescript types to write plugins on plugify",
5
5
  "types": "index.d.ts",
6
6
  "scripts": {},