unity-types 6000.3.1 → 6000.3.3

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.
@@ -2243,8 +2243,8 @@ declare namespace CS {
2243
2243
  public static readonly MaxAxes: number;
2244
2244
  public static readonly MaxButtons: number;
2245
2245
  public static kFormat: UnityEngine.InputSystem.Utilities.FourCC;
2246
- public buttons: UnityEngine.InputSystem.Android.LowLevel.AndroidGameControllerState.<buttons>e__FixedBuffer;
2247
- public axis: UnityEngine.InputSystem.Android.LowLevel.AndroidGameControllerState.<axis>e__FixedBuffer;
2246
+ public buttons: any; // C# fixed buffer
2247
+ public axis: any; // C# fixed buffer
2248
2248
  public get format(): UnityEngine.InputSystem.Utilities.FourCC;
2249
2249
  public WithButton($code: UnityEngine.InputSystem.Android.LowLevel.AndroidKeyCode, $value?: boolean): UnityEngine.InputSystem.Android.LowLevel.AndroidGameControllerState;
2250
2250
  public WithAxis($axis: UnityEngine.InputSystem.Android.LowLevel.AndroidAxis, $value: number): UnityEngine.InputSystem.Android.LowLevel.AndroidGameControllerState;
@@ -3799,7 +3799,7 @@ declare namespace CS {
3799
3799
  class QueryKeyboardLayoutCommand implements UnityEngine.InputSystem.LowLevel.IInputDeviceCommandInfo {
3800
3800
  protected [__keep_incompatibility]: never;
3801
3801
  public baseCommand: UnityEngine.InputSystem.LowLevel.InputDeviceCommand;
3802
- public nameBuffer: UnityEngine.InputSystem.LowLevel.QueryKeyboardLayoutCommand.<nameBuffer>e__FixedBuffer;
3802
+ public nameBuffer: any; // C# fixed buffer
3803
3803
  public static get Type(): UnityEngine.InputSystem.Utilities.FourCC;
3804
3804
  public get typeStatic(): UnityEngine.InputSystem.Utilities.FourCC;
3805
3805
  public ReadLayoutName(): string;
@@ -3815,7 +3815,7 @@ declare namespace CS {
3815
3815
  protected [__keep_incompatibility]: never;
3816
3816
  public baseCommand: UnityEngine.InputSystem.LowLevel.InputDeviceCommand;
3817
3817
  public scanOrKeyCode: number;
3818
- public nameBuffer: UnityEngine.InputSystem.LowLevel.QueryKeyNameCommand.<nameBuffer>e__FixedBuffer;
3818
+ public nameBuffer: any; // C# fixed buffer
3819
3819
  public static get Type(): UnityEngine.InputSystem.Utilities.FourCC;
3820
3820
  public get typeStatic(): UnityEngine.InputSystem.Utilities.FourCC;
3821
3821
  public ReadKeyName(): string;
@@ -3935,7 +3935,7 @@ declare namespace CS {
3935
3935
 
3936
3936
  class KeyboardState implements UnityEngine.InputSystem.LowLevel.IInputStateTypeInfo {
3937
3937
  protected [__keep_incompatibility]: never;
3938
- public keys: UnityEngine.InputSystem.LowLevel.KeyboardState.<keys>e__FixedBuffer;
3938
+ public keys: any; // C# fixed buffer
3939
3939
  public static get Format(): UnityEngine.InputSystem.Utilities.FourCC;
3940
3940
  public get format(): UnityEngine.InputSystem.Utilities.FourCC;
3941
3941
  constructor(...pressedKeys: UnityEngine.InputSystem.Key[]);
package/index.d.ts CHANGED
@@ -21,3 +21,29 @@
21
21
  /// <reference path="UnityEngine.UnityWebRequestModule.d.ts" />
22
22
  /// <reference path="Unity.InputSystem.d.ts" />
23
23
  /// <reference path="OneJS.d.ts" />
24
+
25
+ // =============================================================================
26
+ // CS as a runtime value
27
+ // At runtime, CS is a Proxy object created by QuickJSBootstrap.js that provides
28
+ // access to all C# types. This declaration makes it usable as both a namespace
29
+ // (for type annotations) and a value (for runtime usage like CS.UnityEngine.GameObject.Find(...)).
30
+ // =============================================================================
31
+
32
+ declare const CS: typeof CS;
33
+
34
+ // =============================================================================
35
+ // ES6 Module Declarations
36
+ // Allows ES6-style imports: import { GameObject } from "UnityEngine"
37
+ // =============================================================================
38
+
39
+ declare module "UnityEngine" {
40
+ export = CS.UnityEngine;
41
+ }
42
+
43
+ declare module "UnityEngine/UIElements" {
44
+ export = CS.UnityEngine.UIElements;
45
+ }
46
+
47
+ declare module "System" {
48
+ export = CS.System;
49
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unity-types",
3
- "version": "6000.3.1",
3
+ "version": "6000.3.3",
4
4
  "description": "TypeScript definitions for Unity 6000.3",
5
5
  "types": "index.d.ts",
6
6
  "repository": {