unity-types 6000.3.0 → 6000.3.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/OneJS.d.ts ADDED
@@ -0,0 +1,981 @@
1
+ declare namespace CS {
2
+ const __keep_incompatibility: symbol;
3
+
4
+ class QuickJSNative {
5
+ protected [__keep_incompatibility]: never;
6
+ public static DebugFastPath: boolean;
7
+ public static get ZeroAllocBindingCount(): number;
8
+ public static RegisterObject($obj: any): number;
9
+ public static GetHandleForObject($obj: any): number;
10
+ public static GetHandleCount(): number;
11
+ public static ClearAllHandles(): void;
12
+ public static GetPeakHandleCount(): number;
13
+ public static ResetHandleMonitoring(): void;
14
+ public static RegisterStructType<T>(): void;
15
+ public static RegisterStructType($type: System.Type): void;
16
+ public static RegisterStructType<T>($serializer: System.Func$2<T, string>, $deserializer: System.Func$2<System.Collections.Generic.Dictionary$2<string, any>, T>): void;
17
+ public static IsSerializableStruct($type: System.Type): boolean;
18
+ public static SerializeStruct($value: any): string;
19
+ public static DeserializeStruct($json: string, $targetType: System.Type): any;
20
+ public static DeserializeFromDict($dict: System.Collections.Generic.Dictionary$2<string, any>, $targetType: System.Type): any;
21
+ public static RegisterTask($task: System.Threading.Tasks.Task): number;
22
+ public static IsTaskType($type: System.Type): boolean;
23
+ public static ProcessCompletedTasks($ctx: QuickJSContext): number;
24
+ public static ClearPendingTasks(): void;
25
+ public static GetPendingTaskCount(): number;
26
+ public static GetPeakTaskQueueSize(): number;
27
+ public static ResetTaskQueueMonitoring(): void;
28
+ public static RegisterZeroAllocBinding($handler: QuickJSNative.ZeroAllocHandler): number;
29
+ public static UnregisterZeroAllocBinding($bindingId: number): boolean;
30
+ public static RegisterZeroAllocMethodBinding($typeName: string, $methodName: string, $argCount: number): number;
31
+ public static Bind($action: System.Action): number;
32
+ public static Bind<TResult>($func: System.Func$1<TResult>): number;
33
+ public static Bind<T0>($action: System.Action$1<T0>): number;
34
+ public static Bind<T0, TResult>($func: System.Func$2<T0, TResult>): number;
35
+ public static Bind<T0, T1>($action: System.Action$2<T0, T1>): number;
36
+ public static Bind<T0, T1, TResult>($func: System.Func$3<T0, T1, TResult>): number;
37
+ public static Bind<T0, T1, T2>($action: System.Action$3<T0, T1, T2>): number;
38
+ public static Bind<T0, T1, T2, TResult>($func: System.Func$4<T0, T1, T2, TResult>): number;
39
+ public static Bind<T0, T1, T2, T3>($action: System.Action$4<T0, T1, T2, T3>): number;
40
+ public static Bind<T0, T1, T2, T3, TResult>($func: System.Func$5<T0, T1, T2, T3, TResult>): number;
41
+ public static Bind<T0, T1, T2, T3, T4>($action: System.Action$5<T0, T1, T2, T3, T4>): number;
42
+ public static Bind<T0, T1, T2, T3, T4, TResult>($func: System.Func$6<T0, T1, T2, T3, T4, TResult>): number;
43
+ public static Bind<T0, T1, T2, T3, T4, T5>($action: System.Action$6<T0, T1, T2, T3, T4, T5>): number;
44
+ public static Bind<T0, T1, T2, T3, T4, T5, TResult>($func: System.Func$7<T0, T1, T2, T3, T4, T5, TResult>): number;
45
+ }
46
+ namespace QuickJSNative {
47
+ interface CsLogCallback {
48
+ ($msg: number): void;
49
+ Invoke?: ($msg: number) => void;
50
+ }
51
+ var CsLogCallback: { new (func: ($msg: number) => void): CsLogCallback; };
52
+
53
+ interface CsInvokeCallback {
54
+ ($ctx: number, $req: any, $res: any): void;
55
+ Invoke?: ($ctx: number, $req: any, $res: any) => void;
56
+ }
57
+ var CsInvokeCallback: { new (func: ($ctx: number, $req: any, $res: any) => void): CsInvokeCallback; };
58
+
59
+ interface CsReleaseHandleCallback {
60
+ ($handle: number): void;
61
+ Invoke?: ($handle: number) => void;
62
+ }
63
+ var CsReleaseHandleCallback: { new (func: ($handle: number) => void): CsReleaseHandleCallback; };
64
+
65
+ interface CsZeroAllocCallback {
66
+ ($bindingId: number, $args: any, $argCount: number, $outResult: any): void;
67
+ Invoke?: ($bindingId: number, $args: any, $argCount: number, $outResult: any) => void;
68
+ }
69
+ var CsZeroAllocCallback: { new (func: ($bindingId: number, $args: any, $argCount: number, $outResult: any) => void): CsZeroAllocCallback; };
70
+
71
+ enum InteropType {
72
+ Null = 0,
73
+ Bool = 1,
74
+ Int32 = 2,
75
+ Double = 3,
76
+ String = 4,
77
+ ObjectHandle = 5,
78
+ Int64 = 6,
79
+ Float32 = 7,
80
+ Array = 8,
81
+ JsonObject = 9,
82
+ Vector3 = 10,
83
+ Vector4 = 11,
84
+ TaskHandle = 12
85
+ }
86
+
87
+ enum InteropInvokeCallKind {
88
+ Ctor = 0,
89
+ Method = 1,
90
+ GetProp = 2,
91
+ SetProp = 3,
92
+ GetField = 4,
93
+ SetField = 5,
94
+ TypeExists = 6,
95
+ IsEnumType = 7,
96
+ MakeGenericType = 8
97
+ }
98
+
99
+ class InteropValue {
100
+ protected [__keep_incompatibility]: never;
101
+ public type: QuickJSNative.InteropType;
102
+ public pad: number;
103
+ public i32: number;
104
+ public b: number;
105
+ public handle: number;
106
+ public i64: bigint;
107
+ public f32: number;
108
+ public f64: number;
109
+ public str: number;
110
+ public vecX: number;
111
+ public vecY: number;
112
+ public vecZ: number;
113
+ public vecW: number;
114
+ public typeHint: number;
115
+ }
116
+
117
+ class InteropInvokeRequest {
118
+ protected [__keep_incompatibility]: never;
119
+ public typeName: number;
120
+ public memberName: number;
121
+ public callKind: QuickJSNative.InteropInvokeCallKind;
122
+ public isStatic: number;
123
+ public targetHandle: number;
124
+ public argCount: number;
125
+ public args: number;
126
+ }
127
+
128
+ class InteropInvokeResult {
129
+ protected [__keep_incompatibility]: never;
130
+ public returnValue: QuickJSNative.InteropValue;
131
+ public errorCode: number;
132
+ public errorMsg: number;
133
+ }
134
+
135
+ interface StructPacker<T> {
136
+ ($value: $Ref<T>, $result: any): void;
137
+ Invoke?: ($value: $Ref<T>, $result: any) => void;
138
+ }
139
+
140
+ interface StructUnpacker<T> {
141
+ ($source: any, $value: $Out<T>): void;
142
+ Invoke?: ($source: any, $value: $Out<T>) => void;
143
+ }
144
+
145
+ interface DictConverter<T> {
146
+ ($dict: System.Collections.Generic.Dictionary$2<string, any>): T;
147
+ Invoke?: ($dict: System.Collections.Generic.Dictionary$2<string, any>) => T;
148
+ }
149
+
150
+ class FastPath {
151
+ protected [__keep_incompatibility]: never;
152
+ public static get Count(): number;
153
+ public static get StructCount(): number;
154
+ public static Property<TTarget extends object, TValue>($name: string, $getter: System.Func$2<TTarget, TValue>, $setter?: System.Action$2<TTarget, TValue>): void;
155
+ public static StaticProperty<TOwner, TValue>($name: string, $getter: System.Func$1<TValue>, $setter?: System.Action$1<TValue>): void;
156
+ public static Method<TTarget extends object>($name: string, $method: System.Action$1<TTarget>): void;
157
+ public static Method<TTarget extends object, TResult>($name: string, $method: System.Func$2<TTarget, TResult>): void;
158
+ public static Method<TTarget extends object, TArg0, TResult>($name: string, $method: System.Func$3<TTarget, TArg0, TResult>): void;
159
+ public static Method<TTarget extends object, TArg0>($name: string, $method: System.Action$2<TTarget, TArg0>): void;
160
+ public static StaticMethod<TOwner, TResult>($name: string, $method: System.Func$1<TResult>): void;
161
+ public static StaticMethod<TOwner, TArg0, TResult>($name: string, $method: System.Func$2<TArg0, TResult>): void;
162
+ public static StaticMethod<TOwner, TArg0, TArg1, TResult>($name: string, $method: System.Func$3<TArg0, TArg1, TResult>): void;
163
+ public static StaticMethod<TOwner, TArg0, TArg1, TArg2, TResult>($name: string, $method: System.Func$4<TArg0, TArg1, TArg2, TResult>): void;
164
+ public static StaticMethod<TOwner, TArg0, TArg1, TArg2, TArg3, TResult>($name: string, $method: System.Func$5<TArg0, TArg1, TArg2, TArg3, TResult>): void;
165
+ public static StaticMethod<TOwner, TArg0, TArg1, TArg2, TArg3, TArg4, TResult>($name: string, $method: System.Func$6<TArg0, TArg1, TArg2, TArg3, TArg4, TResult>): void;
166
+ public static StaticMethod<TOwner, TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TResult>($name: string, $method: System.Func$7<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TResult>): void;
167
+ public static StaticMethodByTypeName<TArg0, TArg1, TResult>($typeName: string, $methodName: string, $method: System.Func$3<TArg0, TArg1, TResult>): void;
168
+ public static StaticMethodByTypeName<TArg0, TArg1, TArg2, TResult>($typeName: string, $methodName: string, $method: System.Func$4<TArg0, TArg1, TArg2, TResult>): void;
169
+ public static StaticMethodByTypeName<TArg0, TArg1, TArg2, TArg3, TResult>($typeName: string, $methodName: string, $method: System.Func$5<TArg0, TArg1, TArg2, TArg3, TResult>): void;
170
+ public static StaticMethodByTypeName<TArg0, TArg1, TArg2, TArg3, TArg4, TResult>($typeName: string, $methodName: string, $method: System.Func$6<TArg0, TArg1, TArg2, TArg3, TArg4, TResult>): void;
171
+ public static StaticMethodByTypeName<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TResult>($typeName: string, $methodName: string, $method: System.Func$7<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TResult>): void;
172
+ public static Struct<T>($pack: QuickJSNative.StructPacker$1<T>, $unpack?: QuickJSNative.StructUnpacker$1<T>, $fromDict?: QuickJSNative.DictConverter$1<T>): void;
173
+ public static BlittableStruct<T>(): void;
174
+ public static HasStructHandler<T>(): boolean;
175
+ public static HasStructHandler($type: System.Type): boolean;
176
+ public static Clear(): void;
177
+ }
178
+
179
+ interface ZeroAllocHandler {
180
+ ($args: any, $argCount: number, $result: any): void;
181
+ Invoke?: ($args: any, $argCount: number, $result: any) => void;
182
+ }
183
+ var ZeroAllocHandler: { new (func: ($args: any, $argCount: number, $result: any) => void): ZeroAllocHandler; };
184
+
185
+ }
186
+
187
+ class QuickJSContext implements System.IDisposable {
188
+ protected [__keep_incompatibility]: never;
189
+ public get NativePtr(): number;
190
+ constructor($bufferSize?: number);
191
+ public Eval($code: string, $filename?: string, $evalFlags?: number): string;
192
+ public RunGC(): void;
193
+ public ExecutePendingJobs(): number;
194
+ public MaybeRunGC($threshold?: number): void;
195
+ public Dispose(): void;
196
+ public InvokeCallback($handle: number, ...args: any[]): any;
197
+ public InvokeCallbackNoAlloc($handle: number): void;
198
+ public InvokeCallbackNoAlloc($handle: number, $arg0: number): void;
199
+ public InvokeCallbackNoAlloc($handle: number, $arg0: number, $arg1: number): void;
200
+ public InvokeCallbackNoAlloc($handle: number, $arg0: number, $arg1: number, $arg2: number): void;
201
+ public InvokeCallbackNoAlloc($handle: number, $arg0: number): void;
202
+ public InvokeCallbackNoAlloc($handle: number, $arg0: number, $arg1: number): void;
203
+ public InvokeCallbackNoAlloc($handle: number, $arg0: number): void;
204
+ public InvokeCallbackNoAlloc($handle: number, $arg0: boolean): void;
205
+ public InvokeCallbackNoAlloc($handle: number, $arg0: UnityEngine.Vector3): void;
206
+ public InvokeCallbackNoAlloc($handle: number, $arg0: UnityEngine.Quaternion): void;
207
+ public InvokeCallbackNoAlloc($handle: number, $arg0: UnityEngine.Color): void;
208
+ public InvokeCallbackNoAlloc($handle: number, $arg0: number, $arg1: UnityEngine.Vector3): void;
209
+ }
210
+
211
+ class QuickJSUIBridge implements System.IDisposable {
212
+ protected [__keep_incompatibility]: never;
213
+ public get Context(): QuickJSContext;
214
+ public get Root(): UnityEngine.UIElements.VisualElement;
215
+ public get WorkingDir(): string;
216
+ constructor($root: UnityEngine.UIElements.VisualElement, $workingDir?: string, $bufferSize?: number);
217
+ public LoadStyleSheet($path: string): boolean;
218
+ public CompileStyleSheet($ussContent: string, $name?: string): boolean;
219
+ public Dispose(): void;
220
+ public Eval($code: string, $filename?: string): string;
221
+ public CacheTickCallback(): void;
222
+ public Tick(): void;
223
+ }
224
+
225
+ class JSRunner extends UnityEngine.MonoBehaviour {
226
+ protected [__keep_incompatibility]: never;
227
+ public WorkingDir: string;
228
+ public EntryFile: string;
229
+ public get Bridge(): QuickJSUIBridge;
230
+ public get IsRunning(): boolean;
231
+ public get IsLiveReloadEnabled(): boolean;
232
+ public get ReloadCount(): number;
233
+ public get LastModifiedTime(): System.DateTime;
234
+ public get ProjectRoot(): string;
235
+ public get WorkingDirFullPath(): string;
236
+ public get EntryFileFullPath(): string;
237
+ public get TypingAssemblies(): System.Collections.Generic.IReadOnlyList$1<string>;
238
+ public get AutoGenerateTypings(): boolean;
239
+ public get TypingsOutputPath(): string;
240
+ public get TypingsFullPath(): string;
241
+ public get Cartridges(): System.Collections.Generic.IReadOnlyList$1<UICartridge>;
242
+ constructor();
243
+ public GetCartridgePath($cartridge: UICartridge): string;
244
+ public ForceReload(): void;
245
+ public PopulateDefaultFiles(): void;
246
+ }
247
+
248
+ class UICartridge extends UnityEngine.ScriptableObject {
249
+ protected [__keep_incompatibility]: never;
250
+ public get Slug(): string;
251
+ public get DisplayName(): string;
252
+ public get Description(): string;
253
+ public get Files(): System.Collections.Generic.IReadOnlyList$1<CartridgeFileEntry>;
254
+ public get Objects(): System.Collections.Generic.IReadOnlyList$1<CartridgeObjectEntry>;
255
+ constructor();
256
+ }
257
+
258
+ namespace OneJS {
259
+ class CartridgeTypeGenerator {
260
+ protected [__keep_incompatibility]: never;
261
+ public static Generate($cartridge: UICartridge): string;
262
+ }
263
+
264
+ class CodeField extends UnityEngine.UIElements.TextField {
265
+ protected [__keep_incompatibility]: never;
266
+ public Highlighter: OneJS.CodeField.ISyntaxHighlighter;
267
+ public IndentUsingSpaces: boolean;
268
+ public IndentSize: number;
269
+ public AutoHeight: boolean;
270
+ public LineHeight: number;
271
+ public MinLines: number;
272
+ constructor();
273
+ constructor($label: string);
274
+ constructor($label: string, $maxLength: number, $multiline: boolean, $isPasswordField: boolean, $maskChar: number);
275
+ }
276
+ namespace CodeField {
277
+ interface ISyntaxHighlighter {
278
+ Highlight($text: string): System.Array$1<UnityEngine.Color32>;
279
+ }
280
+
281
+ class SimpleKeywordHighlighter implements OneJS.CodeField.ISyntaxHighlighter {
282
+ protected [__keep_incompatibility]: never;
283
+ public DefaultColor: UnityEngine.Color32;
284
+ public KeywordColor: UnityEngine.Color32;
285
+ public StringColor: UnityEngine.Color32;
286
+ public NumberColor: UnityEngine.Color32;
287
+ public CommentColor: UnityEngine.Color32;
288
+ constructor();
289
+ public Highlight($text: string): System.Array$1<UnityEngine.Color32>;
290
+ }
291
+
292
+ type UxmlSerializedData = any;
293
+
294
+ }
295
+
296
+ class Network {
297
+ protected [__keep_incompatibility]: never;
298
+ public static FetchAsync($url: string, $method: string, $body: string, $headersJson: string): $Task;
299
+ }
300
+
301
+ }
302
+ namespace OneJS {
303
+ namespace CustomStyleSheets {
304
+ class StyleSheetBuilderWrapper {
305
+ protected [__keep_incompatibility]: never;
306
+ constructor();
307
+ public BuildTo($styleSheet: UnityEngine.UIElements.StyleSheet): void;
308
+ public BeginRule($line: number): void;
309
+ public EndRule(): void;
310
+ public BeginComplexSelector($specificity: number): System.IDisposable;
311
+ public AddSimpleSelector($parts: System.Array$1<OneJS.CustomStyleSheets.SelectorPart>, $relationship: OneJS.CustomStyleSheets.SelectorRelationship): void;
312
+ public BeginProperty($name: string, $line: number): void;
313
+ public EndProperty(): void;
314
+ public AddCommaSeparator(): void;
315
+ public AddValue($value: number): void;
316
+ public AddValue($color: UnityEngine.Color): void;
317
+ public AddValue($obj: UnityEngine.Object): void;
318
+ public AddValue($value: number, $unit: OneJS.CustomStyleSheets.DimensionUnit): void;
319
+ public AddValue($keyword: OneJS.CustomStyleSheets.StyleKeyword): void;
320
+ public AddValue($value: string, $type: OneJS.CustomStyleSheets.StyleValueType): void;
321
+ public AddValue($function: OneJS.CustomStyleSheets.StyleFunction): void;
322
+ }
323
+
324
+ class SelectorPart {
325
+ protected [__keep_incompatibility]: never;
326
+ public Value: string;
327
+ public Type: OneJS.CustomStyleSheets.SelectorType;
328
+ public static Class($name: string): OneJS.CustomStyleSheets.SelectorPart;
329
+ public static Id($name: string): OneJS.CustomStyleSheets.SelectorPart;
330
+ public static TypeName($name: string): OneJS.CustomStyleSheets.SelectorPart;
331
+ public static PseudoClass($name: string): OneJS.CustomStyleSheets.SelectorPart;
332
+ public static Wildcard(): OneJS.CustomStyleSheets.SelectorPart;
333
+ }
334
+
335
+ enum SelectorType {
336
+ Unknown = 0,
337
+ Wildcard = 1,
338
+ Type = 2,
339
+ Class = 3,
340
+ PseudoClass = 4,
341
+ RecursivePseudoClass = 5,
342
+ ID = 6,
343
+ Predicate = 7
344
+ }
345
+
346
+ enum SelectorRelationship {
347
+ None = 0,
348
+ Child = 1,
349
+ Descendent = 2
350
+ }
351
+
352
+ enum DimensionUnit {
353
+ Unitless = 0,
354
+ Pixel = 1,
355
+ Percent = 2,
356
+ Second = 3,
357
+ Millisecond = 4,
358
+ Degree = 5,
359
+ Gradian = 6,
360
+ Radian = 7,
361
+ Turn = 8
362
+ }
363
+
364
+ enum StyleKeyword {
365
+ Undefined = 0,
366
+ Null = 1,
367
+ Auto = 2,
368
+ None = 3,
369
+ Initial = 4
370
+ }
371
+
372
+ enum StyleValueType {
373
+ Invalid = 0,
374
+ Keyword = 1,
375
+ Float = 2,
376
+ Dimension = 3,
377
+ Color = 4,
378
+ ResourcePath = 5,
379
+ AssetReference = 6,
380
+ Enum = 7,
381
+ Variable = 8,
382
+ String = 9,
383
+ Function = 10,
384
+ CommaSeparator = 11,
385
+ ScalableImage = 12,
386
+ MissingAssetReference = 13
387
+ }
388
+
389
+ enum StyleFunction {
390
+ Unknown = 0,
391
+ Var = 1,
392
+ Env = 2,
393
+ LinearGradient = 3
394
+ }
395
+
396
+ class UssCompiler {
397
+ protected [__keep_incompatibility]: never;
398
+ constructor($workingDir?: string);
399
+ public Compile($asset: UnityEngine.UIElements.StyleSheet, $ussContent: string): void;
400
+ }
401
+
402
+ }
403
+ }
404
+ namespace OneJS {
405
+ namespace Editor {
406
+ class CodeFieldTestWindow extends UnityEditor.EditorWindow {
407
+ protected [__keep_incompatibility]: never;
408
+ constructor();
409
+ public static ShowWindow(): void;
410
+ }
411
+
412
+ }
413
+ }
414
+ namespace OneJS {
415
+ namespace Editor {
416
+ namespace TypeGenerator {
417
+ class TypeAnalyzer {
418
+ protected [__keep_incompatibility]: never;
419
+ constructor($options?: OneJS.Editor.TypeGenerator.AnalyzerOptions);
420
+ public AnalyzeType($type: System.Type): OneJS.Editor.TypeGenerator.TsTypeInfo;
421
+ public AnalyzeTypes($types: System.Collections.Generic.IEnumerable$1<System.Type>): System.Collections.Generic.List$1<OneJS.Editor.TypeGenerator.TsTypeInfo>;
422
+ }
423
+
424
+ class AnalyzerOptions {
425
+ protected [__keep_incompatibility]: never;
426
+ public IncludeNonPublic: boolean;
427
+ public IncludeObsolete: boolean;
428
+ public IncludeNestedTypes: boolean;
429
+ public ResolveExtensionMethods: boolean;
430
+ constructor();
431
+ }
432
+
433
+ class TypeMapper {
434
+ protected [__keep_incompatibility]: never;
435
+ public static MapType($type: System.Type): OneJS.Editor.TypeGenerator.TsTypeRef;
436
+ public static ShouldSkipType($type: System.Type): boolean;
437
+ public static ShouldEmitAsAny($type: System.Type): boolean;
438
+ public static SanitizeTypeName($name: string): string;
439
+ public static ShouldSkipMember($member: System.Reflection.MemberInfo): boolean;
440
+ public static GetTsFriendlyName($type: System.Type): string;
441
+ }
442
+
443
+ class TypeScriptEmitter {
444
+ protected [__keep_incompatibility]: never;
445
+ constructor($options?: OneJS.Editor.TypeGenerator.EmitterOptions);
446
+ public Emit($types: System.Collections.Generic.IEnumerable$1<OneJS.Editor.TypeGenerator.TsTypeInfo>): string;
447
+ }
448
+
449
+ class EmitterOptions {
450
+ protected [__keep_incompatibility]: never;
451
+ public IncludeDocumentation: boolean;
452
+ public IncludeObsoleteWarnings: boolean;
453
+ public EmitModuleDeclaration: boolean;
454
+ public EmitIncompatibilityMarker: boolean;
455
+ public UseAccessorSyntax: boolean;
456
+ public SkipHeader: boolean;
457
+ constructor();
458
+ }
459
+
460
+ class TsGenericConstraint {
461
+ protected [__keep_incompatibility]: never;
462
+ public ParameterName: string;
463
+ public HasValueTypeConstraint: boolean;
464
+ public HasReferenceTypeConstraint: boolean;
465
+ public HasDefaultConstructorConstraint: boolean;
466
+ public HasNotNullConstraint: boolean;
467
+ public TypeConstraints: System.Collections.Generic.List$1<OneJS.Editor.TypeGenerator.TsTypeRef>;
468
+ public get HasConstraints(): boolean;
469
+ constructor();
470
+ public ToTypeScript($useFullTypeName?: boolean): string;
471
+ public ToString(): string;
472
+ }
473
+
474
+ class TsMethodInfo {
475
+ protected [__keep_incompatibility]: never;
476
+ public Name: string;
477
+ public ReturnType: OneJS.Editor.TypeGenerator.TsTypeRef;
478
+ public Parameters: System.Collections.Generic.List$1<OneJS.Editor.TypeGenerator.TsParameterInfo>;
479
+ public IsStatic: boolean;
480
+ public IsAbstract: boolean;
481
+ public IsVirtual: boolean;
482
+ public IsConstructor: boolean;
483
+ public Accessibility: OneJS.Editor.TypeGenerator.TsAccessibility;
484
+ public IsGenericMethod: boolean;
485
+ public GenericParameters: System.Collections.Generic.List$1<string>;
486
+ public GenericConstraints: System.Collections.Generic.List$1<OneJS.Editor.TypeGenerator.TsGenericConstraint>;
487
+ public IsExtensionMethod: boolean;
488
+ public ExtendedType: OneJS.Editor.TypeGenerator.TsTypeRef;
489
+ public Documentation: string;
490
+ public IsObsolete: boolean;
491
+ public ObsoleteMessage: string;
492
+ public OriginalMethod: System.Reflection.MethodBase;
493
+ constructor();
494
+ public ToTypeScript($isInterface?: boolean, $useFullTypeName?: boolean): string;
495
+ public ToFunctionType($useFullTypeName?: boolean): string;
496
+ public ToString(): string;
497
+ }
498
+
499
+ enum TsAccessibility {
500
+ Public = 0,
501
+ Protected = 1,
502
+ Private = 2,
503
+ Internal = 3
504
+ }
505
+
506
+ class TsParameterInfo {
507
+ protected [__keep_incompatibility]: never;
508
+ public Name: string;
509
+ public Type: OneJS.Editor.TypeGenerator.TsTypeRef;
510
+ public IsOptional: boolean;
511
+ public IsParams: boolean;
512
+ public IsOut: boolean;
513
+ public IsRef: boolean;
514
+ public IsIn: boolean;
515
+ public DefaultValue: string;
516
+ public OriginalParameter: System.Reflection.ParameterInfo;
517
+ constructor();
518
+ public ToTypeScript($useFullTypeName?: boolean): string;
519
+ public ToString(): string;
520
+ }
521
+
522
+ class TsPropertyInfo {
523
+ protected [__keep_incompatibility]: never;
524
+ public Name: string;
525
+ public Type: OneJS.Editor.TypeGenerator.TsTypeRef;
526
+ public IsStatic: boolean;
527
+ public HasGetter: boolean;
528
+ public HasSetter: boolean;
529
+ public Accessibility: OneJS.Editor.TypeGenerator.TsAccessibility;
530
+ public Documentation: string;
531
+ public IsObsolete: boolean;
532
+ public ObsoleteMessage: string;
533
+ public OriginalProperty: System.Reflection.PropertyInfo;
534
+ constructor();
535
+ public ToTypeScript($isInterface?: boolean, $useFullTypeName?: boolean, $useAccessors?: boolean): string;
536
+ public ToString(): string;
537
+ }
538
+
539
+ class TsFieldInfo {
540
+ protected [__keep_incompatibility]: never;
541
+ public Name: string;
542
+ public Type: OneJS.Editor.TypeGenerator.TsTypeRef;
543
+ public IsStatic: boolean;
544
+ public IsReadOnly: boolean;
545
+ public IsConst: boolean;
546
+ public Accessibility: OneJS.Editor.TypeGenerator.TsAccessibility;
547
+ public ConstValue: string;
548
+ public Documentation: string;
549
+ public IsObsolete: boolean;
550
+ public ObsoleteMessage: string;
551
+ public OriginalField: System.Reflection.FieldInfo;
552
+ constructor();
553
+ public ToTypeScript($isInterface?: boolean, $useFullTypeName?: boolean): string;
554
+ public ToString(): string;
555
+ }
556
+
557
+ enum TsTypeKind {
558
+ Class = 0,
559
+ Interface = 1,
560
+ Enum = 2,
561
+ Delegate = 3,
562
+ Struct = 4,
563
+ TypeAlias = 5
564
+ }
565
+
566
+ class TsTypeInfo {
567
+ protected [__keep_incompatibility]: never;
568
+ public Name: string;
569
+ public Namespace: string;
570
+ public get FullName(): string;
571
+ public Kind: OneJS.Editor.TypeGenerator.TsTypeKind;
572
+ public IsAbstract: boolean;
573
+ public IsSealed: boolean;
574
+ public IsStatic: boolean;
575
+ public IsGenericTypeDefinition: boolean;
576
+ public GenericParameters: System.Collections.Generic.List$1<string>;
577
+ public GenericConstraints: System.Collections.Generic.List$1<OneJS.Editor.TypeGenerator.TsGenericConstraint>;
578
+ public BaseType: OneJS.Editor.TypeGenerator.TsTypeRef;
579
+ public Interfaces: System.Collections.Generic.List$1<OneJS.Editor.TypeGenerator.TsTypeRef>;
580
+ public Fields: System.Collections.Generic.List$1<OneJS.Editor.TypeGenerator.TsFieldInfo>;
581
+ public Properties: System.Collections.Generic.List$1<OneJS.Editor.TypeGenerator.TsPropertyInfo>;
582
+ public Methods: System.Collections.Generic.List$1<OneJS.Editor.TypeGenerator.TsMethodInfo>;
583
+ public Constructors: System.Collections.Generic.List$1<OneJS.Editor.TypeGenerator.TsMethodInfo>;
584
+ public Events: System.Collections.Generic.List$1<OneJS.Editor.TypeGenerator.TsEventInfo>;
585
+ public Indexers: System.Collections.Generic.List$1<OneJS.Editor.TypeGenerator.TsIndexerInfo>;
586
+ public ExtensionMethods: System.Collections.Generic.List$1<OneJS.Editor.TypeGenerator.TsMethodInfo>;
587
+ public NestedTypes: System.Collections.Generic.List$1<OneJS.Editor.TypeGenerator.TsTypeInfo>;
588
+ public DelegateSignature: OneJS.Editor.TypeGenerator.TsMethodInfo;
589
+ public EnumMembers: System.Collections.Generic.List$1<OneJS.Editor.TypeGenerator.TsEnumMember>;
590
+ public IsEnumFlags: boolean;
591
+ public AliasedType: OneJS.Editor.TypeGenerator.TsTypeRef;
592
+ public Documentation: string;
593
+ public IsObsolete: boolean;
594
+ public ObsoleteMessage: string;
595
+ public OriginalType: System.Type;
596
+ constructor();
597
+ public GetDeclarationLine($useFullBaseTypeName?: boolean): string;
598
+ public ToString(): string;
599
+ }
600
+
601
+ class TsEventInfo {
602
+ protected [__keep_incompatibility]: never;
603
+ public Name: string;
604
+ public EventHandlerType: OneJS.Editor.TypeGenerator.TsTypeRef;
605
+ public IsStatic: boolean;
606
+ public Documentation: string;
607
+ public IsObsolete: boolean;
608
+ constructor();
609
+ public ToTypeScript($isInterface?: boolean, $useFullTypeName?: boolean): string;
610
+ }
611
+
612
+ class TsIndexerInfo {
613
+ protected [__keep_incompatibility]: never;
614
+ public Parameters: System.Collections.Generic.List$1<OneJS.Editor.TypeGenerator.TsParameterInfo>;
615
+ public ReturnType: OneJS.Editor.TypeGenerator.TsTypeRef;
616
+ public HasGetter: boolean;
617
+ public HasSetter: boolean;
618
+ public Documentation: string;
619
+ constructor();
620
+ public ToTypeScript($isInterface?: boolean, $useFullTypeName?: boolean): string;
621
+ }
622
+
623
+ class TsEnumMember {
624
+ protected [__keep_incompatibility]: never;
625
+ public Name: string;
626
+ public Value: any;
627
+ public Documentation: string;
628
+ constructor();
629
+ public ToTypeScript(): string;
630
+ }
631
+
632
+ class TsTypeRef {
633
+ protected [__keep_incompatibility]: never;
634
+ public Name: string;
635
+ public Namespace: string;
636
+ public get FullName(): string;
637
+ public IsGeneric: boolean;
638
+ public GenericArguments: System.Collections.Generic.List$1<OneJS.Editor.TypeGenerator.TsTypeRef>;
639
+ public IsNullable: boolean;
640
+ public IsByRef: boolean;
641
+ public IsOut: boolean;
642
+ public IsIn: boolean;
643
+ public IsArray: boolean;
644
+ public ArrayRank: number;
645
+ public IsPointer: boolean;
646
+ public IsPrimitive: boolean;
647
+ public PrimitiveTypeName: string;
648
+ public OriginalType: System.Type;
649
+ constructor();
650
+ constructor($name: string, $ns?: string);
651
+ public ToTypeScript($useFullName?: boolean): string;
652
+ public ToString(): string;
653
+ }
654
+
655
+ class TypeGenerator {
656
+ protected [__keep_incompatibility]: never;
657
+ public static readonly DefaultOutputPath: string;
658
+ public static Generate($outputPath: string, ...types: System.Type[]): void;
659
+ public static GenerateFromAssembly($outputPath: string, $assemblyNamePattern: string): void;
660
+ public static GenerateFromAssemblies($outputPath: string, ...assemblyNamePatterns: string[]): void;
661
+ public static GenerateFromNamespace($outputPath: string, $namespaceName: string): void;
662
+ public static GenerateProjectTypes($outputPath?: string): void;
663
+ public static GenerateToResult(...types: System.Type[]): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
664
+ public static Create(): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
665
+ public static CombinePresets(...results: OneJS.Editor.TypeGenerator.TypeGeneratorResult[]): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
666
+ public static GetAssemblies($namePattern: string): System.Collections.Generic.IEnumerable$1<System.Reflection.Assembly>;
667
+ public static GetTypesFromAssembly($assemblyPattern: string): System.Collections.Generic.IEnumerable$1<System.Type>;
668
+ public static GetTypesFromNamespace($namespaceName: string): System.Collections.Generic.IEnumerable$1<System.Type>;
669
+ }
670
+ namespace TypeGenerator {
671
+ class Presets {
672
+ protected [__keep_incompatibility]: never;
673
+ public static get UnityCore(): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
674
+ public static get UIToolkit(): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
675
+ public static get Physics(): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
676
+ public static get Animation(): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
677
+ public static get Audio(): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
678
+ public static get InputSystem(): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
679
+ public static get All(): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
680
+ }
681
+
682
+ }
683
+
684
+ class TypeGeneratorBuilder {
685
+ protected [__keep_incompatibility]: never;
686
+ public get TypeCount(): number;
687
+ public get Types(): System.Collections.Generic.IReadOnlyCollection$1<System.Type>;
688
+ constructor();
689
+ public AddType<T>(): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
690
+ public AddType($type: System.Type): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
691
+ public AddTypeByName($fullTypeName: string): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
692
+ public AddTypes(...types: System.Type[]): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
693
+ public AddTypes($types: System.Collections.Generic.IEnumerable$1<System.Type>): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
694
+ public AddAssemblyByName($assemblyNamePattern: string): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
695
+ public AddAssembly($assembly: System.Reflection.Assembly): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
696
+ public AddAssembliesWhere($predicate: System.Func$2<System.Reflection.Assembly, boolean>): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
697
+ public AddNamespace($namespaceName: string): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
698
+ public AddTypesWhere($predicate: System.Func$2<System.Type, boolean>): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
699
+ public IncludeNonPublic(): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
700
+ public IncludeObsolete(): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
701
+ public ExcludeObsolete(): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
702
+ public IncludeNestedTypes(): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
703
+ public ExcludeNestedTypes(): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
704
+ public IncludeDocumentation(): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
705
+ public ExcludeDocumentation(): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
706
+ public EmitModuleDeclaration(): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
707
+ public EmitIncompatibilityMarker($emit?: boolean): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
708
+ public UseAccessorSyntax($use?: boolean): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
709
+ public SkipHeader(): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
710
+ public Build(): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
711
+ }
712
+
713
+ class TypeGeneratorPresets {
714
+ protected [__keep_incompatibility]: never;
715
+ public static UnityCore(): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
716
+ public static UIToolkit(): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
717
+ public static Physics(): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
718
+ public static Animation(): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
719
+ public static Audio(): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
720
+ public static InputSystem(): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
721
+ public static All(): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
722
+ public static CreateCustom($name: string, ...types: System.Type[]): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
723
+ public static FromNamespace($namespaceName: string): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
724
+ public static FromAssembly($assemblyPattern: string): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
725
+ }
726
+
727
+ class TypeGeneratorResult {
728
+ protected [__keep_incompatibility]: never;
729
+ public get Content(): string;
730
+ public get SourceTypes(): System.Collections.Generic.IReadOnlyList$1<System.Type>;
731
+ public get TypeInfos(): System.Collections.Generic.IReadOnlyList$1<OneJS.Editor.TypeGenerator.TsTypeInfo>;
732
+ public get TypeCount(): number;
733
+ public get ContentSize(): number;
734
+ public get LineCount(): number;
735
+ public WriteTo($path: string, $refreshAssetDatabase?: boolean): void;
736
+ public WriteTo($writer: System.IO.TextWriter): void;
737
+ public ToString(): string;
738
+ public static Combine(...results: OneJS.Editor.TypeGenerator.TypeGeneratorResult[]): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
739
+ public CombineWith($other: OneJS.Editor.TypeGenerator.TypeGeneratorResult): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
740
+ public Filter($predicate: System.Func$2<System.Type, boolean>): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
741
+ public Exclude($predicate: System.Func$2<System.Type, boolean>): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
742
+ }
743
+
744
+ class TypeGeneratorService {
745
+ protected [__keep_incompatibility]: never;
746
+ public static GenerateTypingsFor($runner: JSRunner, $silent?: boolean): boolean;
747
+ public static RegenerateAllTypings(): void;
748
+ }
749
+
750
+ class TypeGeneratorWindow extends UnityEditor.EditorWindow {
751
+ protected [__keep_incompatibility]: never;
752
+ constructor();
753
+ public static ShowWindow(): void;
754
+ }
755
+
756
+ }
757
+ }
758
+ }
759
+ namespace OneJS {
760
+ namespace Editor {
761
+ namespace TypeGenerator {
762
+ namespace Tests {
763
+ class TypeGeneratorTests {
764
+ protected [__keep_incompatibility]: never;
765
+ constructor();
766
+ public GenerateToResult_WithSingleType_ReturnsValidContent(): void;
767
+ public GenerateToResult_WithMultipleTypes_ReturnsAllTypes(): void;
768
+ public GetTypesFromAssembly_WithValidPattern_ReturnsTypes(): void;
769
+ public GetTypesFromNamespace_WithValidNamespace_ReturnsTypes(): void;
770
+ public Builder_AddType_Generic_AddsType(): void;
771
+ public Builder_AddTypes_AddsMultipleTypes(): void;
772
+ public Builder_AddNamespace_AddsTypesFromNamespace(): void;
773
+ public Builder_AddAssemblyByName_AddsTypesFromAssembly(): void;
774
+ public Builder_ChainedMethods_ReturnsBuilder(): void;
775
+ public Builder_Build_ReturnsValidResult(): void;
776
+ public Builder_AddTypesWhere_FiltersTypes(): void;
777
+ public Result_ImplicitStringConversion_ReturnsContent(): void;
778
+ public Result_ToString_ReturnsContent(): void;
779
+ public Result_Filter_FiltersTypes(): void;
780
+ public Result_Exclude_ExcludesTypes(): void;
781
+ public Result_Combine_CombinesResults(): void;
782
+ public Result_CombineWith_CombinesResults(): void;
783
+ public Result_WriteTo_TextWriter_WritesContent(): void;
784
+ public Presets_UnityCore_ReturnsValidResult(): void;
785
+ public Presets_UIToolkit_ReturnsValidResult(): void;
786
+ public Presets_Physics_ReturnsValidResult(): void;
787
+ public Presets_Animation_ReturnsValidResult(): void;
788
+ public Presets_Audio_ReturnsValidResult(): void;
789
+ public Presets_All_CombinesAllPresets(): void;
790
+ public CombinePresets_CombinesMultiplePresets(): void;
791
+ public GeneratedContent_HasHeader(): void;
792
+ public GeneratedContent_HasHelperTypes(): void;
793
+ public GeneratedContent_HasNamespaceWrapper(): void;
794
+ public GeneratedContent_HasIncompatibilityMarker(): void;
795
+ public GeneratedContent_HasClassDeclaration(): void;
796
+ public GeneratedContent_HasStaticMembers(): void;
797
+ public GenerateToResult_WithNoTypes_ReturnsEmptyResult(): void;
798
+ public GenerateToResult_WithNullType_SkipsNull(): void;
799
+ public Builder_AddType_WithNull_DoesNotThrow(): void;
800
+ public Builder_DuplicateTypes_DeduplicatesAutomatically(): void;
801
+ }
802
+
803
+ }
804
+ }
805
+ }
806
+ }
807
+ namespace OneJS {
808
+ namespace GPU {
809
+ class ComputeShaderProvider extends UnityEngine.MonoBehaviour {
810
+ protected [__keep_incompatibility]: never;
811
+ public shaders: System.Array$1<OneJS.GPU.ComputeShaderProvider.ShaderEntry>;
812
+ public registerOnAwake: boolean;
813
+ constructor();
814
+ public Register(): void;
815
+ public Unregister(): void;
816
+ }
817
+ namespace ComputeShaderProvider {
818
+ class ShaderEntry {
819
+ protected [__keep_incompatibility]: never;
820
+ public name: string;
821
+ public shader: UnityEngine.ComputeShader;
822
+ constructor();
823
+ }
824
+
825
+ }
826
+
827
+ class GPUBridge {
828
+ protected [__keep_incompatibility]: never;
829
+ public static get SupportsCompute(): boolean;
830
+ public static get SupportsAsyncReadback(): boolean;
831
+ public static get MaxComputeWorkGroupSizeX(): number;
832
+ public static get MaxComputeWorkGroupSizeY(): number;
833
+ public static get MaxComputeWorkGroupSizeZ(): number;
834
+ public static GetSupportsCompute(): boolean;
835
+ public static GetSupportsAsyncReadback(): boolean;
836
+ public static GetMaxComputeWorkGroupSizeX(): number;
837
+ public static GetMaxComputeWorkGroupSizeY(): number;
838
+ public static GetMaxComputeWorkGroupSizeZ(): number;
839
+ public static Register($name: string, $shader: UnityEngine.ComputeShader): void;
840
+ public static Unregister($name: string): void;
841
+ public static ClearRegistry(): void;
842
+ public static LoadShader($name: string): number;
843
+ public static RegisterShader($shader: UnityEngine.ComputeShader): number;
844
+ public static DisposeShader($handle: number): void;
845
+ public static FindKernel($shaderHandle: number, $kernelName: string): number;
846
+ public static PropertyToID($name: string): number;
847
+ public static SetFloat($shaderHandle: number, $name: string, $value: number): void;
848
+ public static SetInt($shaderHandle: number, $name: string, $value: number): void;
849
+ public static SetBool($shaderHandle: number, $name: string, $value: boolean): void;
850
+ public static SetVector($shaderHandle: number, $name: string, $x: number, $y: number, $z: number, $w: number): void;
851
+ public static SetFloatById($shaderHandle: number, $nameId: number, $value: number): void;
852
+ public static SetIntById($shaderHandle: number, $nameId: number, $value: number): void;
853
+ public static SetVectorById($shaderHandle: number, $nameId: number, $x: number, $y: number, $z: number, $w: number): void;
854
+ public static SetMatrix($shaderHandle: number, $name: string, $matrixJson: string): void;
855
+ public static CreateBuffer($count: number, $stride: number): number;
856
+ public static DisposeBuffer($handle: number): void;
857
+ public static SetBufferData($handle: number, $dataJson: string): void;
858
+ public static BindBuffer($shaderHandle: number, $kernelIndex: number, $name: string, $bufferHandle: number): void;
859
+ public static Dispatch($shaderHandle: number, $kernelIndex: number, $groupsX: number, $groupsY: number, $groupsZ: number): void;
860
+ public static CreateRenderTexture($width: number, $height: number, $enableRandomWrite?: boolean): number;
861
+ public static ResizeRenderTexture($handle: number, $width: number, $height: number): boolean;
862
+ public static DisposeRenderTexture($handle: number): void;
863
+ public static GetRenderTextureObject($handle: number): UnityEngine.RenderTexture;
864
+ public static GetRenderTextureAsBackground($handle: number): UnityEngine.UIElements.StyleBackground | null;
865
+ public static SetElementBackgroundImage($element: UnityEngine.UIElements.VisualElement, $rtHandle: number): void;
866
+ public static ClearElementBackgroundImage($element: UnityEngine.UIElements.VisualElement): void;
867
+ public static GetRenderTextureWidth($handle: number): number;
868
+ public static GetRenderTextureHeight($handle: number): number;
869
+ public static SetTexture($shaderHandle: number, $kernelIndex: number, $name: string, $textureHandle: number): void;
870
+ public static SetTextureById($shaderHandle: number, $kernelIndex: number, $nameId: number, $textureHandle: number): void;
871
+ public static GetScreenWidth(): number;
872
+ public static GetScreenHeight(): number;
873
+ public static RequestReadback($bufferHandle: number): number;
874
+ public static IsReadbackComplete($requestId: number): boolean;
875
+ public static GetReadbackData($requestId: number): string;
876
+ public static Cleanup(): void;
877
+ public static InitializeZeroAllocBindings(): void;
878
+ public static GetZeroAllocBindingIds(): OneJS.GPU.GPUBridge.ZeroAllocBindingIds;
879
+ }
880
+ namespace GPUBridge {
881
+ class ZeroAllocBindingIds {
882
+ protected [__keep_incompatibility]: never;
883
+ public setFloat: number;
884
+ public setInt: number;
885
+ public setBool: number;
886
+ public setVector: number;
887
+ public setTexture: number;
888
+ public dispatch: number;
889
+ public getScreenWidth: number;
890
+ public getScreenHeight: number;
891
+ public propertyToId: number;
892
+ public setFloatById: number;
893
+ public setIntById: number;
894
+ public setVectorById: number;
895
+ public setTextureById: number;
896
+ }
897
+
898
+ }
899
+
900
+ }
901
+ }
902
+ namespace OneJS {
903
+ namespace Input {
904
+ class InputBridge {
905
+ protected [__keep_incompatibility]: never;
906
+ public static GetKeyDown($keyName: string): boolean;
907
+ public static GetKeyPressed($keyName: string): boolean;
908
+ public static GetKeyReleased($keyName: string): boolean;
909
+ public static GetModifiers(): number;
910
+ public static GetAnyKeyDown(): boolean;
911
+ public static GetAnyKeyPressed(): boolean;
912
+ public static GetMousePositionX(): number;
913
+ public static GetMousePositionY(): number;
914
+ public static GetMouseDeltaX(): number;
915
+ public static GetMouseDeltaY(): number;
916
+ public static GetScrollX(): number;
917
+ public static GetScrollY(): number;
918
+ public static GetMouseButtons(): number;
919
+ public static GetMouseButtonsPressed(): number;
920
+ public static GetMouseButtonsReleased(): number;
921
+ public static GetGamepadCount(): number;
922
+ public static IsGamepadConnected($index: number): boolean;
923
+ public static GetLeftStickX($index: number): number;
924
+ public static GetLeftStickY($index: number): number;
925
+ public static GetRightStickX($index: number): number;
926
+ public static GetRightStickY($index: number): number;
927
+ public static GetLeftTrigger($index: number): number;
928
+ public static GetRightTrigger($index: number): number;
929
+ public static GetGamepadButtons($index: number): number;
930
+ public static GetGamepadButtonsPressed($index: number): number;
931
+ public static GetGamepadButtonsReleased($index: number): number;
932
+ public static GetGamepadButtonDown($index: number, $buttonName: string): boolean;
933
+ public static SetRumble($index: number, $lowFreq: number, $highFreq: number, $duration: number): void;
934
+ public static StopRumble($index: number): void;
935
+ public static PauseHaptics(): void;
936
+ public static ResumeHaptics(): void;
937
+ public static GetTouchCount(): number;
938
+ public static GetTouchFingerId($touchIndex: number): number;
939
+ public static GetTouchPositionX($touchIndex: number): number;
940
+ public static GetTouchPositionY($touchIndex: number): number;
941
+ public static GetTouchDeltaX($touchIndex: number): number;
942
+ public static GetTouchDeltaY($touchIndex: number): number;
943
+ public static GetTouchPhase($touchIndex: number): number;
944
+ public static RegisterActionAsset($asset: UnityEngine.InputSystem.InputActionAsset): number;
945
+ public static DisposeActionAsset($handle: number): void;
946
+ public static FindAction($assetHandle: number, $actionPath: string): number;
947
+ public static GetActionTriggered($actionHandle: number): boolean;
948
+ public static GetActionPressed($actionHandle: number): boolean;
949
+ public static GetActionPhase($actionHandle: number): number;
950
+ public static GetActionValueFloat($actionHandle: number): number;
951
+ public static GetActionValueVector2X($actionHandle: number): number;
952
+ public static GetActionValueVector2Y($actionHandle: number): number;
953
+ public static EnableActionMap($assetHandle: number, $mapName: string): void;
954
+ public static DisableActionMap($assetHandle: number, $mapName: string): void;
955
+ public static CreateActionMap($name: string): number;
956
+ public static AddButtonAction($mapHandle: number, $name: string): number;
957
+ public static AddValueAction($mapHandle: number, $name: string): number;
958
+ public static AddBinding($actionHandle: number, $path: string): void;
959
+ public static EnableDynamicMap($mapHandle: number): void;
960
+ public static DisableDynamicMap($mapHandle: number): void;
961
+ public static DisposeDynamicMap($mapHandle: number): void;
962
+ }
963
+
964
+ }
965
+ }
966
+ namespace OneJSContainer {
967
+ namespace Editor {
968
+ class EditorUpdateBackgroundTest {
969
+ protected [__keep_incompatibility]: never;
970
+ }
971
+
972
+ class UnityTypesGenerator {
973
+ protected [__keep_incompatibility]: never;
974
+ public static GenerateAll(): void;
975
+ public static GenerateForAssembly($assemblyName: string): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
976
+ public static GenerateForOneJS(): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
977
+ }
978
+
979
+ }
980
+ }
981
+ }