@nice2dev/game-engine 1.3.12 → 1.3.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +2 -2
  3. package/dist/types/accessibility/index.d.ts +0 -1
  4. package/dist/types/ai/index.d.ts +0 -1
  5. package/dist/types/animation/index.d.ts +0 -1
  6. package/dist/types/audio/HRTFAudio.d.ts +0 -180
  7. package/dist/types/audio/index.d.ts +0 -2
  8. package/dist/types/community/Community.d.ts +0 -112
  9. package/dist/types/community/index.d.ts +0 -1
  10. package/dist/types/core/TypeSafety.d.ts +0 -190
  11. package/dist/types/core/index.d.ts +0 -7
  12. package/dist/types/devtools/AssetStore.d.ts +0 -133
  13. package/dist/types/devtools/index.d.ts +0 -3
  14. package/dist/types/dialogue/index.d.ts +0 -2
  15. package/dist/types/docs/APIPlayground.d.ts +0 -26
  16. package/dist/types/docs/Cookbook.d.ts +0 -18
  17. package/dist/types/docs/Guides.d.ts +0 -18
  18. package/dist/types/docs/index.d.ts +0 -4
  19. package/dist/types/ecs/ECSOptimized.d.ts +0 -131
  20. package/dist/types/ecs/index.d.ts +0 -2
  21. package/dist/types/editor/NiceAnimationTimeline.d.ts +0 -114
  22. package/dist/types/editor/NiceLevelEditor.d.ts +0 -232
  23. package/dist/types/editor/NiceMaterialEditor.d.ts +0 -105
  24. package/dist/types/editor/NiceNodeGraph.d.ts +0 -87
  25. package/dist/types/editor/NiceParticleEditor.d.ts +0 -127
  26. package/dist/types/editor/behavior-tree/BTDebugPanel.d.ts +0 -102
  27. package/dist/types/editor/behavior-tree/BTEditorCanvas.d.ts +0 -79
  28. package/dist/types/editor/behavior-tree/BTEditorNode.d.ts +0 -58
  29. package/dist/types/editor/behavior-tree/BTEditorToolbar.d.ts +0 -75
  30. package/dist/types/editor/behavior-tree/BTNodePalette.d.ts +0 -72
  31. package/dist/types/editor/behavior-tree/BTPropertyPanel.d.ts +0 -66
  32. package/dist/types/editor/behavior-tree/BehaviorTreeEditor.d.ts +0 -186
  33. package/dist/types/editor/behavior-tree/index.d.ts +0 -14
  34. package/dist/types/editor/behavior-tree/serialization.d.ts +0 -30
  35. package/dist/types/editor/behavior-tree/types.d.ts +0 -299
  36. package/dist/types/editor/index.d.ts +0 -20
  37. package/dist/types/editor/state-machine/SMEditorCanvas.d.ts +0 -61
  38. package/dist/types/editor/state-machine/StateMachineEditor.d.ts +0 -139
  39. package/dist/types/editor/state-machine/index.d.ts +0 -11
  40. package/dist/types/editor/state-machine/serialization.d.ts +0 -23
  41. package/dist/types/editor/state-machine/types.d.ts +0 -241
  42. package/dist/types/engine/index.d.ts +0 -2
  43. package/dist/types/enterprise/index.d.ts +0 -1
  44. package/dist/types/epic/index.d.ts +0 -10
  45. package/dist/types/i18n/index.d.ts +0 -2
  46. package/dist/types/input/index.d.ts +0 -3
  47. package/dist/types/kids/index.d.ts +0 -2
  48. package/dist/types/legendary/index.d.ts +0 -57
  49. package/dist/types/monetization/index.d.ts +0 -1
  50. package/dist/types/multiplayer/NiceNetcode.d.ts +0 -434
  51. package/dist/types/multiplayer/index.d.ts +0 -5
  52. package/dist/types/network/index.d.ts +0 -2
  53. package/dist/types/pathfinding/index.d.ts +0 -1
  54. package/dist/types/performance/AssetCompression.d.ts +0 -137
  55. package/dist/types/performance/WASMModules.d.ts +0 -65
  56. package/dist/types/performance/WebGPUCompute.d.ts +0 -71
  57. package/dist/types/performance/index.d.ts +0 -1
  58. package/dist/types/physics/RapierIntegration.d.ts +0 -404
  59. package/dist/types/physics/index.d.ts +0 -2
  60. package/dist/types/plugins/index.d.ts +0 -2
  61. package/dist/types/procedural/index.d.ts +0 -2
  62. package/dist/types/release/index.d.ts +0 -1
  63. package/dist/types/rendering/WebGPUv2.d.ts +0 -173
  64. package/dist/types/rendering/index.d.ts +0 -3
  65. package/dist/types/runtime3d/index.d.ts +0 -2
  66. package/dist/types/scene/index.d.ts +0 -2
  67. package/dist/types/scripting/WasmCompiler.d.ts +0 -182
  68. package/dist/types/scripting/index.d.ts +0 -19
  69. package/dist/types/social/index.d.ts +0 -1
  70. package/dist/types/systems/NiceAI.d.ts +0 -637
  71. package/dist/types/systems/NiceAbility.d.ts +0 -225
  72. package/dist/types/systems/NiceAccessibility.d.ts +0 -230
  73. package/dist/types/systems/NiceAchievement.d.ts +0 -153
  74. package/dist/types/systems/NiceAchievementUI.d.ts +0 -196
  75. package/dist/types/systems/NiceAchievements.d.ts +0 -230
  76. package/dist/types/systems/NiceAction.d.ts +0 -81
  77. package/dist/types/systems/NiceAlchemy.d.ts +0 -195
  78. package/dist/types/systems/NiceAnalytics.d.ts +0 -493
  79. package/dist/types/systems/NiceAnimation.d.ts +0 -350
  80. package/dist/types/systems/NiceArena.d.ts +0 -215
  81. package/dist/types/systems/NiceAssetLoader.d.ts +0 -136
  82. package/dist/types/systems/NiceAuction.d.ts +0 -157
  83. package/dist/types/systems/NiceAudio.d.ts +0 -224
  84. package/dist/types/systems/NiceAugment.d.ts +0 -187
  85. package/dist/types/systems/NiceAura.d.ts +0 -193
  86. package/dist/types/systems/NiceBank.d.ts +0 -158
  87. package/dist/types/systems/NiceBattlePass.d.ts +0 -150
  88. package/dist/types/systems/NiceBehavior.d.ts +0 -160
  89. package/dist/types/systems/NiceBinding.d.ts +0 -96
  90. package/dist/types/systems/NiceBlacksmith.d.ts +0 -221
  91. package/dist/types/systems/NiceBuff.d.ts +0 -177
  92. package/dist/types/systems/NiceBuilding.d.ts +0 -207
  93. package/dist/types/systems/NiceBullet.d.ts +0 -167
  94. package/dist/types/systems/NiceCamera.d.ts +0 -252
  95. package/dist/types/systems/NiceCard.d.ts +0 -171
  96. package/dist/types/systems/NiceChat.d.ts +0 -148
  97. package/dist/types/systems/NiceCheat.d.ts +0 -375
  98. package/dist/types/systems/NiceClimbing.d.ts +0 -186
  99. package/dist/types/systems/NiceCloud.d.ts +0 -422
  100. package/dist/types/systems/NiceCollision.d.ts +0 -238
  101. package/dist/types/systems/NiceCombo.d.ts +0 -131
  102. package/dist/types/systems/NiceCommand.d.ts +0 -112
  103. package/dist/types/systems/NiceCompanion.d.ts +0 -182
  104. package/dist/types/systems/NiceController.d.ts +0 -144
  105. package/dist/types/systems/NiceCooking.d.ts +0 -193
  106. package/dist/types/systems/NiceCoroutine.d.ts +0 -101
  107. package/dist/types/systems/NiceCrafting.d.ts +0 -228
  108. package/dist/types/systems/NiceCutscene.d.ts +0 -437
  109. package/dist/types/systems/NiceDaily.d.ts +0 -133
  110. package/dist/types/systems/NiceDamage.d.ts +0 -271
  111. package/dist/types/systems/NiceDayNight.d.ts +0 -126
  112. package/dist/types/systems/NiceDebug.d.ts +0 -255
  113. package/dist/types/systems/NiceDestructible.d.ts +0 -150
  114. package/dist/types/systems/NiceDialogue.d.ts +0 -629
  115. package/dist/types/systems/NiceDungeon.d.ts +0 -202
  116. package/dist/types/systems/NiceECS.d.ts +0 -151
  117. package/dist/types/systems/NiceEnchant.d.ts +0 -148
  118. package/dist/types/systems/NiceEntityPool.d.ts +0 -127
  119. package/dist/types/systems/NiceEquipment.d.ts +0 -137
  120. package/dist/types/systems/NiceEvent.d.ts +0 -202
  121. package/dist/types/systems/NiceEventBus.d.ts +0 -164
  122. package/dist/types/systems/NiceFaction.d.ts +0 -173
  123. package/dist/types/systems/NiceFarming.d.ts +0 -163
  124. package/dist/types/systems/NiceFishing.d.ts +0 -196
  125. package/dist/types/systems/NiceFlocking.d.ts +0 -156
  126. package/dist/types/systems/NiceFog.d.ts +0 -137
  127. package/dist/types/systems/NiceFormation.d.ts +0 -140
  128. package/dist/types/systems/NiceGacha.d.ts +0 -134
  129. package/dist/types/systems/NiceGambling.d.ts +0 -175
  130. package/dist/types/systems/NiceGem.d.ts +0 -165
  131. package/dist/types/systems/NiceGesture.d.ts +0 -502
  132. package/dist/types/systems/NiceGrappling.d.ts +0 -154
  133. package/dist/types/systems/NiceGrid.d.ts +0 -142
  134. package/dist/types/systems/NiceGuild.d.ts +0 -162
  135. package/dist/types/systems/NiceHaptics.d.ts +0 -112
  136. package/dist/types/systems/NiceHousing.d.ts +0 -197
  137. package/dist/types/systems/NiceInput.d.ts +0 -280
  138. package/dist/types/systems/NiceInventory.d.ts +0 -534
  139. package/dist/types/systems/NiceLOD.d.ts +0 -144
  140. package/dist/types/systems/NiceLeaderboard.d.ts +0 -191
  141. package/dist/types/systems/NiceLevel.d.ts +0 -304
  142. package/dist/types/systems/NiceLighting.d.ts +0 -214
  143. package/dist/types/systems/NiceLocalization.d.ts +0 -148
  144. package/dist/types/systems/NiceLocomotion.d.ts +0 -398
  145. package/dist/types/systems/NiceLogger.d.ts +0 -117
  146. package/dist/types/systems/NiceLoot.d.ts +0 -176
  147. package/dist/types/systems/NiceMail.d.ts +0 -164
  148. package/dist/types/systems/NiceMap.d.ts +0 -234
  149. package/dist/types/systems/NiceMarriage.d.ts +0 -150
  150. package/dist/types/systems/NiceMastery.d.ts +0 -171
  151. package/dist/types/systems/NiceMatch.d.ts +0 -196
  152. package/dist/types/systems/NiceMatch3.d.ts +0 -118
  153. package/dist/types/systems/NiceMessageBus.d.ts +0 -115
  154. package/dist/types/systems/NiceMinimap.d.ts +0 -258
  155. package/dist/types/systems/NiceMining.d.ts +0 -175
  156. package/dist/types/systems/NiceModding.d.ts +0 -452
  157. package/dist/types/systems/NiceMount.d.ts +0 -152
  158. package/dist/types/systems/NiceNavigation.d.ts +0 -307
  159. package/dist/types/systems/NiceNetwork.d.ts +0 -568
  160. package/dist/types/systems/NiceNotification.d.ts +0 -438
  161. package/dist/types/systems/NiceObjective.d.ts +0 -395
  162. package/dist/types/systems/NiceParticle.d.ts +0 -639
  163. package/dist/types/systems/NiceParty.d.ts +0 -168
  164. package/dist/types/systems/NicePerformance.d.ts +0 -144
  165. package/dist/types/systems/NicePet.d.ts +0 -167
  166. package/dist/types/systems/NicePhotoMode.d.ts +0 -270
  167. package/dist/types/systems/NicePhysics.d.ts +0 -326
  168. package/dist/types/systems/NicePlatformer.d.ts +0 -158
  169. package/dist/types/systems/NicePool.d.ts +0 -128
  170. package/dist/types/systems/NicePortal.d.ts +0 -178
  171. package/dist/types/systems/NicePostProcess.d.ts +0 -254
  172. package/dist/types/systems/NiceProcedural.d.ts +0 -202
  173. package/dist/types/systems/NiceProfile.d.ts +0 -223
  174. package/dist/types/systems/NiceProjectile.d.ts +0 -157
  175. package/dist/types/systems/NicePvP.d.ts +0 -199
  176. package/dist/types/systems/NiceQTE.d.ts +0 -160
  177. package/dist/types/systems/NiceQuest.d.ts +0 -620
  178. package/dist/types/systems/NiceRaid.d.ts +0 -215
  179. package/dist/types/systems/NiceRanking.d.ts +0 -399
  180. package/dist/types/systems/NiceReplay.d.ts +0 -180
  181. package/dist/types/systems/NiceReputation.d.ts +0 -151
  182. package/dist/types/systems/NiceResource.d.ts +0 -200
  183. package/dist/types/systems/NiceRhythm.d.ts +0 -148
  184. package/dist/types/systems/NiceRoguelike.d.ts +0 -276
  185. package/dist/types/systems/NiceRune.d.ts +0 -202
  186. package/dist/types/systems/NiceSaveSystem.d.ts +0 -194
  187. package/dist/types/systems/NiceSceneManager.d.ts +0 -112
  188. package/dist/types/systems/NiceScore.d.ts +0 -186
  189. package/dist/types/systems/NiceScreenFX.d.ts +0 -235
  190. package/dist/types/systems/NiceScreenshot.d.ts +0 -443
  191. package/dist/types/systems/NiceScribe.d.ts +0 -239
  192. package/dist/types/systems/NiceSeason.d.ts +0 -176
  193. package/dist/types/systems/NiceSerialization.d.ts +0 -89
  194. package/dist/types/systems/NiceServiceLocator.d.ts +0 -94
  195. package/dist/types/systems/NiceShop.d.ts +0 -528
  196. package/dist/types/systems/NiceSignal.d.ts +0 -112
  197. package/dist/types/systems/NiceSkillTree.d.ts +0 -237
  198. package/dist/types/systems/NiceSocial.d.ts +0 -580
  199. package/dist/types/systems/NiceSpawner.d.ts +0 -237
  200. package/dist/types/systems/NiceSpell.d.ts +0 -216
  201. package/dist/types/systems/NiceState.d.ts +0 -224
  202. package/dist/types/systems/NiceStateMachine.d.ts +0 -108
  203. package/dist/types/systems/NiceStatus.d.ts +0 -116
  204. package/dist/types/systems/NiceStealth.d.ts +0 -204
  205. package/dist/types/systems/NiceSteam.d.ts +0 -255
  206. package/dist/types/systems/NiceStreaming.d.ts +0 -173
  207. package/dist/types/systems/NiceSwimming.d.ts +0 -166
  208. package/dist/types/systems/NiceTalent.d.ts +0 -154
  209. package/dist/types/systems/NiceTarget.d.ts +0 -121
  210. package/dist/types/systems/NiceTerrain.d.ts +0 -143
  211. package/dist/types/systems/NiceTilemap.d.ts +0 -218
  212. package/dist/types/systems/NiceTimer.d.ts +0 -153
  213. package/dist/types/systems/NiceTournament.d.ts +0 -190
  214. package/dist/types/systems/NiceTrading.d.ts +0 -238
  215. package/dist/types/systems/NiceTransmog.d.ts +0 -142
  216. package/dist/types/systems/NiceTutorial.d.ts +0 -248
  217. package/dist/types/systems/NiceTween.d.ts +0 -164
  218. package/dist/types/systems/NiceUI.d.ts +0 -364
  219. package/dist/types/systems/NiceVFX.d.ts +0 -333
  220. package/dist/types/systems/NiceVehicle.d.ts +0 -176
  221. package/dist/types/systems/NiceVoice.d.ts +0 -502
  222. package/dist/types/systems/NiceWater.d.ts +0 -162
  223. package/dist/types/systems/NiceWave.d.ts +0 -174
  224. package/dist/types/systems/NiceWaypoint.d.ts +0 -165
  225. package/dist/types/systems/NiceWeather.d.ts +0 -225
  226. package/dist/types/systems/NiceXR.d.ts +0 -187
  227. package/dist/types/systems/index.d.ts +0 -182
  228. package/dist/types/templates/index.d.ts +0 -2
  229. package/dist/types/tilemap/index.d.ts +0 -1
  230. package/dist/types/tutorials/TutorialEditor.d.ts +0 -43
  231. package/dist/types/tutorials/VoiceNarration.d.ts +0 -75
  232. package/dist/types/tutorials/content/Tutorials_T04.d.ts +0 -3
  233. package/dist/types/tutorials/content/UITutorials.d.ts +0 -14
  234. package/dist/types/tutorials/content/index.d.ts +0 -5
  235. package/dist/types/tutorials/index.d.ts +0 -6
  236. package/dist/types/ui/index.d.ts +0 -2
  237. package/dist/types/visual-scripting/VisualScriptDebugger.d.ts +0 -145
  238. package/dist/types/visual-scripting/VisualScriptExecutor.d.ts +0 -100
  239. package/dist/types/visual-scripting/VisualScriptGraph.d.ts +0 -173
  240. package/dist/types/visual-scripting/VisualScriptNode.d.ts +0 -157
  241. package/dist/types/visual-scripting/index.d.ts +0 -6
  242. package/dist/types/visual-scripting/nodes/ActionNodes.d.ts +0 -152
  243. package/dist/types/visual-scripting/nodes/EventNodes.d.ts +0 -95
  244. package/dist/types/visual-scripting/nodes/FlowControlNodes.d.ts +0 -134
  245. package/dist/types/visual-scripting/nodes/LogicNodes.d.ts +0 -122
  246. package/dist/types/visual-scripting/nodes/MathNodes.d.ts +0 -170
  247. package/dist/types/visual-scripting/nodes/UtilityNodes.d.ts +0 -131
  248. package/dist/types/visual-scripting/nodes/VariableNodes.d.ts +0 -107
  249. package/dist/types/visual-scripting/nodes/index.d.ts +0 -21
  250. package/dist/types/visual-scripting/nodes/registerNodes.d.ts +0 -29
  251. package/dist/types/visual-scripting/types.d.ts +0 -402
  252. package/dist/types/xr/WebXRLayers.d.ts +0 -319
  253. package/dist/types/xr/index.d.ts +0 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @nice2dev/game-engine — Changelog
