lecodes-sdk 0.20.0 → 0.20.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/dist/global.d.ts +31 -0
- package/dist/inject.js +361 -260
- package/dist/types/audio/Bus.d.ts +45 -0
- package/dist/types/audio/Sound.d.ts +28 -0
- package/dist/types/audio/Voice.d.ts +27 -0
- package/dist/types/audio/audio.d.ts +83 -0
- package/dist/types/audio/support.d.ts +1 -0
- package/dist/types/gl/AudioSource.d.ts +60 -0
- package/dist/types/gl/AudioZone.d.ts +32 -0
- package/dist/types/gl/DecalSet.d.ts +103 -0
- package/dist/types/gl/Geometry.d.ts +5 -0
- package/dist/types/gl/Light.d.ts +7 -0
- package/dist/types/gl/Material.d.ts +86 -2
- package/dist/types/gl/Mesh.d.ts +11 -0
- package/dist/types/gl/Scene.d.ts +23 -0
- package/dist/types/gl/SceneAudio.d.ts +11 -0
- package/dist/types/gl/Texture.d.ts +29 -1
- package/dist/types/gl/animation/AnimationClip.d.ts +25 -12
- package/dist/types/gl/animation/core.d.ts +15 -10
- package/dist/types/gl/state.d.ts +0 -1
- package/dist/types/inject.d.ts +10 -0
- package/dist/types/runtime/input.d.ts +11 -0
- package/dist/types/ui/UIImage.d.ts +15 -5
- package/dist/types.json +1 -1
- package/package.json +1 -1
- package/prompts/dist/2d-game.md +408 -197
- package/prompts/dist/3d-app.md +491 -166
- package/prompts/dist/ar-app.md +373 -163
- package/prompts/dist/design.md +83 -87
- package/prompts/dist/ui-app.md +325 -136
- package/src/audio/Bus.ts +102 -0
- package/src/audio/Sound.ts +96 -0
- package/src/audio/Voice.ts +102 -0
- package/src/audio/audio.ts +161 -0
- package/src/audio/support.ts +6 -0
- package/src/bridges.d.ts +1481 -1352
- package/src/compile/compileProject.ts +30 -15
- package/src/compile/index.ts +3 -0
- package/src/core/Aspect.ts +33 -8
- package/src/g2/Scene2D.ts +7 -0
- package/src/gl/AudioSource.ts +113 -0
- package/src/gl/AudioZone.ts +75 -0
- package/src/gl/CameraPlace.ts +52 -52
- package/src/gl/DecalSet.ts +233 -0
- package/src/gl/Geometry.ts +5 -0
- package/src/gl/Light.ts +16 -0
- package/src/gl/Lightmap.ts +3 -2
- package/src/gl/Material.ts +152 -4
- package/src/gl/Mesh.ts +20 -1
- package/src/gl/Ragdoll.ts +270 -270
- package/src/gl/Scene.ts +41 -7
- package/src/gl/SceneAudio.ts +26 -0
- package/src/gl/Texture.ts +43 -3
- package/src/gl/Trigger.ts +45 -45
- package/src/gl/Vehicle.ts +5 -5
- package/src/gl/animation/AnimationClip.ts +43 -20
- package/src/gl/animation/Animator.ts +4 -3
- package/src/gl/animation/core.ts +20 -15
- package/src/gl/scenarios.ts +291 -291
- package/src/gl/state.ts +1 -1
- package/src/inject.ts +12 -0
- package/src/runtime/input.ts +6 -1
- package/src/scene/gizmos.ts +148 -148
- package/src/ui/UIImage.ts +21 -7
package/dist/global.d.ts
CHANGED
|
@@ -11,8 +11,11 @@ declare global {
|
|
|
11
11
|
const Animator: typeof SDK.Animator
|
|
12
12
|
const Aspect: typeof SDK.Aspect
|
|
13
13
|
const AudioPlayer: typeof SDK.AudioPlayer
|
|
14
|
+
const AudioSource: typeof SDK.AudioSource
|
|
15
|
+
const AudioZone: typeof SDK.AudioZone
|
|
14
16
|
const Autotile2D: typeof SDK.Autotile2D
|
|
15
17
|
const Bitmap: typeof SDK.Bitmap
|
|
18
|
+
const Bus: typeof SDK.Bus
|
|
16
19
|
const Camera: typeof SDK.Camera
|
|
17
20
|
const Camera2D: typeof SDK.Camera2D
|
|
18
21
|
const CameraFollow: typeof SDK.CameraFollow
|
|
@@ -24,6 +27,7 @@ declare global {
|
|
|
24
27
|
const ClickEvent: typeof SDK.ClickEvent
|
|
25
28
|
const Color: typeof SDK.Color
|
|
26
29
|
const DateValue: typeof SDK.DateValue
|
|
30
|
+
const DecalSet: typeof SDK.DecalSet
|
|
27
31
|
const Feet: typeof SDK.Feet
|
|
28
32
|
const File: typeof SDK.File
|
|
29
33
|
const FollowPath: typeof SDK.FollowPath
|
|
@@ -76,6 +80,7 @@ declare global {
|
|
|
76
80
|
const Push: typeof SDK.Push
|
|
77
81
|
const QRScanner: typeof SDK.QRScanner
|
|
78
82
|
const Quat: typeof SDK.Quat
|
|
83
|
+
const REVERB_PRESETS: typeof SDK.REVERB_PRESETS
|
|
79
84
|
const Ragdoll: typeof SDK.Ragdoll
|
|
80
85
|
const Ray: typeof SDK.Ray
|
|
81
86
|
const Replicated: typeof SDK.Replicated
|
|
@@ -84,10 +89,12 @@ declare global {
|
|
|
84
89
|
const Scene: typeof SDK.Scene
|
|
85
90
|
const Scene2D: typeof SDK.Scene2D
|
|
86
91
|
const Scene2dHandle: typeof SDK.Scene2dHandle
|
|
92
|
+
const SceneAudio: typeof SDK.SceneAudio
|
|
87
93
|
const SceneHandle: typeof SDK.SceneHandle
|
|
88
94
|
const Service: typeof SDK.Service
|
|
89
95
|
const Shape: typeof SDK.Shape
|
|
90
96
|
const Shape2D: typeof SDK.Shape2D
|
|
97
|
+
const Sound: typeof SDK.Sound
|
|
91
98
|
const Spin: typeof SDK.Spin
|
|
92
99
|
const Sprite: typeof SDK.Sprite
|
|
93
100
|
const SpriteAnimation: typeof SDK.SpriteAnimation
|
|
@@ -129,6 +136,7 @@ declare global {
|
|
|
129
136
|
const Vec3: typeof SDK.Vec3
|
|
130
137
|
const Vehicle: typeof SDK.Vehicle
|
|
131
138
|
const VideoPlayer: typeof SDK.VideoPlayer
|
|
139
|
+
const Voice: typeof SDK.Voice
|
|
132
140
|
const Warp: typeof SDK.Warp
|
|
133
141
|
const WebSocket: typeof SDK.WebSocket
|
|
134
142
|
const Wheel: typeof SDK.Wheel
|
|
@@ -154,6 +162,7 @@ declare global {
|
|
|
154
162
|
const animate: typeof SDK.animate
|
|
155
163
|
const animateMat4: typeof SDK.animateMat4
|
|
156
164
|
const app: typeof SDK.app
|
|
165
|
+
const audio: typeof SDK.audio
|
|
157
166
|
const cells: typeof SDK.cells
|
|
158
167
|
const clipboard: typeof SDK.clipboard
|
|
159
168
|
const colorCurve: typeof SDK.colorCurve
|
|
@@ -213,13 +222,18 @@ declare global {
|
|
|
213
222
|
type AppState = SDK.AppState
|
|
214
223
|
type Aspect<K extends string, P = Node, E extends EventMap = {}> = SDK.Aspect<K, P, E>
|
|
215
224
|
type AspectEntry<A extends Aspect<any, any> = Aspect<any, any>> = SDK.AspectEntry<A>
|
|
225
|
+
type AudioCone = SDK.AudioCone
|
|
216
226
|
type AudioPlayer = SDK.AudioPlayer
|
|
227
|
+
type AudioSource = SDK.AudioSource
|
|
228
|
+
type AudioStats = SDK.AudioStats
|
|
229
|
+
type AudioZone = SDK.AudioZone
|
|
217
230
|
type AutoPaintRules = SDK.AutoPaintRules
|
|
218
231
|
type Autotile2D = SDK.Autotile2D
|
|
219
232
|
type Bitmap = SDK.Bitmap
|
|
220
233
|
type BlendMember = SDK.BlendMember
|
|
221
234
|
type BlendPosition = SDK.BlendPosition
|
|
222
235
|
type BlockEntry = SDK.BlockEntry
|
|
236
|
+
type Bus = SDK.Bus
|
|
223
237
|
type Camera = SDK.Camera
|
|
224
238
|
type Camera2D = SDK.Camera2D
|
|
225
239
|
type Camera2dNodeDef = SDK.Camera2dNodeDef
|
|
@@ -248,9 +262,15 @@ declare global {
|
|
|
248
262
|
type ConformOptions = SDK.ConformOptions
|
|
249
263
|
type DateInput = SDK.DateInput
|
|
250
264
|
type DateValue = SDK.DateValue
|
|
265
|
+
type DecalOptions = SDK.DecalOptions
|
|
266
|
+
type DecalPlacement = SDK.DecalPlacement
|
|
267
|
+
type DecalSet = SDK.DecalSet
|
|
268
|
+
type DecalSetOptions = SDK.DecalSetOptions
|
|
269
|
+
type DecalSpawnOptions = SDK.DecalSpawnOptions
|
|
251
270
|
type DifferentialMode = SDK.DifferentialMode
|
|
252
271
|
type Displacement = SDK.Displacement
|
|
253
272
|
type DriveLayout = SDK.DriveLayout
|
|
273
|
+
type EchoParams = SDK.EchoParams
|
|
254
274
|
type EdgeSlot = SDK.EdgeSlot
|
|
255
275
|
type EditorApi = SDK.EditorApi
|
|
256
276
|
type EditorRayHit = SDK.EditorRayHit
|
|
@@ -385,6 +405,7 @@ declare global {
|
|
|
385
405
|
type Plane = SDK.Plane
|
|
386
406
|
type PlayAnimation = SDK.PlayAnimation
|
|
387
407
|
type PlayOptions = SDK.PlayOptions
|
|
408
|
+
type PlaySoundOptions = SDK.PlaySoundOptions
|
|
388
409
|
type Playback = SDK.Playback
|
|
389
410
|
type PresentOptions = SDK.PresentOptions
|
|
390
411
|
type Presentable = SDK.Presentable
|
|
@@ -399,7 +420,10 @@ declare global {
|
|
|
399
420
|
type RagdollPart = SDK.RagdollPart
|
|
400
421
|
type Ray = SDK.Ray
|
|
401
422
|
type Replicated = SDK.Replicated
|
|
423
|
+
type ReverbParams = SDK.ReverbParams
|
|
424
|
+
type ReverbPreset = SDK.ReverbPreset
|
|
402
425
|
type RibbonOptions = SDK.RibbonOptions
|
|
426
|
+
type Rolloff = SDK.Rolloff
|
|
403
427
|
type RpcError = SDK.RpcError
|
|
404
428
|
type Scene = SDK.Scene
|
|
405
429
|
type Scene2D = SDK.Scene2D
|
|
@@ -407,6 +431,7 @@ declare global {
|
|
|
407
431
|
type Scene2dEnv = SDK.Scene2dEnv
|
|
408
432
|
type Scene2dHandle<D extends Scene2dDef = Scene2dDef> = SDK.Scene2dHandle<D>
|
|
409
433
|
type Scene2dNodeDef = SDK.Scene2dNodeDef
|
|
434
|
+
type SceneAudio = SDK.SceneAudio
|
|
410
435
|
type SceneDef = SDK.SceneDef
|
|
411
436
|
type SceneHandle<D extends SceneDef = SceneDef> = SDK.SceneHandle<D>
|
|
412
437
|
type SceneInstance<D extends SceneDef> = SDK.SceneInstance<D>
|
|
@@ -418,6 +443,9 @@ declare global {
|
|
|
418
443
|
type Shape2D = SDK.Shape2D
|
|
419
444
|
type SheetSprite = SDK.SheetSprite
|
|
420
445
|
type Signal<T> = SDK.Signal<T>
|
|
446
|
+
type Sound = SDK.Sound
|
|
447
|
+
type SoundOptions = SDK.SoundOptions
|
|
448
|
+
type SpatialOptions = SDK.SpatialOptions
|
|
421
449
|
type Spin = SDK.Spin
|
|
422
450
|
type Sprite = SDK.Sprite
|
|
423
451
|
type SpriteAnimation = SDK.SpriteAnimation
|
|
@@ -447,6 +475,7 @@ declare global {
|
|
|
447
475
|
type TerrainSnapshot = SDK.TerrainSnapshot
|
|
448
476
|
type Texture = SDK.Texture
|
|
449
477
|
type Texture2D = SDK.Texture2D
|
|
478
|
+
type TextureLoadOptions = SDK.TextureLoadOptions
|
|
450
479
|
type ThemeAccessors<T> = SDK.ThemeAccessors<T>
|
|
451
480
|
type ThemeValues = SDK.ThemeValues
|
|
452
481
|
type TileBlock = SDK.TileBlock
|
|
@@ -510,6 +539,8 @@ declare global {
|
|
|
510
539
|
type Vec3 = SDK.Vec3
|
|
511
540
|
type Vehicle = SDK.Vehicle
|
|
512
541
|
type VideoPlayer = SDK.VideoPlayer
|
|
542
|
+
type Voice = SDK.Voice
|
|
543
|
+
type VoiceEvents = SDK.VoiceEvents
|
|
513
544
|
type Warp = SDK.Warp
|
|
514
545
|
type WarpOptions = SDK.WarpOptions
|
|
515
546
|
type WebSocket = SDK.WebSocket
|