@octane-xplat/macos-renderer 0.14.0 → 0.15.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/README.md +95 -20
- package/package.json +15 -2
- package/src/appearance.ts +2 -0
- package/src/fonts.ts +2 -0
- package/src/formatted-text.ts +147 -0
- package/src/gestures.ts +196 -0
- package/src/host-globals.d.ts +55 -0
- package/src/html-text.ts +88 -0
- package/src/image.ts +91 -16
- package/src/index.d.ts +9 -0
- package/src/index.ts +5030 -678
- package/src/layer.ts +11 -9
- package/src/list-template.ts +266 -0
- package/src/list-view.ts +445 -0
- package/src/portal-components.macos.tsx +86 -0
- package/src/presentation.ts +48 -15
- package/src/scroll-view.ts +124 -0
- package/src/tab-view.ts +512 -0
- package/src/template-props.ts +402 -0
- package/src/vendor/listview/LICENSE +19 -0
- package/src/vendor/listview/README.md +1 -0
- package/src/vendor/listview/binding-options.ts +189 -0
- package/src/vendor/listview/expressions.ts +285 -0
- package/src/webview.ts +36 -7
- package/types/ARKitCore.d.ts +199 -0
- package/types/AVFAudio.d.ts +2304 -0
- package/types/AVFoundation.d.ts +6974 -0
- package/types/AVKit.d.ts +215 -0
- package/types/AVRouting.d.ts +7 -0
- package/types/Accelerate.d.ts +4776 -0
- package/types/Accessibility.d.ts +69 -0
- package/types/Accounts.d.ts +134 -0
- package/types/AdSupport.d.ts +12 -0
- package/types/AddressBook.d.ts +1012 -0
- package/types/AppKit.d.ts +34247 -0
- package/types/AppTrackingTransparency.d.ts +23 -0
- package/types/AppleScriptKit.d.ts +6 -0
- package/types/ApplicationServices.d.ts +6346 -0
- package/types/AudioToolbox.d.ts +7129 -0
- package/types/AudioVideoBridging.d.ts +613 -0
- package/types/AuthenticationServices.d.ts +982 -0
- package/types/AutomaticAssessmentConfiguration.d.ts +46 -0
- package/types/Automator.d.ts +248 -0
- package/types/BackgroundAssets.d.ts +9 -0
- package/types/BrowserEngineKit.d.ts +166 -0
- package/types/BusinessChat.d.ts +29 -0
- package/types/CFNetwork.d.ts +931 -0
- package/types/CalendarStore.d.ts +354 -0
- package/types/CallKit.d.ts +30 -0
- package/types/Carbon.d.ts +16207 -0
- package/types/ClassKit.d.ts +281 -0
- package/types/CloudKit.d.ts +1565 -0
- package/types/Collaboration.d.ts +123 -0
- package/types/ColorSync.d.ts +562 -0
- package/types/CompositorServices.d.ts +60 -0
- package/types/ComputeGraph.d.ts +16 -0
- package/types/Contacts.d.ts +1558 -0
- package/types/ContactsUI.d.ts +39 -0
- package/types/CoreAudio.d.ts +1376 -0
- package/types/CoreAudioKit.d.ts +122 -0
- package/types/CoreAudioTypes.d.ts +1003 -0
- package/types/CoreBluetooth.d.ts +657 -0
- package/types/CoreData.d.ts +2479 -0
- package/types/CoreFoundation.d.ts +5546 -0
- package/types/CoreGraphics.d.ts +3676 -0
- package/types/CoreHaptics.d.ts +361 -0
- package/types/CoreImage.d.ts +4781 -0
- package/types/CoreLocation.d.ts +564 -0
- package/types/CoreMIDI.d.ts +1538 -0
- package/types/CoreML.d.ts +905 -0
- package/types/CoreMedia.d.ts +2615 -0
- package/types/CoreMediaIO.d.ts +1046 -0
- package/types/CoreMotion.d.ts +316 -0
- package/types/CoreServices.d.ts +24810 -0
- package/types/CoreSpotlight.d.ts +789 -0
- package/types/CoreTelephony.d.ts +31 -0
- package/types/CoreText.d.ts +3973 -0
- package/types/CoreTransferable.d.ts +3 -0
- package/types/CoreVideo.d.ts +1162 -0
- package/types/CoreWLAN.d.ts +556 -0
- package/types/CryptoTokenKit.d.ts +548 -0
- package/types/DVDPlayback.d.ts +931 -0
- package/types/DataDetection.d.ts +66 -0
- package/types/DeviceCheck.d.ts +46 -0
- package/types/DeviceDiscoveryExtension.d.ts +142 -0
- package/types/DirectoryService.d.ts +966 -0
- package/types/DiscRecording.d.ts +2345 -0
- package/types/DiscRecordingUI.d.ts +288 -0
- package/types/DiskArbitration.d.ts +366 -0
- package/types/DriverKit.d.ts +639 -0
- package/types/EventKit.d.ts +640 -0
- package/types/ExceptionHandling.d.ts +56 -0
- package/types/ExecutionPolicy.d.ts +30 -0
- package/types/ExternalAccessory.d.ts +98 -0
- package/types/FSKit.d.ts +237 -0
- package/types/FileProvider.d.ts +495 -0
- package/types/FileProviderUI.d.ts +31 -0
- package/types/FinderSync.d.ts +165 -0
- package/types/FocusEngine.d.ts +133 -0
- package/types/ForceFeedback.d.ts +399 -0
- package/types/Foundation.d.ts +18216 -0
- package/types/GLKit.d.ts +937 -0
- package/types/GLUT.d.ts +1018 -0
- package/types/GSS.d.ts +855 -0
- package/types/GameController.d.ts +1394 -0
- package/types/GameKit.d.ts +1958 -0
- package/types/GameSave.d.ts +54 -0
- package/types/GameplayKit.d.ts +1645 -0
- package/types/HealthKit.d.ts +278 -0
- package/types/Hypervisor.d.ts +2079 -0
- package/types/ICADevices.d.ts +1400 -0
- package/types/IOBluetooth.d.ts +6094 -0
- package/types/IOBluetoothUI.d.ts +250 -0
- package/types/IOKit.d.ts +25804 -0
- package/types/IOSurface.d.ts +435 -0
- package/types/IOUSBHost.d.ts +809 -0
- package/types/ImageCaptureCore.d.ts +1104 -0
- package/types/ImageIO.d.ts +1697 -0
- package/types/InputMethodKit.d.ts +264 -0
- package/types/InstallerPlugins.d.ts +102 -0
- package/types/InstantMessage.d.ts +229 -0
- package/types/Intents.d.ts +1833 -0
- package/types/IntentsUI.d.ts +5 -0
- package/types/JavaRuntimeSupport.d.ts +520 -0
- package/types/JavaScriptCore.d.ts +934 -0
- package/types/Kerberos.d.ts +3754 -0
- package/types/Kernel.d.ts +33698 -0
- package/types/KernelManagement.d.ts +5 -0
- package/types/LatentSemanticMapping.d.ts +152 -0
- package/types/LinkPresentation.d.ts +57 -0
- package/types/LocalAuthentication.d.ts +94 -0
- package/types/MLCompute.d.ts +2343 -0
- package/types/MapKit.d.ts +2125 -0
- package/types/Matter.d.ts +151 -0
- package/types/MediaAccessibility.d.ts +137 -0
- package/types/MediaLibrary.d.ts +394 -0
- package/types/MediaPlayer.d.ts +475 -0
- package/types/MediaToolbox.d.ts +70 -0
- package/types/Metal.d.ts +4542 -0
- package/types/MetalFX.d.ts +107 -0
- package/types/MetalKit.d.ts +524 -0
- package/types/MetalPerformanceShaders.d.ts +9306 -0
- package/types/MetalPerformanceShadersGraph.d.ts +1394 -0
- package/types/MetricKit.d.ts +231 -0
- package/types/ModelIO.d.ts +2908 -0
- package/types/MultipeerConnectivity.d.ts +348 -0
- package/types/NaturalLanguage.d.ts +556 -0
- package/types/NearbyInteraction.d.ts +51 -0
- package/types/NetFS.d.ts +99 -0
- package/types/Network.d.ts +1622 -0
- package/types/NetworkExtension.d.ts +1574 -0
- package/types/NotificationCenter.d.ts +103 -0
- package/types/OSAKit.d.ts +260 -0
- package/types/OSLog.d.ts +208 -0
- package/types/OpenAL.d.ts +314 -0
- package/types/OpenCL.d.ts +2489 -0
- package/types/OpenDirectory.d.ts +1919 -0
- package/types/OpenGL.d.ts +11322 -0
- package/types/PCSC.d.ts +534 -0
- package/types/PDFKit.d.ts +1575 -0
- package/types/PHASE.d.ts +166 -0
- package/types/ParavirtualizedGraphics.d.ts +153 -0
- package/types/PassKit.d.ts +1287 -0
- package/types/PencilKit.d.ts +201 -0
- package/types/Photos.d.ts +1125 -0
- package/types/PhotosUI.d.ts +397 -0
- package/types/PreferencePanes.d.ts +68 -0
- package/types/ProximityReaderStub.d.ts +5 -0
- package/types/PushKit.d.ts +45 -0
- package/types/Quartz.d.ts +1642 -0
- package/types/QuartzCore.d.ts +1398 -0
- package/types/QuickLook.d.ts +212 -0
- package/types/QuickLookThumbnailing.d.ts +131 -0
- package/types/QuickLookUI.d.ts +117 -0
- package/types/REVISION.json +5 -0
- package/types/ReplayKit.d.ts +294 -0
- package/types/Runtime.d.ts +51605 -0
- package/types/SafariServices.d.ts +430 -0
- package/types/SafetyKit.d.ts +7 -0
- package/types/SceneKit.d.ts +4996 -0
- package/types/ScreenCaptureKit.d.ts +16 -0
- package/types/ScreenSaver.d.ts +41 -0
- package/types/ScreenTime.d.ts +41 -0
- package/types/ScriptingBridge.d.ts +96 -0
- package/types/Security.d.ts +14336 -0
- package/types/SecurityFoundation.d.ts +53 -0
- package/types/SecurityInterface.d.ts +297 -0
- package/types/SensorKit.d.ts +7 -0
- package/types/ServiceManagement.d.ts +71 -0
- package/types/SharedWithYou.d.ts +9 -0
- package/types/SharedWithYouCore.d.ts +5 -0
- package/types/ShazamKit.d.ts +12 -0
- package/types/Social.d.ts +306 -0
- package/types/SoundAnalysis.d.ts +177 -0
- package/types/Speech.d.ts +246 -0
- package/types/SpriteKit.d.ts +2766 -0
- package/types/StoreKit.d.ts +509 -0
- package/types/SyncServices.d.ts +551 -0
- package/types/SystemConfiguration.d.ts +1415 -0
- package/types/SystemExtensions.d.ts +89 -0
- package/types/TWAIN.d.ts +380 -0
- package/types/Tcl.d.ts +4013 -0
- package/types/ThreadNetwork.d.ts +77 -0
- package/types/Tk.d.ts +3750 -0
- package/types/UIUtilities.d.ts +31 -0
- package/types/UniformTypeIdentifiers.d.ts +358 -0
- package/types/UserNotifications.d.ts +538 -0
- package/types/UserNotificationsUI.d.ts +38 -0
- package/types/VideoDecodeAcceleration.d.ts +50 -0
- package/types/VideoSubscriberAccount.d.ts +139 -0
- package/types/VideoToolbox.d.ts +907 -0
- package/types/Virtualization.d.ts +302 -0
- package/types/Vision.d.ts +1723 -0
- package/types/WebKit.d.ts +5195 -0
- package/types/WidgetKit.d.ts +9 -0
- package/types/_LocationEssentials.d.ts +159 -0
- package/types/_ScreenCaptureKit_SwiftUI.d.ts +5 -0
- package/types/iTunesLibrary.d.ts +528 -0
- package/types/index.d.ts +9 -0
- package/types/vecLib.d.ts +33586 -0
- package/types/vmnet.d.ts +178 -0
- package/src/appkit.d.ts +0 -472
|
@@ -0,0 +1,1645 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Runtime.d.ts" />
|
|
3
|
+
|
|
4
|
+
declare const GKGameModelMinScore: number
|
|
5
|
+
|
|
6
|
+
declare const GKGameModelMaxScore: number
|
|
7
|
+
|
|
8
|
+
declare const GKRTreeSplitStrategy: {
|
|
9
|
+
Halve: 0
|
|
10
|
+
Linear: 1
|
|
11
|
+
Quadratic: 2
|
|
12
|
+
ReduceOverlap: 3
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare const GKMeshGraphTriangulationMode: {
|
|
16
|
+
Vertices: 1
|
|
17
|
+
Centers: 2
|
|
18
|
+
EdgeMidpoints: 4
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare class GKQuad {
|
|
22
|
+
constructor(init?: GKQuad)
|
|
23
|
+
quadMin: unknown /* ext vector */
|
|
24
|
+
quadMax: unknown /* ext vector */
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare class GKTriangle {
|
|
28
|
+
constructor(init?: GKTriangle)
|
|
29
|
+
points: unknown /* const array */
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare class GKBox {
|
|
33
|
+
constructor(init?: GKBox)
|
|
34
|
+
boxMin: unknown /* ext vector */
|
|
35
|
+
boxMax: unknown /* ext vector */
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare interface GKSceneRootNodeType extends NSObjectProtocol {}
|
|
39
|
+
|
|
40
|
+
declare class GKSceneRootNodeType extends NativeObject implements GKSceneRootNodeType {}
|
|
41
|
+
|
|
42
|
+
declare interface GKStrategist extends NSObjectProtocol {
|
|
43
|
+
gameModel: GKGameModel
|
|
44
|
+
|
|
45
|
+
randomSource: GKRandom
|
|
46
|
+
|
|
47
|
+
bestMoveForActivePlayer(): GKGameModelUpdate
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare class GKStrategist extends NativeObject implements GKStrategist {}
|
|
51
|
+
|
|
52
|
+
declare interface GKRandom {
|
|
53
|
+
nextInt(): number
|
|
54
|
+
|
|
55
|
+
nextIntWithUpperBound(upperBound: number): number
|
|
56
|
+
|
|
57
|
+
nextUniform(): number
|
|
58
|
+
|
|
59
|
+
nextBool(): boolean
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
declare class GKRandom extends NativeObject implements GKRandom {}
|
|
63
|
+
|
|
64
|
+
declare interface GKGameModelPlayer extends NSObjectProtocol {
|
|
65
|
+
readonly playerId: number
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
declare class GKGameModelPlayer extends NativeObject implements GKGameModelPlayer {}
|
|
69
|
+
|
|
70
|
+
declare interface GKGameModelUpdate extends NSObjectProtocol {
|
|
71
|
+
value: number
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
declare class GKGameModelUpdate extends NativeObject implements GKGameModelUpdate {}
|
|
75
|
+
|
|
76
|
+
declare interface GKGameModel extends NSObjectProtocol, NSCopying {
|
|
77
|
+
readonly players: NSArray
|
|
78
|
+
|
|
79
|
+
readonly activePlayer: GKGameModelPlayer
|
|
80
|
+
|
|
81
|
+
setGameModel(gameModel: GKGameModel): void
|
|
82
|
+
|
|
83
|
+
gameModelUpdatesForPlayer(player: GKGameModelPlayer): NSArray
|
|
84
|
+
|
|
85
|
+
applyGameModelUpdate(gameModelUpdate: GKGameModelUpdate): void
|
|
86
|
+
|
|
87
|
+
scoreForPlayer?(player: GKGameModelPlayer): number
|
|
88
|
+
|
|
89
|
+
isWinForPlayer?(player: GKGameModelPlayer): boolean
|
|
90
|
+
|
|
91
|
+
isLossForPlayer?(player: GKGameModelPlayer): boolean
|
|
92
|
+
|
|
93
|
+
unapplyGameModelUpdate?(gameModelUpdate: GKGameModelUpdate): void
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
declare class GKGameModel extends NativeObject implements GKGameModel {}
|
|
97
|
+
|
|
98
|
+
declare interface GKAgentDelegate extends NSObjectProtocol {
|
|
99
|
+
agentWillUpdate?(agent: GKAgent): void
|
|
100
|
+
|
|
101
|
+
agentDidUpdate?(agent: GKAgent): void
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
declare class GKAgentDelegate extends NativeObject implements GKAgentDelegate {}
|
|
105
|
+
|
|
106
|
+
declare class GKGoal extends NSObject implements NSCopying {
|
|
107
|
+
static goalToSeekAgent<This extends abstract new (...args: any) => any>(
|
|
108
|
+
this: This,
|
|
109
|
+
agent: GKAgent,
|
|
110
|
+
): InstanceType<This>
|
|
111
|
+
|
|
112
|
+
static goalToFleeAgent<This extends abstract new (...args: any) => any>(
|
|
113
|
+
this: This,
|
|
114
|
+
agent: GKAgent,
|
|
115
|
+
): InstanceType<This>
|
|
116
|
+
|
|
117
|
+
static goalToAvoidObstaclesMaxPredictionTime<This extends abstract new (...args: any) => any>(
|
|
118
|
+
this: This,
|
|
119
|
+
obstacles: NSArray<interop.Object> | Array<interop.Object>,
|
|
120
|
+
maxPredictionTime: number,
|
|
121
|
+
): InstanceType<This>
|
|
122
|
+
|
|
123
|
+
static goalToAvoidAgentsMaxPredictionTime<This extends abstract new (...args: any) => any>(
|
|
124
|
+
this: This,
|
|
125
|
+
agents: NSArray<interop.Object> | Array<interop.Object>,
|
|
126
|
+
maxPredictionTime: number,
|
|
127
|
+
): InstanceType<This>
|
|
128
|
+
|
|
129
|
+
static goalToSeparateFromAgentsMaxDistanceMaxAngle<
|
|
130
|
+
This extends abstract new (...args: any) => any,
|
|
131
|
+
>(
|
|
132
|
+
this: This,
|
|
133
|
+
agents: NSArray<interop.Object> | Array<interop.Object>,
|
|
134
|
+
maxDistance: number,
|
|
135
|
+
maxAngle: number,
|
|
136
|
+
): InstanceType<This>
|
|
137
|
+
|
|
138
|
+
static goalToAlignWithAgentsMaxDistanceMaxAngle<This extends abstract new (...args: any) => any>(
|
|
139
|
+
this: This,
|
|
140
|
+
agents: NSArray<interop.Object> | Array<interop.Object>,
|
|
141
|
+
maxDistance: number,
|
|
142
|
+
maxAngle: number,
|
|
143
|
+
): InstanceType<This>
|
|
144
|
+
|
|
145
|
+
static goalToCohereWithAgentsMaxDistanceMaxAngle<This extends abstract new (...args: any) => any>(
|
|
146
|
+
this: This,
|
|
147
|
+
agents: NSArray<interop.Object> | Array<interop.Object>,
|
|
148
|
+
maxDistance: number,
|
|
149
|
+
maxAngle: number,
|
|
150
|
+
): InstanceType<This>
|
|
151
|
+
|
|
152
|
+
static goalToReachTargetSpeed<This extends abstract new (...args: any) => any>(
|
|
153
|
+
this: This,
|
|
154
|
+
targetSpeed: number,
|
|
155
|
+
): InstanceType<This>
|
|
156
|
+
|
|
157
|
+
static goalToWander<This extends abstract new (...args: any) => any>(
|
|
158
|
+
this: This,
|
|
159
|
+
speed: number,
|
|
160
|
+
): InstanceType<This>
|
|
161
|
+
|
|
162
|
+
static goalToInterceptAgentMaxPredictionTime<This extends abstract new (...args: any) => any>(
|
|
163
|
+
this: This,
|
|
164
|
+
target: GKAgent,
|
|
165
|
+
maxPredictionTime: number,
|
|
166
|
+
): InstanceType<This>
|
|
167
|
+
|
|
168
|
+
static goalToFollowPathMaxPredictionTimeForward<This extends abstract new (...args: any) => any>(
|
|
169
|
+
this: This,
|
|
170
|
+
path: GKPath,
|
|
171
|
+
maxPredictionTime: number,
|
|
172
|
+
forward: boolean,
|
|
173
|
+
): InstanceType<This>
|
|
174
|
+
|
|
175
|
+
static goalToStayOnPathMaxPredictionTime<This extends abstract new (...args: any) => any>(
|
|
176
|
+
this: This,
|
|
177
|
+
path: GKPath,
|
|
178
|
+
maxPredictionTime: number,
|
|
179
|
+
): InstanceType<This>
|
|
180
|
+
|
|
181
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
declare class GKConstantNoiseSource extends GKNoiseSource {
|
|
185
|
+
value: number
|
|
186
|
+
|
|
187
|
+
static constantNoiseWithValue<This extends abstract new (...args: any) => any>(
|
|
188
|
+
this: This,
|
|
189
|
+
value: number,
|
|
190
|
+
): InstanceType<This>
|
|
191
|
+
|
|
192
|
+
initWithValue(value: number): this
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
declare class GKRandomDistribution extends NSObject implements GKRandom {
|
|
196
|
+
readonly lowestValue: number
|
|
197
|
+
|
|
198
|
+
readonly highestValue: number
|
|
199
|
+
|
|
200
|
+
readonly numberOfPossibleOutcomes: number
|
|
201
|
+
|
|
202
|
+
initWithRandomSourceLowestValueHighestValue(
|
|
203
|
+
source: GKRandom,
|
|
204
|
+
lowestInclusive: number,
|
|
205
|
+
highestInclusive: number,
|
|
206
|
+
): this
|
|
207
|
+
|
|
208
|
+
nextInt(): number
|
|
209
|
+
|
|
210
|
+
nextIntWithUpperBound(upperBound: number): number
|
|
211
|
+
|
|
212
|
+
nextUniform(): number
|
|
213
|
+
|
|
214
|
+
nextBool(): boolean
|
|
215
|
+
|
|
216
|
+
static distributionWithLowestValueHighestValue<This extends abstract new (...args: any) => any>(
|
|
217
|
+
this: This,
|
|
218
|
+
lowestInclusive: number,
|
|
219
|
+
highestInclusive: number,
|
|
220
|
+
): InstanceType<This>
|
|
221
|
+
|
|
222
|
+
static distributionForDieWithSideCount<This extends abstract new (...args: any) => any>(
|
|
223
|
+
this: This,
|
|
224
|
+
sideCount: number,
|
|
225
|
+
): InstanceType<This>
|
|
226
|
+
|
|
227
|
+
static d6<This extends abstract new (...args: any) => any>(this: This): InstanceType<This>
|
|
228
|
+
|
|
229
|
+
static d20<This extends abstract new (...args: any) => any>(this: This): InstanceType<This>
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
declare class GKMonteCarloStrategist extends NSObject implements GKStrategist {
|
|
233
|
+
budget: number
|
|
234
|
+
|
|
235
|
+
explorationParameter: number
|
|
236
|
+
|
|
237
|
+
gameModel: GKGameModel
|
|
238
|
+
|
|
239
|
+
randomSource: GKRandom
|
|
240
|
+
|
|
241
|
+
bestMoveForActivePlayer(): GKGameModelUpdate
|
|
242
|
+
|
|
243
|
+
isEqual(object: interop.Object): boolean
|
|
244
|
+
|
|
245
|
+
readonly hash: number
|
|
246
|
+
|
|
247
|
+
readonly superclass: interop.Pointer
|
|
248
|
+
|
|
249
|
+
class(): interop.Pointer
|
|
250
|
+
|
|
251
|
+
self(): this
|
|
252
|
+
|
|
253
|
+
performSelector(aSelector: string): interop.Object
|
|
254
|
+
|
|
255
|
+
performSelectorWithObject(aSelector: string, object: interop.Object): interop.Object
|
|
256
|
+
|
|
257
|
+
performSelectorWithObjectWithObject(
|
|
258
|
+
aSelector: string,
|
|
259
|
+
object1: interop.Object,
|
|
260
|
+
object2: interop.Object,
|
|
261
|
+
): interop.Object
|
|
262
|
+
|
|
263
|
+
readonly isProxy: boolean
|
|
264
|
+
|
|
265
|
+
isKindOfClass(aClass: interop.PointerConvertible): boolean
|
|
266
|
+
|
|
267
|
+
isMemberOfClass(aClass: interop.PointerConvertible): boolean
|
|
268
|
+
|
|
269
|
+
conformsToProtocol(aProtocol: interop.PointerConvertible): boolean
|
|
270
|
+
|
|
271
|
+
respondsToSelector(aSelector: string): boolean
|
|
272
|
+
|
|
273
|
+
retain(): this
|
|
274
|
+
|
|
275
|
+
release(): void
|
|
276
|
+
|
|
277
|
+
autorelease(): this
|
|
278
|
+
|
|
279
|
+
retainCount(): number
|
|
280
|
+
|
|
281
|
+
readonly zone: interop.Pointer
|
|
282
|
+
|
|
283
|
+
readonly description: string
|
|
284
|
+
|
|
285
|
+
readonly debugDescription: string
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
declare class GKComponent extends NSObject implements NSCopying, NSSecureCoding {
|
|
289
|
+
readonly entity: GKEntity
|
|
290
|
+
|
|
291
|
+
updateWithDeltaTime(seconds: number): void
|
|
292
|
+
|
|
293
|
+
didAddToEntity(): void
|
|
294
|
+
|
|
295
|
+
willRemoveFromEntity(): void
|
|
296
|
+
|
|
297
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
298
|
+
|
|
299
|
+
static readonly supportsSecureCoding: boolean
|
|
300
|
+
|
|
301
|
+
encodeWithCoder(coder: NSCoder): void
|
|
302
|
+
|
|
303
|
+
initWithCoder(coder: NSCoder): this
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
declare class GKObstacle extends NSObject {}
|
|
307
|
+
|
|
308
|
+
declare class GKSCNNodeComponent extends GKComponent implements GKAgentDelegate {
|
|
309
|
+
static componentWithNode<This extends abstract new (...args: any) => any>(
|
|
310
|
+
this: This,
|
|
311
|
+
node: SCNNode,
|
|
312
|
+
): InstanceType<This>
|
|
313
|
+
|
|
314
|
+
initWithNode(node: SCNNode): this
|
|
315
|
+
|
|
316
|
+
readonly node: SCNNode
|
|
317
|
+
|
|
318
|
+
agentWillUpdate(agent: GKAgent): void
|
|
319
|
+
|
|
320
|
+
agentDidUpdate(agent: GKAgent): void
|
|
321
|
+
|
|
322
|
+
isEqual(object: interop.Object): boolean
|
|
323
|
+
|
|
324
|
+
readonly hash: number
|
|
325
|
+
|
|
326
|
+
readonly superclass: interop.Pointer
|
|
327
|
+
|
|
328
|
+
class(): interop.Pointer
|
|
329
|
+
|
|
330
|
+
self(): this
|
|
331
|
+
|
|
332
|
+
performSelector(aSelector: string): interop.Object
|
|
333
|
+
|
|
334
|
+
performSelectorWithObject(aSelector: string, object: interop.Object): interop.Object
|
|
335
|
+
|
|
336
|
+
performSelectorWithObjectWithObject(
|
|
337
|
+
aSelector: string,
|
|
338
|
+
object1: interop.Object,
|
|
339
|
+
object2: interop.Object,
|
|
340
|
+
): interop.Object
|
|
341
|
+
|
|
342
|
+
readonly isProxy: boolean
|
|
343
|
+
|
|
344
|
+
isKindOfClass(aClass: interop.PointerConvertible): boolean
|
|
345
|
+
|
|
346
|
+
isMemberOfClass(aClass: interop.PointerConvertible): boolean
|
|
347
|
+
|
|
348
|
+
conformsToProtocol(aProtocol: interop.PointerConvertible): boolean
|
|
349
|
+
|
|
350
|
+
respondsToSelector(aSelector: string): boolean
|
|
351
|
+
|
|
352
|
+
retain(): this
|
|
353
|
+
|
|
354
|
+
release(): void
|
|
355
|
+
|
|
356
|
+
autorelease(): this
|
|
357
|
+
|
|
358
|
+
retainCount(): number
|
|
359
|
+
|
|
360
|
+
readonly zone: interop.Pointer
|
|
361
|
+
|
|
362
|
+
readonly description: string
|
|
363
|
+
|
|
364
|
+
readonly debugDescription: string
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
declare class GKScene extends NSObject implements NSCopying, NSSecureCoding {
|
|
368
|
+
static sceneWithFileNamed<This extends abstract new (...args: any) => any>(
|
|
369
|
+
this: This,
|
|
370
|
+
filename: string,
|
|
371
|
+
): InstanceType<This>
|
|
372
|
+
|
|
373
|
+
static sceneWithFileNamedRootNode<This extends abstract new (...args: any) => any>(
|
|
374
|
+
this: This,
|
|
375
|
+
filename: string,
|
|
376
|
+
rootNode: GKSceneRootNodeType,
|
|
377
|
+
): InstanceType<This>
|
|
378
|
+
|
|
379
|
+
readonly entities: NSArray
|
|
380
|
+
|
|
381
|
+
rootNode: GKSceneRootNodeType
|
|
382
|
+
|
|
383
|
+
readonly graphs: NSDictionary
|
|
384
|
+
|
|
385
|
+
addEntity(entity: GKEntity): void
|
|
386
|
+
|
|
387
|
+
removeEntity(entity: GKEntity): void
|
|
388
|
+
|
|
389
|
+
addGraphName(graph: GKGraph, name: string): void
|
|
390
|
+
|
|
391
|
+
removeGraph(name: string): void
|
|
392
|
+
|
|
393
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
394
|
+
|
|
395
|
+
static readonly supportsSecureCoding: boolean
|
|
396
|
+
|
|
397
|
+
encodeWithCoder(coder: NSCoder): void
|
|
398
|
+
|
|
399
|
+
initWithCoder(coder: NSCoder): this
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
declare class GKStateMachine extends NSObject {
|
|
403
|
+
readonly currentState: GKState
|
|
404
|
+
|
|
405
|
+
static stateMachineWithStates<This extends abstract new (...args: any) => any>(
|
|
406
|
+
this: This,
|
|
407
|
+
states: NSArray<interop.Object> | Array<interop.Object>,
|
|
408
|
+
): InstanceType<This>
|
|
409
|
+
|
|
410
|
+
initWithStates(states: NSArray<interop.Object> | Array<interop.Object>): this
|
|
411
|
+
|
|
412
|
+
updateWithDeltaTime(sec: number): void
|
|
413
|
+
|
|
414
|
+
stateForClass(stateClass: interop.PointerConvertible): GKState
|
|
415
|
+
|
|
416
|
+
canEnterState(stateClass: interop.PointerConvertible): boolean
|
|
417
|
+
|
|
418
|
+
enterState(stateClass: interop.PointerConvertible): boolean
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
declare class GKNSPredicateRule extends GKRule {
|
|
422
|
+
readonly predicate: NSPredicate
|
|
423
|
+
|
|
424
|
+
initWithPredicate(predicate: NSPredicate): this
|
|
425
|
+
|
|
426
|
+
evaluatePredicateWithSystem(system: GKRuleSystem): boolean
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
declare class GKRTree<ElementType = interop.Object> extends NSObject {
|
|
430
|
+
queryReserve: number
|
|
431
|
+
|
|
432
|
+
static treeWithMaxNumberOfChildren<ElementType, This extends abstract new (...args: any) => any>(
|
|
433
|
+
this: This,
|
|
434
|
+
maxNumberOfChildren: number,
|
|
435
|
+
): InstanceType<This>
|
|
436
|
+
|
|
437
|
+
initWithMaxNumberOfChildren(maxNumberOfChildren: number): this
|
|
438
|
+
|
|
439
|
+
addElementBoundingRectMinBoundingRectMaxSplitStrategy(
|
|
440
|
+
element: ElementType,
|
|
441
|
+
boundingRectMin: unknown /* ext vector */,
|
|
442
|
+
boundingRectMax: unknown /* ext vector */,
|
|
443
|
+
splitStrategy: interop.Enum<typeof GKRTreeSplitStrategy>,
|
|
444
|
+
): void
|
|
445
|
+
|
|
446
|
+
removeElementBoundingRectMinBoundingRectMax(
|
|
447
|
+
element: ElementType,
|
|
448
|
+
boundingRectMin: unknown /* ext vector */,
|
|
449
|
+
boundingRectMax: unknown /* ext vector */,
|
|
450
|
+
): void
|
|
451
|
+
|
|
452
|
+
elementsInBoundingRectMinRectMax(
|
|
453
|
+
rectMin: unknown /* ext vector */,
|
|
454
|
+
rectMax: unknown /* ext vector */,
|
|
455
|
+
): NSArray
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
declare class GKGaussianDistribution extends GKRandomDistribution {
|
|
459
|
+
readonly mean: number
|
|
460
|
+
|
|
461
|
+
readonly deviation: number
|
|
462
|
+
|
|
463
|
+
initWithRandomSourceLowestValueHighestValue(
|
|
464
|
+
source: GKRandom,
|
|
465
|
+
lowestInclusive: number,
|
|
466
|
+
highestInclusive: number,
|
|
467
|
+
): this
|
|
468
|
+
|
|
469
|
+
initWithRandomSourceMeanDeviation(source: GKRandom, mean: number, deviation: number): this
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
declare class GKQuadtree<ElementType = interop.Object> extends NSObject {
|
|
473
|
+
static quadtreeWithBoundingQuadMinimumCellSize<
|
|
474
|
+
ElementType,
|
|
475
|
+
This extends abstract new (...args: any) => any,
|
|
476
|
+
>(this: This, quad: GKQuad, minCellSize: number): InstanceType<This>
|
|
477
|
+
|
|
478
|
+
initWithBoundingQuadMinimumCellSize(quad: GKQuad, minCellSize: number): this
|
|
479
|
+
|
|
480
|
+
addElementWithPoint(element: ElementType, point: unknown /* ext vector */): GKQuadtreeNode
|
|
481
|
+
|
|
482
|
+
addElementWithQuad(element: ElementType, quad: GKQuad): GKQuadtreeNode
|
|
483
|
+
|
|
484
|
+
elementsAtPoint(point: unknown /* ext vector */): NSArray
|
|
485
|
+
|
|
486
|
+
elementsInQuad(quad: GKQuad): NSArray
|
|
487
|
+
|
|
488
|
+
removeElement(element: ElementType): boolean
|
|
489
|
+
|
|
490
|
+
removeElementWithNode(data: ElementType, node: GKQuadtreeNode): boolean
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
declare class GKPath extends NSObject {
|
|
494
|
+
radius: number
|
|
495
|
+
|
|
496
|
+
readonly numPoints: number
|
|
497
|
+
|
|
498
|
+
cyclical: boolean
|
|
499
|
+
|
|
500
|
+
static pathWithPointsCountRadiusCyclical<This extends abstract new (...args: any) => any>(
|
|
501
|
+
this: This,
|
|
502
|
+
points: interop.PointerConvertible,
|
|
503
|
+
count: number,
|
|
504
|
+
radius: number,
|
|
505
|
+
cyclical: boolean,
|
|
506
|
+
): InstanceType<This>
|
|
507
|
+
|
|
508
|
+
initWithPointsCountRadiusCyclical(
|
|
509
|
+
points: interop.PointerConvertible,
|
|
510
|
+
count: number,
|
|
511
|
+
radius: number,
|
|
512
|
+
cyclical: boolean,
|
|
513
|
+
): this
|
|
514
|
+
|
|
515
|
+
static pathWithFloat3PointsCountRadiusCyclical<This extends abstract new (...args: any) => any>(
|
|
516
|
+
this: This,
|
|
517
|
+
points: interop.PointerConvertible,
|
|
518
|
+
count: number,
|
|
519
|
+
radius: number,
|
|
520
|
+
cyclical: boolean,
|
|
521
|
+
): InstanceType<This>
|
|
522
|
+
|
|
523
|
+
initWithFloat3PointsCountRadiusCyclical(
|
|
524
|
+
points: interop.PointerConvertible,
|
|
525
|
+
count: number,
|
|
526
|
+
radius: number,
|
|
527
|
+
cyclical: boolean,
|
|
528
|
+
): this
|
|
529
|
+
|
|
530
|
+
static pathWithGraphNodesRadius<This extends abstract new (...args: any) => any>(
|
|
531
|
+
this: This,
|
|
532
|
+
graphNodes: NSArray<interop.Object> | Array<interop.Object>,
|
|
533
|
+
radius: number,
|
|
534
|
+
): InstanceType<This>
|
|
535
|
+
|
|
536
|
+
initWithGraphNodesRadius(
|
|
537
|
+
graphNodes: NSArray<interop.Object> | Array<interop.Object>,
|
|
538
|
+
radius: number,
|
|
539
|
+
): this
|
|
540
|
+
|
|
541
|
+
pointAtIndex(index: number): unknown /* ext vector */
|
|
542
|
+
|
|
543
|
+
float2AtIndex(index: number): unknown /* ext vector */
|
|
544
|
+
|
|
545
|
+
float3AtIndex(index: number): unknown /* ext vector */
|
|
546
|
+
|
|
547
|
+
isCyclical(): boolean
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
declare class GKOctree<ElementType = interop.Object> extends NSObject {
|
|
551
|
+
static octreeWithBoundingBoxMinimumCellSize<
|
|
552
|
+
ElementType,
|
|
553
|
+
This extends abstract new (...args: any) => any,
|
|
554
|
+
>(this: This, box: GKBox, minCellSize: number): InstanceType<This>
|
|
555
|
+
|
|
556
|
+
initWithBoundingBoxMinimumCellSize(box: GKBox, minCellSize: number): this
|
|
557
|
+
|
|
558
|
+
addElementWithPoint(element: ElementType, point: unknown /* ext vector */): GKOctreeNode
|
|
559
|
+
|
|
560
|
+
addElementWithBox(element: ElementType, box: GKBox): GKOctreeNode
|
|
561
|
+
|
|
562
|
+
elementsAtPoint(point: unknown /* ext vector */): NSArray
|
|
563
|
+
|
|
564
|
+
elementsInBox(box: GKBox): NSArray
|
|
565
|
+
|
|
566
|
+
removeElement(element: ElementType): boolean
|
|
567
|
+
|
|
568
|
+
removeElementWithNode(element: ElementType, node: GKOctreeNode): boolean
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
declare class GKOctreeNode extends NSObject {
|
|
572
|
+
readonly box: GKBox
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
declare class GKCheckerboardNoiseSource extends GKNoiseSource {
|
|
576
|
+
squareSize: number
|
|
577
|
+
|
|
578
|
+
static checkerboardNoiseWithSquareSize<This extends abstract new (...args: any) => any>(
|
|
579
|
+
this: This,
|
|
580
|
+
squareSize: number,
|
|
581
|
+
): InstanceType<This>
|
|
582
|
+
|
|
583
|
+
initWithSquareSize(squareSize: number): this
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
declare class GKSpheresNoiseSource extends GKNoiseSource {
|
|
587
|
+
frequency: number
|
|
588
|
+
|
|
589
|
+
static spheresNoiseWithFrequency<This extends abstract new (...args: any) => any>(
|
|
590
|
+
this: This,
|
|
591
|
+
frequency: number,
|
|
592
|
+
): InstanceType<This>
|
|
593
|
+
|
|
594
|
+
initWithFrequency(frequency: number): this
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
declare class GKNoiseMap extends NSObject {
|
|
598
|
+
readonly size: unknown /* ext vector */
|
|
599
|
+
|
|
600
|
+
readonly origin: unknown /* ext vector */
|
|
601
|
+
|
|
602
|
+
readonly sampleCount: unknown /* ext vector */
|
|
603
|
+
|
|
604
|
+
readonly seamless: boolean
|
|
605
|
+
|
|
606
|
+
init(): this
|
|
607
|
+
|
|
608
|
+
static noiseMapWithNoise<This extends abstract new (...args: any) => any>(
|
|
609
|
+
this: This,
|
|
610
|
+
noise: GKNoise,
|
|
611
|
+
): InstanceType<This>
|
|
612
|
+
|
|
613
|
+
static noiseMapWithNoiseSizeOriginSampleCountSeamless<
|
|
614
|
+
This extends abstract new (...args: any) => any,
|
|
615
|
+
>(
|
|
616
|
+
this: This,
|
|
617
|
+
noise: GKNoise,
|
|
618
|
+
size: unknown /* ext vector */,
|
|
619
|
+
origin: unknown /* ext vector */,
|
|
620
|
+
sampleCount: unknown /* ext vector */,
|
|
621
|
+
seamless: boolean,
|
|
622
|
+
): InstanceType<This>
|
|
623
|
+
|
|
624
|
+
initWithNoise(noise: GKNoise): this
|
|
625
|
+
|
|
626
|
+
initWithNoiseSizeOriginSampleCountSeamless(
|
|
627
|
+
noise: GKNoise,
|
|
628
|
+
size: unknown /* ext vector */,
|
|
629
|
+
origin: unknown /* ext vector */,
|
|
630
|
+
sampleCount: unknown /* ext vector */,
|
|
631
|
+
seamless: boolean,
|
|
632
|
+
): this
|
|
633
|
+
|
|
634
|
+
valueAtPosition(position: unknown /* ext vector */): number
|
|
635
|
+
|
|
636
|
+
interpolatedValueAtPosition(position: unknown /* ext vector */): number
|
|
637
|
+
|
|
638
|
+
setValueAtPosition(value: number, position: unknown /* ext vector */): void
|
|
639
|
+
|
|
640
|
+
isSeamless(): boolean
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
declare class GKCylindersNoiseSource extends GKNoiseSource {
|
|
644
|
+
frequency: number
|
|
645
|
+
|
|
646
|
+
static cylindersNoiseWithFrequency<This extends abstract new (...args: any) => any>(
|
|
647
|
+
this: This,
|
|
648
|
+
frequency: number,
|
|
649
|
+
): InstanceType<This>
|
|
650
|
+
|
|
651
|
+
initWithFrequency(frequency: number): this
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
declare class GKRidgedNoiseSource extends GKCoherentNoiseSource {
|
|
655
|
+
static ridgedNoiseSourceWithFrequencyOctaveCountLacunaritySeed<
|
|
656
|
+
This extends abstract new (...args: any) => any,
|
|
657
|
+
>(
|
|
658
|
+
this: This,
|
|
659
|
+
frequency: number,
|
|
660
|
+
octaveCount: number,
|
|
661
|
+
lacunarity: number,
|
|
662
|
+
seed: number,
|
|
663
|
+
): InstanceType<This>
|
|
664
|
+
|
|
665
|
+
initWithFrequencyOctaveCountLacunaritySeed(
|
|
666
|
+
frequency: number,
|
|
667
|
+
octaveCount: number,
|
|
668
|
+
lacunarity: number,
|
|
669
|
+
seed: number,
|
|
670
|
+
): this
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
declare class GKPerlinNoiseSource extends GKCoherentNoiseSource {
|
|
674
|
+
persistence: number
|
|
675
|
+
|
|
676
|
+
static perlinNoiseSourceWithFrequencyOctaveCountPersistenceLacunaritySeed<
|
|
677
|
+
This extends abstract new (...args: any) => any,
|
|
678
|
+
>(
|
|
679
|
+
this: This,
|
|
680
|
+
frequency: number,
|
|
681
|
+
octaveCount: number,
|
|
682
|
+
persistence: number,
|
|
683
|
+
lacunarity: number,
|
|
684
|
+
seed: number,
|
|
685
|
+
): InstanceType<This>
|
|
686
|
+
|
|
687
|
+
initWithFrequencyOctaveCountPersistenceLacunaritySeed(
|
|
688
|
+
frequency: number,
|
|
689
|
+
octaveCount: number,
|
|
690
|
+
persistence: number,
|
|
691
|
+
lacunarity: number,
|
|
692
|
+
seed: number,
|
|
693
|
+
): this
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
declare class GKMinmaxStrategist extends NSObject implements GKStrategist {
|
|
697
|
+
maxLookAheadDepth: number
|
|
698
|
+
|
|
699
|
+
bestMoveForPlayer(player: GKGameModelPlayer): GKGameModelUpdate
|
|
700
|
+
|
|
701
|
+
randomMoveForPlayerFromNumberOfBestMoves(
|
|
702
|
+
player: GKGameModelPlayer,
|
|
703
|
+
numMovesToConsider: number,
|
|
704
|
+
): GKGameModelUpdate
|
|
705
|
+
|
|
706
|
+
gameModel: GKGameModel
|
|
707
|
+
|
|
708
|
+
randomSource: GKRandom
|
|
709
|
+
|
|
710
|
+
bestMoveForActivePlayer(): GKGameModelUpdate
|
|
711
|
+
|
|
712
|
+
isEqual(object: interop.Object): boolean
|
|
713
|
+
|
|
714
|
+
readonly hash: number
|
|
715
|
+
|
|
716
|
+
readonly superclass: interop.Pointer
|
|
717
|
+
|
|
718
|
+
class(): interop.Pointer
|
|
719
|
+
|
|
720
|
+
self(): this
|
|
721
|
+
|
|
722
|
+
performSelector(aSelector: string): interop.Object
|
|
723
|
+
|
|
724
|
+
performSelectorWithObject(aSelector: string, object: interop.Object): interop.Object
|
|
725
|
+
|
|
726
|
+
performSelectorWithObjectWithObject(
|
|
727
|
+
aSelector: string,
|
|
728
|
+
object1: interop.Object,
|
|
729
|
+
object2: interop.Object,
|
|
730
|
+
): interop.Object
|
|
731
|
+
|
|
732
|
+
readonly isProxy: boolean
|
|
733
|
+
|
|
734
|
+
isKindOfClass(aClass: interop.PointerConvertible): boolean
|
|
735
|
+
|
|
736
|
+
isMemberOfClass(aClass: interop.PointerConvertible): boolean
|
|
737
|
+
|
|
738
|
+
conformsToProtocol(aProtocol: interop.PointerConvertible): boolean
|
|
739
|
+
|
|
740
|
+
respondsToSelector(aSelector: string): boolean
|
|
741
|
+
|
|
742
|
+
retain(): this
|
|
743
|
+
|
|
744
|
+
release(): void
|
|
745
|
+
|
|
746
|
+
autorelease(): this
|
|
747
|
+
|
|
748
|
+
retainCount(): number
|
|
749
|
+
|
|
750
|
+
readonly zone: interop.Pointer
|
|
751
|
+
|
|
752
|
+
readonly description: string
|
|
753
|
+
|
|
754
|
+
readonly debugDescription: string
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
declare class GKMeshGraph<NodeType = interop.Object> extends GKGraph {
|
|
758
|
+
readonly obstacles: NSArray
|
|
759
|
+
|
|
760
|
+
readonly bufferRadius: number
|
|
761
|
+
|
|
762
|
+
triangulationMode: interop.Enum<typeof GKMeshGraphTriangulationMode>
|
|
763
|
+
|
|
764
|
+
readonly triangleCount: number
|
|
765
|
+
|
|
766
|
+
static graphWithBufferRadiusMinCoordinateMaxCoordinateNodeClass<
|
|
767
|
+
NodeType,
|
|
768
|
+
This extends abstract new (...args: any) => any,
|
|
769
|
+
>(
|
|
770
|
+
this: This,
|
|
771
|
+
bufferRadius: number,
|
|
772
|
+
min: unknown /* ext vector */,
|
|
773
|
+
max: unknown /* ext vector */,
|
|
774
|
+
nodeClass: interop.PointerConvertible,
|
|
775
|
+
): InstanceType<This>
|
|
776
|
+
|
|
777
|
+
initWithBufferRadiusMinCoordinateMaxCoordinateNodeClass(
|
|
778
|
+
bufferRadius: number,
|
|
779
|
+
min: unknown /* ext vector */,
|
|
780
|
+
max: unknown /* ext vector */,
|
|
781
|
+
nodeClass: interop.PointerConvertible,
|
|
782
|
+
): this
|
|
783
|
+
|
|
784
|
+
static graphWithBufferRadiusMinCoordinateMaxCoordinate<
|
|
785
|
+
NodeType,
|
|
786
|
+
This extends abstract new (...args: any) => any,
|
|
787
|
+
>(
|
|
788
|
+
this: This,
|
|
789
|
+
bufferRadius: number,
|
|
790
|
+
min: unknown /* ext vector */,
|
|
791
|
+
max: unknown /* ext vector */,
|
|
792
|
+
): InstanceType<This>
|
|
793
|
+
|
|
794
|
+
initWithBufferRadiusMinCoordinateMaxCoordinate(
|
|
795
|
+
bufferRadius: number,
|
|
796
|
+
min: unknown /* ext vector */,
|
|
797
|
+
max: unknown /* ext vector */,
|
|
798
|
+
): this
|
|
799
|
+
|
|
800
|
+
addObstacles(obstacles: NSArray<interop.Object> | Array<interop.Object>): void
|
|
801
|
+
|
|
802
|
+
removeObstacles(obstacles: NSArray<interop.Object> | Array<interop.Object>): void
|
|
803
|
+
|
|
804
|
+
connectNodeUsingObstacles(node: NodeType): void
|
|
805
|
+
|
|
806
|
+
triangulate(): void
|
|
807
|
+
|
|
808
|
+
triangleAtIndex(index: number): GKTriangle
|
|
809
|
+
|
|
810
|
+
classForGenericArgumentAtIndex(index: number): interop.Pointer
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
declare class GKGridGraphNode extends GKGraphNode {
|
|
814
|
+
readonly gridPosition: unknown /* ext vector */
|
|
815
|
+
|
|
816
|
+
static nodeWithGridPosition<This extends abstract new (...args: any) => any>(
|
|
817
|
+
this: This,
|
|
818
|
+
gridPosition: unknown /* ext vector */,
|
|
819
|
+
): InstanceType<This>
|
|
820
|
+
|
|
821
|
+
initWithGridPosition(gridPosition: unknown /* ext vector */): this
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
declare class GKGraphNode2D extends GKGraphNode {
|
|
825
|
+
position: unknown /* ext vector */
|
|
826
|
+
|
|
827
|
+
static nodeWithPoint<This extends abstract new (...args: any) => any>(
|
|
828
|
+
this: This,
|
|
829
|
+
point: unknown /* ext vector */,
|
|
830
|
+
): InstanceType<This>
|
|
831
|
+
|
|
832
|
+
initWithPoint(point: unknown /* ext vector */): this
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
declare class GKGraphNode extends NSObject implements NSSecureCoding {
|
|
836
|
+
readonly connectedNodes: NSArray
|
|
837
|
+
|
|
838
|
+
addConnectionsToNodesBidirectional(
|
|
839
|
+
nodes: NSArray<interop.Object> | Array<interop.Object>,
|
|
840
|
+
bidirectional: boolean,
|
|
841
|
+
): void
|
|
842
|
+
|
|
843
|
+
removeConnectionsToNodesBidirectional(
|
|
844
|
+
nodes: NSArray<interop.Object> | Array<interop.Object>,
|
|
845
|
+
bidirectional: boolean,
|
|
846
|
+
): void
|
|
847
|
+
|
|
848
|
+
estimatedCostToNode(node: GKGraphNode): number
|
|
849
|
+
|
|
850
|
+
costToNode(node: GKGraphNode): number
|
|
851
|
+
|
|
852
|
+
findPathToNode(goalNode: GKGraphNode): NSArray
|
|
853
|
+
|
|
854
|
+
findPathFromNode(startNode: GKGraphNode): NSArray
|
|
855
|
+
|
|
856
|
+
static readonly supportsSecureCoding: boolean
|
|
857
|
+
|
|
858
|
+
encodeWithCoder(coder: NSCoder): void
|
|
859
|
+
|
|
860
|
+
initWithCoder(coder: NSCoder): this
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
declare class GKGraph extends NSObject implements NSCopying, NSSecureCoding {
|
|
864
|
+
readonly nodes: NSArray
|
|
865
|
+
|
|
866
|
+
static graphWithNodes<This extends abstract new (...args: any) => any>(
|
|
867
|
+
this: This,
|
|
868
|
+
nodes: NSArray<interop.Object> | Array<interop.Object>,
|
|
869
|
+
): InstanceType<This>
|
|
870
|
+
|
|
871
|
+
initWithNodes(nodes: NSArray<interop.Object> | Array<interop.Object>): this
|
|
872
|
+
|
|
873
|
+
connectNodeToLowestCostNodeBidirectional(node: GKGraphNode, bidirectional: boolean): void
|
|
874
|
+
|
|
875
|
+
removeNodes(nodes: NSArray<interop.Object> | Array<interop.Object>): void
|
|
876
|
+
|
|
877
|
+
addNodes(nodes: NSArray<interop.Object> | Array<interop.Object>): void
|
|
878
|
+
|
|
879
|
+
findPathFromNodeToNode(startNode: GKGraphNode, endNode: GKGraphNode): NSArray
|
|
880
|
+
|
|
881
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
882
|
+
|
|
883
|
+
static readonly supportsSecureCoding: boolean
|
|
884
|
+
|
|
885
|
+
encodeWithCoder(coder: NSCoder): void
|
|
886
|
+
|
|
887
|
+
initWithCoder(coder: NSCoder): this
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
declare class GKEntity extends NSObject implements NSCopying, NSSecureCoding {
|
|
891
|
+
static entity<This extends abstract new (...args: any) => any>(this: This): InstanceType<This>
|
|
892
|
+
|
|
893
|
+
init(): this
|
|
894
|
+
|
|
895
|
+
updateWithDeltaTime(seconds: number): void
|
|
896
|
+
|
|
897
|
+
readonly components: NSArray
|
|
898
|
+
|
|
899
|
+
addComponent(component: GKComponent): void
|
|
900
|
+
|
|
901
|
+
removeComponentForClass(componentClass: interop.PointerConvertible): void
|
|
902
|
+
|
|
903
|
+
componentForClass(componentClass: interop.PointerConvertible): GKComponent
|
|
904
|
+
|
|
905
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
906
|
+
|
|
907
|
+
static readonly supportsSecureCoding: boolean
|
|
908
|
+
|
|
909
|
+
encodeWithCoder(coder: NSCoder): void
|
|
910
|
+
|
|
911
|
+
initWithCoder(coder: NSCoder): this
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
declare class GKAgent3D extends GKAgent {
|
|
915
|
+
position: unknown /* ext vector */
|
|
916
|
+
|
|
917
|
+
readonly velocity: unknown /* ext vector */
|
|
918
|
+
|
|
919
|
+
rightHanded: boolean
|
|
920
|
+
|
|
921
|
+
rotation: simd_float3x3
|
|
922
|
+
|
|
923
|
+
updateWithDeltaTime(seconds: number): void
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
declare class GKAgent2D extends GKAgent implements NSSecureCoding {
|
|
927
|
+
position: unknown /* ext vector */
|
|
928
|
+
|
|
929
|
+
readonly velocity: unknown /* ext vector */
|
|
930
|
+
|
|
931
|
+
rotation: number
|
|
932
|
+
|
|
933
|
+
updateWithDeltaTime(seconds: number): void
|
|
934
|
+
|
|
935
|
+
static readonly supportsSecureCoding: boolean
|
|
936
|
+
|
|
937
|
+
encodeWithCoder(coder: NSCoder): void
|
|
938
|
+
|
|
939
|
+
initWithCoder(coder: NSCoder): this
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
declare class GKBehavior extends NSObject implements NSFastEnumeration, NSCopying {
|
|
943
|
+
readonly goalCount: number
|
|
944
|
+
|
|
945
|
+
static behaviorWithGoalWeight<This extends abstract new (...args: any) => any>(
|
|
946
|
+
this: This,
|
|
947
|
+
goal: GKGoal,
|
|
948
|
+
weight: number,
|
|
949
|
+
): InstanceType<This>
|
|
950
|
+
|
|
951
|
+
static behaviorWithGoals<This extends abstract new (...args: any) => any>(
|
|
952
|
+
this: This,
|
|
953
|
+
goals: NSArray<interop.Object> | Array<interop.Object>,
|
|
954
|
+
): InstanceType<This>
|
|
955
|
+
|
|
956
|
+
static behaviorWithGoalsAndWeights<This extends abstract new (...args: any) => any>(
|
|
957
|
+
this: This,
|
|
958
|
+
goals: NSArray<interop.Object> | Array<interop.Object>,
|
|
959
|
+
weights: NSArray<interop.Object> | Array<interop.Object>,
|
|
960
|
+
): InstanceType<This>
|
|
961
|
+
|
|
962
|
+
static behaviorWithWeightedGoals<This extends abstract new (...args: any) => any>(
|
|
963
|
+
this: This,
|
|
964
|
+
weightedGoals:
|
|
965
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
966
|
+
| Record<interop.Object, interop.Object>,
|
|
967
|
+
): InstanceType<This>
|
|
968
|
+
|
|
969
|
+
setWeightForGoal(weight: number, goal: GKGoal): void
|
|
970
|
+
|
|
971
|
+
weightForGoal(goal: GKGoal): number
|
|
972
|
+
|
|
973
|
+
removeGoal(goal: GKGoal): void
|
|
974
|
+
|
|
975
|
+
removeAllGoals(): void
|
|
976
|
+
|
|
977
|
+
objectAtIndexedSubscript(idx: number): GKGoal
|
|
978
|
+
|
|
979
|
+
setObjectForKeyedSubscript(weight: NSNumber, goal: GKGoal): void
|
|
980
|
+
|
|
981
|
+
objectForKeyedSubscript(goal: GKGoal): NSNumber
|
|
982
|
+
|
|
983
|
+
countByEnumeratingWithStateObjectsCount(
|
|
984
|
+
state: interop.PointerConvertible,
|
|
985
|
+
buffer: interop.PointerConvertible,
|
|
986
|
+
len: number,
|
|
987
|
+
): number
|
|
988
|
+
|
|
989
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
990
|
+
|
|
991
|
+
readonly [Symbol.iterator]: () => Iterator<any>
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
declare class GKSphereObstacle extends GKObstacle {
|
|
995
|
+
radius: number
|
|
996
|
+
|
|
997
|
+
position: unknown /* ext vector */
|
|
998
|
+
|
|
999
|
+
static obstacleWithRadius<This extends abstract new (...args: any) => any>(
|
|
1000
|
+
this: This,
|
|
1001
|
+
radius: number,
|
|
1002
|
+
): InstanceType<This>
|
|
1003
|
+
|
|
1004
|
+
initWithRadius(radius: number): this
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
declare class GKPolygonObstacle extends GKObstacle implements NSSecureCoding {
|
|
1008
|
+
readonly vertexCount: number
|
|
1009
|
+
|
|
1010
|
+
static obstacleWithPointsCount<This extends abstract new (...args: any) => any>(
|
|
1011
|
+
this: This,
|
|
1012
|
+
points: interop.PointerConvertible,
|
|
1013
|
+
numPoints: number,
|
|
1014
|
+
): InstanceType<This>
|
|
1015
|
+
|
|
1016
|
+
initWithPointsCount(points: interop.PointerConvertible, numPoints: number): this
|
|
1017
|
+
|
|
1018
|
+
vertexAtIndex(index: number): unknown /* ext vector */
|
|
1019
|
+
|
|
1020
|
+
static readonly supportsSecureCoding: boolean
|
|
1021
|
+
|
|
1022
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1023
|
+
|
|
1024
|
+
initWithCoder(coder: NSCoder): this
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
declare class GKQuadtreeNode extends NSObject {
|
|
1028
|
+
readonly quad: GKQuad
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
declare class GKSKNodeComponent extends GKComponent implements GKAgentDelegate {
|
|
1032
|
+
static componentWithNode<This extends abstract new (...args: any) => any>(
|
|
1033
|
+
this: This,
|
|
1034
|
+
node: SKNode,
|
|
1035
|
+
): InstanceType<This>
|
|
1036
|
+
|
|
1037
|
+
initWithNode(node: SKNode): this
|
|
1038
|
+
|
|
1039
|
+
node: SKNode
|
|
1040
|
+
|
|
1041
|
+
agentWillUpdate(agent: GKAgent): void
|
|
1042
|
+
|
|
1043
|
+
agentDidUpdate(agent: GKAgent): void
|
|
1044
|
+
|
|
1045
|
+
isEqual(object: interop.Object): boolean
|
|
1046
|
+
|
|
1047
|
+
readonly hash: number
|
|
1048
|
+
|
|
1049
|
+
readonly superclass: interop.Pointer
|
|
1050
|
+
|
|
1051
|
+
class(): interop.Pointer
|
|
1052
|
+
|
|
1053
|
+
self(): this
|
|
1054
|
+
|
|
1055
|
+
performSelector(aSelector: string): interop.Object
|
|
1056
|
+
|
|
1057
|
+
performSelectorWithObject(aSelector: string, object: interop.Object): interop.Object
|
|
1058
|
+
|
|
1059
|
+
performSelectorWithObjectWithObject(
|
|
1060
|
+
aSelector: string,
|
|
1061
|
+
object1: interop.Object,
|
|
1062
|
+
object2: interop.Object,
|
|
1063
|
+
): interop.Object
|
|
1064
|
+
|
|
1065
|
+
readonly isProxy: boolean
|
|
1066
|
+
|
|
1067
|
+
isKindOfClass(aClass: interop.PointerConvertible): boolean
|
|
1068
|
+
|
|
1069
|
+
isMemberOfClass(aClass: interop.PointerConvertible): boolean
|
|
1070
|
+
|
|
1071
|
+
conformsToProtocol(aProtocol: interop.PointerConvertible): boolean
|
|
1072
|
+
|
|
1073
|
+
respondsToSelector(aSelector: string): boolean
|
|
1074
|
+
|
|
1075
|
+
retain(): this
|
|
1076
|
+
|
|
1077
|
+
release(): void
|
|
1078
|
+
|
|
1079
|
+
autorelease(): this
|
|
1080
|
+
|
|
1081
|
+
retainCount(): number
|
|
1082
|
+
|
|
1083
|
+
readonly zone: interop.Pointer
|
|
1084
|
+
|
|
1085
|
+
readonly description: string
|
|
1086
|
+
|
|
1087
|
+
readonly debugDescription: string
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
declare class GKMersenneTwisterRandomSource extends GKRandomSource {
|
|
1091
|
+
seed: number
|
|
1092
|
+
|
|
1093
|
+
init(): this
|
|
1094
|
+
|
|
1095
|
+
initWithSeed(seed: number): this
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
declare class GKDecisionTree extends NSObject implements NSSecureCoding {
|
|
1099
|
+
readonly rootNode: GKDecisionNode
|
|
1100
|
+
|
|
1101
|
+
randomSource: GKRandomSource
|
|
1102
|
+
|
|
1103
|
+
initWithAttribute(attribute: NSObject): this
|
|
1104
|
+
|
|
1105
|
+
initWithExamplesActionsAttributes(
|
|
1106
|
+
examples: NSArray<interop.Object> | Array<interop.Object>,
|
|
1107
|
+
actions: NSArray<interop.Object> | Array<interop.Object>,
|
|
1108
|
+
attributes: NSArray<interop.Object> | Array<interop.Object>,
|
|
1109
|
+
): this
|
|
1110
|
+
|
|
1111
|
+
initWithURLError(url: NSURL, error: NSError | null): this
|
|
1112
|
+
|
|
1113
|
+
exportToURLError(url: NSURL, error: NSError | null): boolean
|
|
1114
|
+
|
|
1115
|
+
findActionForAnswers(
|
|
1116
|
+
answers: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1117
|
+
): NSObject
|
|
1118
|
+
|
|
1119
|
+
static readonly supportsSecureCoding: boolean
|
|
1120
|
+
|
|
1121
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1122
|
+
|
|
1123
|
+
initWithCoder(coder: NSCoder): this
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
declare class GKRule extends NSObject {
|
|
1127
|
+
salience: number
|
|
1128
|
+
|
|
1129
|
+
evaluatePredicateWithSystem(system: GKRuleSystem): boolean
|
|
1130
|
+
|
|
1131
|
+
performActionWithSystem(system: GKRuleSystem): void
|
|
1132
|
+
|
|
1133
|
+
static ruleWithPredicateAssertingFactGrade<This extends abstract new (...args: any) => any>(
|
|
1134
|
+
this: This,
|
|
1135
|
+
predicate: NSPredicate,
|
|
1136
|
+
fact: NSObject,
|
|
1137
|
+
grade: number,
|
|
1138
|
+
): InstanceType<This>
|
|
1139
|
+
|
|
1140
|
+
static ruleWithPredicateRetractingFactGrade<This extends abstract new (...args: any) => any>(
|
|
1141
|
+
this: This,
|
|
1142
|
+
predicate: NSPredicate,
|
|
1143
|
+
fact: NSObject,
|
|
1144
|
+
grade: number,
|
|
1145
|
+
): InstanceType<This>
|
|
1146
|
+
|
|
1147
|
+
static ruleWithBlockPredicateAction<This extends abstract new (...args: any) => any>(
|
|
1148
|
+
this: This,
|
|
1149
|
+
predicate: (p1: GKRuleSystem) => boolean,
|
|
1150
|
+
action: (p1: GKRuleSystem) => void,
|
|
1151
|
+
): InstanceType<This>
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
declare class GKComponentSystem<ComponentType = interop.Object>
|
|
1155
|
+
extends NSObject
|
|
1156
|
+
implements NSFastEnumeration
|
|
1157
|
+
{
|
|
1158
|
+
readonly componentClass: interop.Pointer
|
|
1159
|
+
|
|
1160
|
+
readonly components: NSArray
|
|
1161
|
+
|
|
1162
|
+
objectAtIndexedSubscript(idx: number): ComponentType
|
|
1163
|
+
|
|
1164
|
+
initWithComponentClass(cls: interop.PointerConvertible): this
|
|
1165
|
+
|
|
1166
|
+
addComponent(component: ComponentType): void
|
|
1167
|
+
|
|
1168
|
+
addComponentWithEntity(entity: GKEntity): void
|
|
1169
|
+
|
|
1170
|
+
removeComponentWithEntity(entity: GKEntity): void
|
|
1171
|
+
|
|
1172
|
+
removeComponent(component: ComponentType): void
|
|
1173
|
+
|
|
1174
|
+
updateWithDeltaTime(seconds: number): void
|
|
1175
|
+
|
|
1176
|
+
classForGenericArgumentAtIndex(index: number): interop.Pointer
|
|
1177
|
+
|
|
1178
|
+
countByEnumeratingWithStateObjectsCount(
|
|
1179
|
+
state: interop.PointerConvertible,
|
|
1180
|
+
buffer: interop.PointerConvertible,
|
|
1181
|
+
len: number,
|
|
1182
|
+
): number
|
|
1183
|
+
|
|
1184
|
+
readonly [Symbol.iterator]: () => Iterator<ComponentType>
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
declare class GKRuleSystem extends NSObject {
|
|
1188
|
+
init(): this
|
|
1189
|
+
|
|
1190
|
+
evaluate(): void
|
|
1191
|
+
|
|
1192
|
+
readonly state: NSMutableDictionary
|
|
1193
|
+
|
|
1194
|
+
readonly rules: NSArray
|
|
1195
|
+
|
|
1196
|
+
addRule(rule: GKRule): void
|
|
1197
|
+
|
|
1198
|
+
addRulesFromArray(rules: NSArray<interop.Object> | Array<interop.Object>): void
|
|
1199
|
+
|
|
1200
|
+
removeAllRules(): void
|
|
1201
|
+
|
|
1202
|
+
readonly agenda: NSArray
|
|
1203
|
+
|
|
1204
|
+
readonly executed: NSArray
|
|
1205
|
+
|
|
1206
|
+
readonly facts: NSArray
|
|
1207
|
+
|
|
1208
|
+
gradeForFact(fact: NSObject): number
|
|
1209
|
+
|
|
1210
|
+
minimumGradeForFacts(facts: NSArray<interop.Object> | Array<interop.Object>): number
|
|
1211
|
+
|
|
1212
|
+
maximumGradeForFacts(facts: NSArray<interop.Object> | Array<interop.Object>): number
|
|
1213
|
+
|
|
1214
|
+
assertFact(fact: NSObject): void
|
|
1215
|
+
|
|
1216
|
+
assertFactGrade(fact: NSObject, grade: number): void
|
|
1217
|
+
|
|
1218
|
+
retractFact(fact: NSObject): void
|
|
1219
|
+
|
|
1220
|
+
retractFactGrade(fact: NSObject, grade: number): void
|
|
1221
|
+
|
|
1222
|
+
reset(): void
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
declare class GKARC4RandomSource extends GKRandomSource {
|
|
1226
|
+
seed: NSData
|
|
1227
|
+
|
|
1228
|
+
init(): this
|
|
1229
|
+
|
|
1230
|
+
initWithSeed(seed: NSData): this
|
|
1231
|
+
|
|
1232
|
+
dropValuesWithCount(count: number): void
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
declare class GKState extends NSObject {
|
|
1236
|
+
readonly stateMachine: GKStateMachine
|
|
1237
|
+
|
|
1238
|
+
static state<This extends abstract new (...args: any) => any>(this: This): InstanceType<This>
|
|
1239
|
+
|
|
1240
|
+
init(): this
|
|
1241
|
+
|
|
1242
|
+
isValidNextState(stateClass: interop.PointerConvertible): boolean
|
|
1243
|
+
|
|
1244
|
+
didEnterWithPreviousState(previousState: GKState | null): void
|
|
1245
|
+
|
|
1246
|
+
updateWithDeltaTime(seconds: number): void
|
|
1247
|
+
|
|
1248
|
+
willExitWithNextState(nextState: GKState): void
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
declare class GKCircleObstacle extends GKObstacle {
|
|
1252
|
+
radius: number
|
|
1253
|
+
|
|
1254
|
+
position: unknown /* ext vector */
|
|
1255
|
+
|
|
1256
|
+
static obstacleWithRadius<This extends abstract new (...args: any) => any>(
|
|
1257
|
+
this: This,
|
|
1258
|
+
radius: number,
|
|
1259
|
+
): InstanceType<This>
|
|
1260
|
+
|
|
1261
|
+
initWithRadius(radius: number): this
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
declare class GKLinearCongruentialRandomSource extends GKRandomSource {
|
|
1265
|
+
seed: number
|
|
1266
|
+
|
|
1267
|
+
init(): this
|
|
1268
|
+
|
|
1269
|
+
initWithSeed(seed: number): this
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
declare class GKGridGraph<NodeType = interop.Object> extends GKGraph {
|
|
1273
|
+
readonly gridOrigin: unknown /* ext vector */
|
|
1274
|
+
|
|
1275
|
+
readonly gridWidth: number
|
|
1276
|
+
|
|
1277
|
+
readonly gridHeight: number
|
|
1278
|
+
|
|
1279
|
+
readonly diagonalsAllowed: boolean
|
|
1280
|
+
|
|
1281
|
+
static graphFromGridStartingAtWidthHeightDiagonalsAllowed<
|
|
1282
|
+
NodeType,
|
|
1283
|
+
This extends abstract new (...args: any) => any,
|
|
1284
|
+
>(
|
|
1285
|
+
this: This,
|
|
1286
|
+
position: unknown /* ext vector */,
|
|
1287
|
+
width: number,
|
|
1288
|
+
height: number,
|
|
1289
|
+
diagonalsAllowed: boolean,
|
|
1290
|
+
): InstanceType<This>
|
|
1291
|
+
|
|
1292
|
+
initFromGridStartingAtWidthHeightDiagonalsAllowed(
|
|
1293
|
+
position: unknown /* ext vector */,
|
|
1294
|
+
width: number,
|
|
1295
|
+
height: number,
|
|
1296
|
+
diagonalsAllowed: boolean,
|
|
1297
|
+
): this
|
|
1298
|
+
|
|
1299
|
+
static graphFromGridStartingAtWidthHeightDiagonalsAllowedNodeClass<
|
|
1300
|
+
NodeType,
|
|
1301
|
+
This extends abstract new (...args: any) => any,
|
|
1302
|
+
>(
|
|
1303
|
+
this: This,
|
|
1304
|
+
position: unknown /* ext vector */,
|
|
1305
|
+
width: number,
|
|
1306
|
+
height: number,
|
|
1307
|
+
diagonalsAllowed: boolean,
|
|
1308
|
+
nodeClass: interop.PointerConvertible,
|
|
1309
|
+
): InstanceType<This>
|
|
1310
|
+
|
|
1311
|
+
initFromGridStartingAtWidthHeightDiagonalsAllowedNodeClass(
|
|
1312
|
+
position: unknown /* ext vector */,
|
|
1313
|
+
width: number,
|
|
1314
|
+
height: number,
|
|
1315
|
+
diagonalsAllowed: boolean,
|
|
1316
|
+
nodeClass: interop.PointerConvertible,
|
|
1317
|
+
): this
|
|
1318
|
+
|
|
1319
|
+
nodeAtGridPosition(position: unknown /* ext vector */): NodeType
|
|
1320
|
+
|
|
1321
|
+
connectNodeToAdjacentNodes(node: GKGridGraphNode): void
|
|
1322
|
+
|
|
1323
|
+
classForGenericArgumentAtIndex(index: number): interop.Pointer
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
declare class GKShuffledDistribution extends GKRandomDistribution {}
|
|
1327
|
+
|
|
1328
|
+
declare class GKBillowNoiseSource extends GKCoherentNoiseSource {
|
|
1329
|
+
persistence: number
|
|
1330
|
+
|
|
1331
|
+
static billowNoiseSourceWithFrequencyOctaveCountPersistenceLacunaritySeed<
|
|
1332
|
+
This extends abstract new (...args: any) => any,
|
|
1333
|
+
>(
|
|
1334
|
+
this: This,
|
|
1335
|
+
frequency: number,
|
|
1336
|
+
octaveCount: number,
|
|
1337
|
+
persistence: number,
|
|
1338
|
+
lacunarity: number,
|
|
1339
|
+
seed: number,
|
|
1340
|
+
): InstanceType<This>
|
|
1341
|
+
|
|
1342
|
+
initWithFrequencyOctaveCountPersistenceLacunaritySeed(
|
|
1343
|
+
frequency: number,
|
|
1344
|
+
octaveCount: number,
|
|
1345
|
+
persistence: number,
|
|
1346
|
+
lacunarity: number,
|
|
1347
|
+
seed: number,
|
|
1348
|
+
): this
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
declare class GKVoronoiNoiseSource extends GKNoiseSource {
|
|
1352
|
+
frequency: number
|
|
1353
|
+
|
|
1354
|
+
displacement: number
|
|
1355
|
+
|
|
1356
|
+
distanceEnabled: boolean
|
|
1357
|
+
|
|
1358
|
+
seed: number
|
|
1359
|
+
|
|
1360
|
+
static voronoiNoiseWithFrequencyDisplacementDistanceEnabledSeed<
|
|
1361
|
+
This extends abstract new (...args: any) => any,
|
|
1362
|
+
>(
|
|
1363
|
+
this: This,
|
|
1364
|
+
frequency: number,
|
|
1365
|
+
displacement: number,
|
|
1366
|
+
distanceEnabled: boolean,
|
|
1367
|
+
seed: number,
|
|
1368
|
+
): InstanceType<This>
|
|
1369
|
+
|
|
1370
|
+
initWithFrequencyDisplacementDistanceEnabledSeed(
|
|
1371
|
+
frequency: number,
|
|
1372
|
+
displacement: number,
|
|
1373
|
+
distanceEnabled: boolean,
|
|
1374
|
+
seed: number,
|
|
1375
|
+
): this
|
|
1376
|
+
|
|
1377
|
+
isDistanceEnabled(): boolean
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
declare class GKNoiseSource extends NSObject {}
|
|
1381
|
+
|
|
1382
|
+
declare class GKCoherentNoiseSource extends GKNoiseSource {
|
|
1383
|
+
frequency: number
|
|
1384
|
+
|
|
1385
|
+
octaveCount: number
|
|
1386
|
+
|
|
1387
|
+
lacunarity: number
|
|
1388
|
+
|
|
1389
|
+
seed: number
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
declare class GKCompositeBehavior extends GKBehavior {
|
|
1393
|
+
readonly behaviorCount: number
|
|
1394
|
+
|
|
1395
|
+
static behaviorWithBehaviors<This extends abstract new (...args: any) => any>(
|
|
1396
|
+
this: This,
|
|
1397
|
+
behaviors: NSArray<interop.Object> | Array<interop.Object>,
|
|
1398
|
+
): InstanceType<This>
|
|
1399
|
+
|
|
1400
|
+
static behaviorWithBehaviorsAndWeights<This extends abstract new (...args: any) => any>(
|
|
1401
|
+
this: This,
|
|
1402
|
+
behaviors: NSArray<interop.Object> | Array<interop.Object>,
|
|
1403
|
+
weights: NSArray<interop.Object> | Array<interop.Object>,
|
|
1404
|
+
): InstanceType<This>
|
|
1405
|
+
|
|
1406
|
+
setWeightForBehavior(weight: number, behavior: GKBehavior): void
|
|
1407
|
+
|
|
1408
|
+
weightForBehavior(behavior: GKBehavior): number
|
|
1409
|
+
|
|
1410
|
+
removeBehavior(behavior: GKBehavior): void
|
|
1411
|
+
|
|
1412
|
+
removeAllBehaviors(): void
|
|
1413
|
+
|
|
1414
|
+
objectAtIndexedSubscript(idx: number): GKGoal
|
|
1415
|
+
objectAtIndexedSubscript(idx: number): GKBehavior
|
|
1416
|
+
|
|
1417
|
+
setObjectForKeyedSubscript(weight: NSNumber, goal: GKGoal): void
|
|
1418
|
+
setObjectForKeyedSubscript(weight: NSNumber, behavior: GKBehavior): void
|
|
1419
|
+
|
|
1420
|
+
objectForKeyedSubscript(goal: GKGoal): NSNumber
|
|
1421
|
+
objectForKeyedSubscript(behavior: GKBehavior): NSNumber
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
declare class GKGraphNode3D extends GKGraphNode {
|
|
1425
|
+
position: unknown /* ext vector */
|
|
1426
|
+
|
|
1427
|
+
static nodeWithPoint<This extends abstract new (...args: any) => any>(
|
|
1428
|
+
this: This,
|
|
1429
|
+
point: unknown /* ext vector */,
|
|
1430
|
+
): InstanceType<This>
|
|
1431
|
+
|
|
1432
|
+
initWithPoint(point: unknown /* ext vector */): this
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
declare class GKRandomSource extends NSObject implements GKRandom, NSSecureCoding, NSCopying {
|
|
1436
|
+
init(): this
|
|
1437
|
+
|
|
1438
|
+
initWithCoder(aDecoder: NSCoder): this
|
|
1439
|
+
|
|
1440
|
+
static sharedRandom(): GKRandomSource
|
|
1441
|
+
|
|
1442
|
+
arrayByShufflingObjectsInArray(array: NSArray<interop.Object> | Array<interop.Object>): NSArray
|
|
1443
|
+
|
|
1444
|
+
nextInt(): number
|
|
1445
|
+
|
|
1446
|
+
nextIntWithUpperBound(upperBound: number): number
|
|
1447
|
+
|
|
1448
|
+
nextUniform(): number
|
|
1449
|
+
|
|
1450
|
+
nextBool(): boolean
|
|
1451
|
+
|
|
1452
|
+
static readonly supportsSecureCoding: boolean
|
|
1453
|
+
|
|
1454
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1455
|
+
|
|
1456
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
declare class GKAgent extends GKComponent implements NSSecureCoding {
|
|
1460
|
+
delegate: GKAgentDelegate
|
|
1461
|
+
|
|
1462
|
+
behavior: GKBehavior
|
|
1463
|
+
|
|
1464
|
+
mass: number
|
|
1465
|
+
|
|
1466
|
+
radius: number
|
|
1467
|
+
|
|
1468
|
+
speed: number
|
|
1469
|
+
|
|
1470
|
+
maxAcceleration: number
|
|
1471
|
+
|
|
1472
|
+
maxSpeed: number
|
|
1473
|
+
|
|
1474
|
+
static readonly supportsSecureCoding: boolean
|
|
1475
|
+
|
|
1476
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1477
|
+
|
|
1478
|
+
initWithCoder(coder: NSCoder): this
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
declare class GKDecisionNode extends NSObject {
|
|
1482
|
+
createBranchWithValueAttribute(value: NSNumber, attribute: NSObject): this
|
|
1483
|
+
|
|
1484
|
+
createBranchWithPredicateAttribute(predicate: NSPredicate, attribute: NSObject): this
|
|
1485
|
+
|
|
1486
|
+
createBranchWithWeightAttribute(weight: number, attribute: NSObject): this
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
declare class GKObstacleGraph<NodeType = interop.Object> extends GKGraph {
|
|
1490
|
+
readonly obstacles: NSArray
|
|
1491
|
+
|
|
1492
|
+
readonly bufferRadius: number
|
|
1493
|
+
|
|
1494
|
+
static graphWithObstaclesBufferRadius<NodeType, This extends abstract new (...args: any) => any>(
|
|
1495
|
+
this: This,
|
|
1496
|
+
obstacles: NSArray<interop.Object> | Array<interop.Object>,
|
|
1497
|
+
bufferRadius: number,
|
|
1498
|
+
): InstanceType<This>
|
|
1499
|
+
|
|
1500
|
+
initWithObstaclesBufferRadius(
|
|
1501
|
+
obstacles: NSArray<interop.Object> | Array<interop.Object>,
|
|
1502
|
+
bufferRadius: number,
|
|
1503
|
+
): this
|
|
1504
|
+
|
|
1505
|
+
static graphWithObstaclesBufferRadiusNodeClass<
|
|
1506
|
+
NodeType,
|
|
1507
|
+
This extends abstract new (...args: any) => any,
|
|
1508
|
+
>(
|
|
1509
|
+
this: This,
|
|
1510
|
+
obstacles: NSArray<interop.Object> | Array<interop.Object>,
|
|
1511
|
+
bufferRadius: number,
|
|
1512
|
+
nodeClass: interop.PointerConvertible,
|
|
1513
|
+
): InstanceType<This>
|
|
1514
|
+
|
|
1515
|
+
initWithObstaclesBufferRadiusNodeClass(
|
|
1516
|
+
obstacles: NSArray<interop.Object> | Array<interop.Object>,
|
|
1517
|
+
bufferRadius: number,
|
|
1518
|
+
nodeClass: interop.PointerConvertible,
|
|
1519
|
+
): this
|
|
1520
|
+
|
|
1521
|
+
connectNodeUsingObstacles(node: NodeType): void
|
|
1522
|
+
|
|
1523
|
+
connectNodeUsingObstaclesIgnoringObstacles(
|
|
1524
|
+
node: NodeType,
|
|
1525
|
+
obstaclesToIgnore: NSArray<interop.Object> | Array<interop.Object>,
|
|
1526
|
+
): void
|
|
1527
|
+
|
|
1528
|
+
connectNodeUsingObstaclesIgnoringBufferRadiusOfObstacles(
|
|
1529
|
+
node: NodeType,
|
|
1530
|
+
obstaclesBufferRadiusToIgnore: NSArray<interop.Object> | Array<interop.Object>,
|
|
1531
|
+
): void
|
|
1532
|
+
|
|
1533
|
+
addObstacles(obstacles: NSArray<interop.Object> | Array<interop.Object>): void
|
|
1534
|
+
|
|
1535
|
+
removeObstacles(obstacles: NSArray<interop.Object> | Array<interop.Object>): void
|
|
1536
|
+
|
|
1537
|
+
removeAllObstacles(): void
|
|
1538
|
+
|
|
1539
|
+
nodesForObstacle(obstacle: GKPolygonObstacle): NSArray
|
|
1540
|
+
|
|
1541
|
+
lockConnectionFromNodeToNode(startNode: NodeType, endNode: NodeType): void
|
|
1542
|
+
|
|
1543
|
+
unlockConnectionFromNodeToNode(startNode: NodeType, endNode: NodeType): void
|
|
1544
|
+
|
|
1545
|
+
isConnectionLockedFromNodeToNode(startNode: NodeType, endNode: NodeType): boolean
|
|
1546
|
+
|
|
1547
|
+
classForGenericArgumentAtIndex(index: number): interop.Pointer
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
declare class GKNoise extends NSObject {
|
|
1551
|
+
get gradientColors(): NSDictionary
|
|
1552
|
+
set gradientColors(
|
|
1553
|
+
value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1554
|
+
)
|
|
1555
|
+
|
|
1556
|
+
init(): this
|
|
1557
|
+
|
|
1558
|
+
static noiseWithNoiseSource<This extends abstract new (...args: any) => any>(
|
|
1559
|
+
this: This,
|
|
1560
|
+
noiseSource: GKNoiseSource,
|
|
1561
|
+
): InstanceType<This>
|
|
1562
|
+
|
|
1563
|
+
static noiseWithNoiseSourceGradientColors<This extends abstract new (...args: any) => any>(
|
|
1564
|
+
this: This,
|
|
1565
|
+
noiseSource: GKNoiseSource,
|
|
1566
|
+
gradientColors:
|
|
1567
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
1568
|
+
| Record<interop.Object, interop.Object>,
|
|
1569
|
+
): InstanceType<This>
|
|
1570
|
+
|
|
1571
|
+
initWithNoiseSource(noiseSource: GKNoiseSource): this
|
|
1572
|
+
|
|
1573
|
+
initWithNoiseSourceGradientColors(
|
|
1574
|
+
noiseSource: GKNoiseSource,
|
|
1575
|
+
gradientColors:
|
|
1576
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
1577
|
+
| Record<interop.Object, interop.Object>,
|
|
1578
|
+
): this
|
|
1579
|
+
|
|
1580
|
+
static noiseWithComponentNoisesSelectionNoise<This extends abstract new (...args: any) => any>(
|
|
1581
|
+
this: This,
|
|
1582
|
+
noises: NSArray<interop.Object> | Array<interop.Object>,
|
|
1583
|
+
selectionNoise: GKNoise,
|
|
1584
|
+
): InstanceType<This>
|
|
1585
|
+
|
|
1586
|
+
static noiseWithComponentNoisesSelectionNoiseComponentBoundariesBoundaryBlendDistances<
|
|
1587
|
+
This extends abstract new (...args: any) => any,
|
|
1588
|
+
>(
|
|
1589
|
+
this: This,
|
|
1590
|
+
noises: NSArray<interop.Object> | Array<interop.Object>,
|
|
1591
|
+
selectionNoise: GKNoise,
|
|
1592
|
+
componentBoundaries: NSArray<interop.Object> | Array<interop.Object>,
|
|
1593
|
+
blendDistances: NSArray<interop.Object> | Array<interop.Object>,
|
|
1594
|
+
): InstanceType<This>
|
|
1595
|
+
|
|
1596
|
+
valueAtPosition(position: unknown /* ext vector */): number
|
|
1597
|
+
|
|
1598
|
+
applyAbsoluteValue(): void
|
|
1599
|
+
|
|
1600
|
+
clampWithLowerBoundUpperBound(lowerBound: number, upperBound: number): void
|
|
1601
|
+
|
|
1602
|
+
raiseToPower(power: number): void
|
|
1603
|
+
|
|
1604
|
+
invert(): void
|
|
1605
|
+
|
|
1606
|
+
applyTurbulenceWithFrequencyPowerRoughnessSeed(
|
|
1607
|
+
frequency: number,
|
|
1608
|
+
power: number,
|
|
1609
|
+
roughness: number,
|
|
1610
|
+
seed: number,
|
|
1611
|
+
): void
|
|
1612
|
+
|
|
1613
|
+
remapValuesToCurveWithControlPoints(
|
|
1614
|
+
controlPoints:
|
|
1615
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
1616
|
+
| Record<interop.Object, interop.Object>,
|
|
1617
|
+
): void
|
|
1618
|
+
|
|
1619
|
+
remapValuesToTerracesWithPeaksTerracesInverted(
|
|
1620
|
+
peakInputValues: NSArray<interop.Object> | Array<interop.Object>,
|
|
1621
|
+
inverted: boolean,
|
|
1622
|
+
): void
|
|
1623
|
+
|
|
1624
|
+
moveBy(delta: unknown /* ext vector */): void
|
|
1625
|
+
|
|
1626
|
+
scaleBy(factor: unknown /* ext vector */): void
|
|
1627
|
+
|
|
1628
|
+
rotateBy(radians: unknown /* ext vector */): void
|
|
1629
|
+
|
|
1630
|
+
addWithNoise(noise: GKNoise): void
|
|
1631
|
+
|
|
1632
|
+
multiplyWithNoise(noise: GKNoise): void
|
|
1633
|
+
|
|
1634
|
+
minimumWithNoise(noise: GKNoise): void
|
|
1635
|
+
|
|
1636
|
+
maximumWithNoise(noise: GKNoise): void
|
|
1637
|
+
|
|
1638
|
+
raiseToPowerWithNoise(noise: GKNoise): void
|
|
1639
|
+
|
|
1640
|
+
displaceXWithNoiseYWithNoiseZWithNoise(
|
|
1641
|
+
xDisplacementNoise: GKNoise,
|
|
1642
|
+
yDisplacementNoise: GKNoise,
|
|
1643
|
+
zDisplacementNoise: GKNoise,
|
|
1644
|
+
): void
|
|
1645
|
+
}
|