2
2
 
3
+ ## 1.3.14
4
+
5
+ No changes in this release.
6
+
7
+ ## 1.3.13
8
+
9
+ No changes in this release.
10
+
3
11
  ## 1.3.12
4
12
 
5
13
  No changes in this release.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice2dev/game-engine",
3
- "version": "1.3.12",
3
+ "version": "1.3.14",
4
4
  "description": "Nice2Dev Game Engine — No-code game engine and editor for React",
5
5
  "author": "NiceToDev <contact@nicetodev.com>",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -73,7 +73,7 @@
73
73
  },
74
74
  "devDependencies": {
75
75
  "@microsoft/signalr": "^10.0.11",
76
- "@nice2dev/ui": "^1.3.12",
76
+ "@nice2dev/ui": "^1.3.14",
77
77
  "@rollup/plugin-commonjs": "^29.0.3",
78
78
  "@rollup/plugin-node-resolve": "^16.0.3",
79
79
  "@rollup/plugin-typescript": "^12.3.0",
@@ -1 +0,0 @@
1
- export * from './Accessibility';
@@ -1 +0,0 @@
1
- export * from './AI';
@@ -1 +0,0 @@
1
- export * from './Animation';
@@ -1,180 +0,0 @@
1
- export type Vec3 = {
2
- x: number;
3
- y: number;
4
- z: number;
5
- };
6
- export interface HRTFDatabase {
7
- /** Database name (e.g., 'KEMAR', 'MIT', 'CIPIC') */
8
- name: string;
9
- /** Sample rate of impulse responses */
10
- sampleRate: number;
11
- /** Number of elevation angles */
12
- elevationCount: number;
13
- /** Number of azimuth angles per elevation */
14
- azimuthCounts: number[];
15
- /** Impulse response length (samples) */
16
- irLength: number;
17
- /** Left ear impulse responses */
18
- leftIRs: Float32Array[];
19
- /** Right ear impulse responses */
20
- rightIRs: Float32Array[];
21
- /** ITD (Interaural Time Delay) data */
22
- itdData: Float32Array;
23
- }
24
- export interface HRTFConfig {
25
- /** Enable HRTF processing */
26
- enabled: boolean;
27
- /** HRTF database to use */
28
- database: HRTFDatabase | null;
29
- /** Enable head tracking (WebXR) */
30
- headTracking: boolean;
31
- /** Interpolation method */
32
- interpolation: 'nearest' | 'bilinear' | 'spherical';
33
- /** Crossfade duration (ms) for smooth transitions */
34
- crossfadeDuration: number;
35
- /** Enable near-field compensation */
36
- nearFieldCompensation: boolean;
37
- /** Near-field reference distance (m) */
38
- nearFieldReference: number;
39
- }
40
- export declare const DEFAULT_HRTF_CONFIG: HRTFConfig;
41
- export interface HRTFListener {
42
- /** Position in world space */
43
- position: Vec3;
44
- /** Forward direction (normalized) */
45
- forward: Vec3;
46
- /** Up direction (normalized) */
47
- up: Vec3;
48
- /** Velocity for Doppler */
49
- velocity: Vec3;
50
- /** Head width (for ITD calculation) */
51
- headWidth: number;
52
- /** Current head rotation (from WebXR) */
53
- headRotation: {
54
- yaw: number;
55
- pitch: number;
56
- roll: number;
57
- };
58
- }
59
- export declare const DEFAULT_LISTENER: HRTFListener;
60
- export interface HRTFSource {
61
- /** Unique identifier */
62
- id: string;
63
- /** Position in world space */
64
- position: Vec3;
65
- /** Velocity for Doppler */
66
- velocity: Vec3;
67
- /** Source cone parameters */
68
- cone?: {
69
- innerAngle: number;
70
- outerAngle: number;
71
- outerGain: number;
72
- };
73
- /** Distance model */
74
- distanceModel: DistanceModel;
75
- /** Reference distance */
76
- refDistance: number;
77
- /** Maximum distance (for linear model) */
78
- maxDistance: number;
79
- /** Rolloff factor */
80
- rolloffFactor: number;
81
- /** Enable Doppler */
82
- dopplerEnabled: boolean;
83
- /** Doppler factor */
84
- dopplerFactor: number;
85
- /** Enable occlusion */
86
- occlusionEnabled: boolean;
87
- /** Current occlusion value (0-1) */
88
- occlusion: number;
89
- /** Audio buffer/stream */
90
- audioBuffer: AudioBuffer | null;
91
- /** Source node */
92
- sourceNode: AudioBufferSourceNode | null;
93
- /** Current state */
94
- state: 'stopped' | 'playing' | 'paused';
95
- /** Loop playback */
96
- loop: boolean;
97
- /** Gain value */
98
- gain: number;
99
- }
100
- export type DistanceModel = 'linear' | 'inverse' | 'exponential' | 'logarithmic';
101
- export interface RoomAcoustics {
102
- /** Room dimensions */
103
- dimensions: Vec3;
104
- /** Wall materials (absorption coefficients by frequency band) */
105
- materials: {
106
- left: MaterialAbsorption;
107
- right: MaterialAbsorption;
108
- floor: MaterialAbsorption;
109
- ceiling: MaterialAbsorption;
110
- front: MaterialAbsorption;
111
- back: MaterialAbsorption;
112
- };
113
- /** Air absorption coefficient */
114
- airAbsorption: number;
115
- /** Enable early reflections */
116
- earlyReflections: boolean;
117
- /** Enable late reverb */
118
- lateReverb: boolean;
119
- /** Reverb time (T60) */
120
- reverbTime: number;
121
- /** Reverb pre-delay (ms) */
122
- reverbPreDelay: number;
123
- /** Reverb wet/dry mix */
124
- reverbMix: number;
125
- }
126
- export interface MaterialAbsorption {
127
- /** Absorption at 125 Hz */
128
- low: number;
129
- /** Absorption at 500 Hz */
130
- mid: number;
131
- /** Absorption at 2000 Hz */
132
- high: number;
133
- /** Absorption at 8000 Hz */
134
- veryHigh: number;
135
- /** Scattering coefficient */
136
- scattering: number;
137
- }
138
- export declare const MATERIAL_PRESETS: Record<string, MaterialAbsorption>;
139
- export declare const DEFAULT_ROOM: RoomAcoustics;
140
- export declare class HRTFProcessor {
141
- private ctx;
142
- private config;
143
- private listener;
144
- private sources;
145
- private masterGain;
146
- private convolverLeft;
147
- private convolverRight;
148
- private merger;
149
- private room;
150
- private reverbConvolver;
151
- constructor(ctx: AudioContext, config?: Partial<HRTFConfig>);
152
- /** Load HRTF database from URL or ArrayBuffer */
153
- loadDatabase(source: string | ArrayBuffer): Promise<void>;
154
- private parseHRTFData;
155
- /** Update listener position and orientation */
156
- updateListener(listener: Partial<HRTFListener>): void;
157
- /** Create a new HRTF-processed audio source */
158
- createSource(config: Partial<HRTFSource>): string;
159
- private createSourceNode;
160
- private updateSourceHRTF;
161
- private getRelativePosition;
162
- private calculateDistanceGain;
163
- private calculateITD;
164
- private calculateILD;
165
- /** Set room acoustics for reverb */
166
- setRoom(room: RoomAcoustics | null): void;
167
- private createReverbConvolver;
168
- /** Update source position */
169
- updateSource(id: string, updates: Partial<HRTFSource>): void;
170
- /** Play a source */
171
- playSource(id: string, buffer?: AudioBuffer): void;
172
- /** Stop a source */
173
- stopSource(id: string): void;
174
- /** Remove a source */
175
- removeSource(id: string): void;
176
- /** Update all sources (call in animation frame) */
177
- update(): void;
178
- /** Dispose all resources */
179
- dispose(): void;
180
- }
@@ -1,2 +0,0 @@
1
- export { AudioManager, type SoundOptions, type MusicOptions } from './AudioManager';
2
- export { HRTFProcessor, DEFAULT_HRTF_CONFIG, DEFAULT_LISTENER, DEFAULT_ROOM, MATERIAL_PRESETS, type HRTFDatabase, type HRTFConfig, type HRTFListener, type HRTFSource, type DistanceModel, type RoomAcoustics, type MaterialAbsorption, } from './HRTFAudio';
@@ -1,112 +0,0 @@
1
- export interface CommunityConfig {
2
- projectName: string;
3
- repoUrl: string;
4
- license: 'MIT' | 'Apache-2.0' | 'BSD-3-Clause' | 'GPL-3.0';
5
- discordUrl?: string;
6
- websiteUrl?: string;
7
- maintainers: string[];
8
- }
9
- export interface GameJamEntry {
10
- id: string;
11
- title: string;
12
- author: string;
13
- description: string;
14
- url: string;
15
- thumbnailUrl: string;
16
- tags: string[];
17
- submittedAt: number;
18
- rating: number;
19
- votes: number;
20
- }
21
- export interface ShowcaseProject {
22
- id: string;
23
- title: string;
24
- author: string;
25
- description: string;
26
- url: string;
27
- thumbnailUrl: string;
28
- engineVersion: string;
29
- features: string[];
30
- stars: number;
31
- }
32
- export interface CertificationLevel {
33
- id: string;
34
- name: string;
35
- description: string;
36
- requirements: string[];
37
- badge: string;
38
- }
39
- export interface SecurityCheckItem {
40
- id: string;
41
- category: string;
42
- description: string;
43
- severity: 'critical' | 'high' | 'medium' | 'low';
44
- passed: boolean;
45
- notes?: string;
46
- }
47
- export interface RoadmapItem {
48
- id: string;
49
- title: string;
50
- description: string;
51
- status: 'planned' | 'in-progress' | 'completed' | 'deferred';
52
- milestone: string;
53
- priority: 'critical' | 'high' | 'medium' | 'low';
54
- estimatedVersion: string;
55
- }
56
- export declare function generateContributing(config: CommunityConfig): string;
57
- export declare function generateCodeOfConduct(config: CommunityConfig): string;
58
- export declare class GameJamPlatform {
59
- private entries;
60
- private jamActive;
61
- private jamTitle;
62
- private jamTheme;
63
- private jamDeadline;
64
- createJam(title: string, theme: string, durationDays: number): void;
65
- submit(entry: Omit<GameJamEntry, 'submittedAt' | 'rating' | 'votes'>): GameJamEntry | null;
66
- vote(entryId: string, rating: number): boolean;
67
- getLeaderboard(): GameJamEntry[];
68
- getEntries(tag?: string): GameJamEntry[];
69
- get info(): {
70
- title: string;
71
- theme: string;
72
- active: boolean;
73
- deadline: number;
74
- entryCount: number;
75
- timeRemaining: number;
76
- };
77
- endJam(): GameJamEntry[];
78
- }
79
- export declare class ShowcaseGallery {
80
- private projects;
81
- add(project: ShowcaseProject): void;
82
- remove(id: string): boolean;
83
- star(id: string): void;
84
- getFeatured(count?: number): ShowcaseProject[];
85
- getByFeature(feature: string): ShowcaseProject[];
86
- search(query: string): ShowcaseProject[];
87
- getAll(): ShowcaseProject[];
88
- }
89
- export declare const CERTIFICATION_LEVELS: CertificationLevel[];
90
- export declare function checkCertification(levelId: string, completedRequirements: string[]): {
91
- eligible: boolean;
92
- completed: number;
93
- total: number;
94
- missing: string[];
95
- };
96
- export declare const SECURITY_AUDIT_CHECKLIST: SecurityCheckItem[];
97
- export declare function runSecurityAudit(checks: SecurityCheckItem[]): {
98
- passed: number;
99
- failed: number;
100
- criticalFailures: SecurityCheckItem[];
101
- score: number;
102
- };
103
- export declare function generateGitHubActionsCI(_config: CommunityConfig): string;
104
- export declare const V2_ROADMAP: RoadmapItem[];
105
- export declare function getRoadmapByMilestone(milestone: string): RoadmapItem[];
106
- export declare function getRoadmapProgress(): {
107
- total: number;
108
- completed: number;
109
- inProgress: number;
110
- planned: number;
111
- percent: number;
112
- };
@@ -1 +0,0 @@
1
- export * from './Community';
@@ -1,190 +0,0 @@
1
- import type { Vec2, Vec3, Rect, Color, EntityId, Component, ComponentType } from './types';
2
- /**
3
- * Discriminated union of all built-in component types.
4
- * Use `component.type` to narrow the type safely.
5
- */
6
- export type BuiltInComponentType = 'Transform' | 'Sprite' | 'Shape' | 'Collider2D' | 'RigidBody2D' | 'Text' | 'Animator' | 'Script' | 'AudioSource' | 'ParticleEmitter' | 'CameraTarget';
7
- /**
8
- * Discriminated union mapping.
9
- * Given a component `type` literal, resolves to the concrete component interface.
10
- */
11
- export interface ComponentTypeMap {
12
- Transform: {
13
- type: 'Transform';
14
- position: Vec2;
15
- rotation: number;
16
- scale: Vec2;
17
- prevPosition: Vec2;
18
- prevRotation: number;
19
- };
20
- Sprite: {
21
- type: 'Sprite';
22
- assetId: string | null;
23
- width: number;
24
- height: number;
25
- opacity: number;
26
- layer: number;
27
- visible: boolean;
28
- };
29
- Shape: {
30
- type: 'Shape';
31
- shape: 'rect' | 'circle' | 'polygon' | 'line';
32
- fillColor: Color;
33
- strokeColor: Color;
34
- layer: number;
35
- visible: boolean;
36
- };
37
- Collider2D: {
38
- type: 'Collider2D';
39
- shape: 'aabb' | 'circle' | 'polygon';
40
- width: number;
41
- height: number;
42
- radius: number;
43
- isTrigger: boolean;
44
- };
45
- RigidBody2D: {
46
- type: 'RigidBody2D';
47
- bodyType: 'dynamic' | 'static' | 'kinematic';
48
- velocity: Vec2;
49
- mass: number;
50
- };
51
- Text: {
52
- type: 'Text';
53
- text: string;
54
- fontSize: number;
55
- fontFamily: string;
56
- };
57
- Animator: {
58
- type: 'Animator';
59
- };
60
- Script: {
61
- type: 'Script';
62
- scriptId: string;
63
- };
64
- AudioSource: {
65
- type: 'AudioSource';
66
- soundId: string;
67
- playing: boolean;
68
- };
69
- ParticleEmitter: {
70
- type: 'ParticleEmitter';
71
- rate: number;
72
- maxParticles: number;
73
- };
74
- CameraTarget: {
75
- type: 'CameraTarget';
76
- priority: number;
77
- };
78
- }
79
- /** Any concrete built-in component (discriminated union). */
80
- export type AnyBuiltInComponent = ComponentTypeMap[BuiltInComponentType] & Component;
81
- export declare function isVec2(value: unknown): value is Vec2;
82
- export declare function isVec3(value: unknown): value is Vec3;
83
- export declare function isRect(value: unknown): value is Rect;
84
- export declare function isColor(value: unknown): value is Color;
85
- export declare function isComponent(value: unknown): value is Component;
86
- export declare function isEntityId(value: unknown): value is EntityId;
87
- /** Narrow component to a specific built-in type. */
88
- export declare function isComponentOfType<T extends BuiltInComponentType>(component: Component, type: T): component is ComponentTypeMap[T] & Component;
89
- /**
90
- * Get a component with type-safe narrowing instead of `as` cast.
91
- * Returns undefined if entity doesn't have that component.
92
- */
93
- export declare function getTypedComponent<T extends BuiltInComponentType>(components: Component[], type: T): (ComponentTypeMap[T] & Component) | undefined;
94
- /**
95
- * Require a component — throws if not found (use only when guaranteed).
96
- */
97
- export declare function requireComponent<T extends BuiltInComponentType>(components: Component[], type: T, entityId: EntityId): ComponentTypeMap[T] & Component;
98
- /**
99
- * Standard event name pattern: `namespace:action`
100
- * This type restricts event names to the correct format.
101
- */
102
- export type EngineEventName = `engine:${string}` | `ecs:${string}` | `physics:${string}` | `input:${string}` | `audio:${string}` | `scene:${string}` | `render:${string}` | `network:${string}` | `editor:${string}` | `tutorial:${string}` | `plugin:${string}` | `collision:${string}` | `entity:${string}` | `sound:${string}` | `music:${string}` | `ui:${string}` | `game:${string}`;
103
- /** Known engine events with typed payloads. */
104
- export interface EngineEventMap {
105
- 'engine:start': void;
106
- 'engine:stop': void;
107
- 'engine:pause': void;
108
- 'engine:resume': void;
109
- 'ecs:entity-created': {
110
- entityId: EntityId;
111
- };
112
- 'ecs:entity-destroyed': {
113
- entityId: EntityId;
114
- };
115
- 'ecs:component-added': {
116
- entityId: EntityId;
117
- type: ComponentType;
118
- };
119
- 'ecs:component-removed': {
120
- entityId: EntityId;
121
- type: ComponentType;
122
- };
123
- 'physics:collision-enter': {
124
- entityA: EntityId;
125
- entityB: EntityId;
126
- };
127
- 'physics:collision-exit': {
128
- entityA: EntityId;
129
- entityB: EntityId;
130
- };
131
- 'input:gamepad-connected': {
132
- index: number;
133
- };
134
- 'input:gamepad-disconnected': {
135
- index: number;
136
- };
137
- 'audio:sound-play': {
138
- id: string;
139
- soundId: number;
140
- };
141
- 'audio:music-play': {
142
- id: string;
143
- };
144
- 'scene:load': {
145
- sceneId: string;
146
- };
147
- 'scene:unload': {
148
- sceneId: string;
149
- };
150
- }
151
- /**
152
- * Standard time parameter type.
153
- * Use `dt` everywhere for delta time (seconds).
154
- */
155
- export interface TimeDelta {
156
- /** Delta time in seconds since last frame. */
157
- readonly dt: number;
158
- /** Fixed delta time in seconds (for physics). */
159
- readonly fixedDt: number;
160
- /** Total elapsed time in seconds. */
161
- readonly elapsed: number;
162
- /** Frame count since start. */
163
- readonly frame: number;
164
- }
165
- /** Generic record type (replaces `Record<string, any>`). */
166
- export type StrictRecord<V = unknown> = Record<string, V>;
167
- /** JSON-serializable value (replaces `any` in serialization). */
168
- export type JsonValue = string | number | boolean | null | JsonValue[] | {
169
- [key: string]: JsonValue;
170
- };
171
- /** Callback with optional data (replaces `(...args: any[]) => void`). */
172
- export type EventCallback<T = unknown> = (data: T) => void;
173
- /**
174
- * Mark properties as strictly typed — no implicit `any` allowed.
175
- * Use instead of `Partial<T>` where undefined is meaningful.
176
- */
177
- export type StrictPartial<T> = {
178
- [K in keyof T]?: T[K] | undefined;
179
- };
180
- /**
181
- * Ensure at least one property is defined (replaces loose optionals).
182
- */
183
- export type AtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
184
- [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
185
- }[Keys];
186
- /**
187
- * Use in `default` of switch to ensure all cases are handled.
188
- * Compile-time error if a new case is added but not handled.
189
- */
190
- export declare function assertNever(value: never, message?: string): never;
@@ -1,7 +0,0 @@
1
- export * from './types';
2
- export { GameLoop, type GameLoopCallbacks } from './GameLoop';
3
- export { GameClock } from './GameClock';
4
- export { GameConfig, DEFAULT_SETTINGS, DEFAULT_PHYSICS, DEFAULT_AUDIO, DEFAULT_RENDERING, } from './GameConfig';
5
- export { EventBus, type EventHandler } from './EventBus';
6
- export { ServiceLocator, SERVICE_KEYS } from './ServiceLocator';
7
- export { v2 } from './math';
@@ -1,133 +0,0 @@
1
- export type AssetCategory = 'sprite' | 'audio' | 'tileset' | 'template' | 'font' | 'shader' | 'model3d' | 'particle' | 'animation';
2
- export type AssetLicense = 'free' | 'cc0' | 'cc-by' | 'premium' | 'subscription';
3
- export interface StoreAsset {
4
- id: string;
5
- name: string;
6
- description: string;
7
- category: AssetCategory;
8
- tags: string[];
9
- author: string;
10
- license: AssetLicense;
11
- price: number;
12
- currency: string;
13
- thumbnailUrl: string;
14
- downloadUrl: string;
15
- fileSize: number;
16
- downloads: number;
17
- rating: number;
18
- ratingCount: number;
19
- createdAt: string;
20
- updatedAt: string;
21
- version: string;
22
- compatibility: string[];
23
- preview?: string[];
24
- }
25
- export interface StoreSearchParams {
26
- query?: string;
27
- category?: AssetCategory;
28
- license?: AssetLicense;
29
- minRating?: number;
30
- maxPrice?: number;
31
- sortBy?: 'popular' | 'newest' | 'rating' | 'name' | 'price';
32
- page?: number;
33
- pageSize?: number;
34
- tags?: string[];
35
- }
36
- export interface StoreSearchResult {
37
- assets: StoreAsset[];
38
- total: number;
39
- page: number;
40
- pageSize: number;
41
- totalPages: number;
42
- }
43
- export interface InstalledAsset {
44
- asset: StoreAsset;
45
- installedAt: string;
46
- localPath: string;
47
- version: string;
48
- }
49
- export declare const BUILTIN_FREE_ASSETS: StoreAsset[];
50
- export declare class AssetStore {
51
- private installed;
52
- private allAssets;
53
- /** Search available assets. */
54
- search(params?: StoreSearchParams): StoreSearchResult;
55
- /** Get featured assets. */
56
- getFeatured(): StoreAsset[];
57
- /** Get assets by category. */
58
- getByCategory(category: AssetCategory): StoreAsset[];
59
- /** Install an asset (downloads and registers locally). */
60
- install(assetId: string, localPath: string): InstalledAsset | null;
61
- /** Uninstall an asset. */
62
- uninstall(assetId: string): boolean;
63
- /** Get installed assets. */
64
- getInstalled(): InstalledAsset[];
65
- /** Check if an asset is installed. */
66
- isInstalled(assetId: string): boolean;
67
- /** Register external assets (from remote catalog). */
68
- registerAssets(assets: StoreAsset[]): void;
69
- }
70
- export type DiffType = 'added' | 'removed' | 'modified' | 'unchanged';
71
- export interface DiffEntry {
72
- path: string;
73
- type: DiffType;
74
- oldValue?: unknown;
75
- newValue?: unknown;
76
- children?: DiffEntry[];
77
- }
78
- export interface ProjectDiff {
79
- timestamp: string;
80
- versionA: string;
81
- versionB: string;
82
- entities: DiffEntry[];
83
- scenes: DiffEntry[];
84
- assets: DiffEntry[];
85
- settings: DiffEntry[];
86
- summary: {
87
- added: number;
88
- removed: number;
89
- modified: number;
90
- unchanged: number;
91
- };
92
- }
93
- /**
94
- * Compare two serialized game projects and produce a diff.
95
- */
96
- export declare function compareProjects(projectA: Record<string, unknown>, projectB: Record<string, unknown>, versionA?: string, versionB?: string): ProjectDiff;
97
- /** Format diff as human-readable text. */
98
- export declare function formatDiff(diff: ProjectDiff): string;
99
- export interface MarketplaceConfig {
100
- /** Remote catalog endpoint URL */
101
- catalogUrl?: string;
102
- /** Max concurrent downloads */
103
- maxConcurrent: number;
104
- /** Auto-update installed plugins */
105
- autoUpdate: boolean;
106
- /** Allowed categories */
107
- categories: string[];
108
- }
109
- export declare const DEFAULT_MARKETPLACE_CONFIG: MarketplaceConfig;
110
- export interface PluginInstallResult {
111
- pluginId: string;
112
- success: boolean;
113
- version: string;
114
- message: string;
115
- }
116
- /**
117
- * Plugin Marketplace UI controller.
118
- * Extends the PluginSDK's PluginMarketplace with one-click install flow.
119
- */
120
- export declare class PluginMarketplaceUI {
121
- private config;
122
- private installing;
123
- private installHistory;
124
- constructor(config?: Partial<MarketplaceConfig>);
125
- /** Check if a plugin is currently being installed. */
126
- isInstalling(pluginId: string): boolean;
127
- /** One-click install: validate, download, activate. */
128
- installPlugin(pluginId: string, version?: string): Promise<PluginInstallResult>;
129
- /** Uninstall a plugin. */
130
- uninstallPlugin(pluginId: string): PluginInstallResult;
131
- /** Get install history. */
132
- getHistory(): PluginInstallResult[];
133
- }
@@ -1,3 +0,0 @@
1
- export * from './AssetStore';
2
- export * from './DeveloperExperience';
3
- export * from './DevTools';
@@ -1,2 +0,0 @@
1
- export { DialogueEngine, DialogueTreeBuilder, DialogueBox, ChoiceList, useTypewriter, serializeDialogueTree, deserializeDialogueTree, validateDialogueTree, findUnreachableNodes, extractTranslatableStrings, applyLocalization, DEFAULT_TEXT_SPEED, EMOTION_COLORS, createEmptyDialogueTree, } from './DialogueSystem';
2
- export type { DialogueNodeType, DialogueNode, DialogueNodeBase, StartNode, TextNode, ChoiceNode, ChoiceOption, BranchNode, SetVariableNode, CheckVariableNode, EventNode, RandomNode, EndNode, DialogueVarType, DialogueVariable, VariableCondition, ComparisonOp, DialogueCharacter, EmotionType, TextEffectType, DialogueTree, DialogueState, DialogueEventType, DialogueEvent, DialogueLocalization, DialogueBoxProps, ChoiceListProps, } from './DialogueSystem';