@nice2dev/game-engine 1.3.13 → 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 +4 -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
@@ -1,139 +0,0 @@
1
- /**
2
- * @file state-machine/StateMachineEditor.ts
3
- * @description Main State Machine Editor class
4
- * PRO-1.4: Professional Editor Features
5
- *
6
- * Features:
7
- * - Visual state machine editing
8
- * - Multi-layer support
9
- * - State/transition management
10
- * - Parameter management
11
- * - Undo/Redo history
12
- * - Copy/Paste support
13
- * - Debug integration
14
- * - Validation
15
- */
16
- import type { SMState, SMTransition, SMLayer, SMParameter, SMDefinition, SMConditionGroup, SMCondition } from '../../ai/StateMachine';
17
- import type { Vec2 } from '../../core/types';
18
- import { SMEditorMode as _SMEditorMode, SMSelection, SMViewport, SMEditorConfig, SMPendingConnection, SMDebugState, SMEditorEvent, SMEditorEventType, SMValidationResult, SMSearchOptions, SMLayoutOptions, SMLayoutResult } from './types';
19
- export declare class StateMachineEditor {
20
- private definition;
21
- private activeLayerId;
22
- private mode;
23
- private selection;
24
- private viewport;
25
- private history;
26
- private clipboard;
27
- private config;
28
- private pendingConnection;
29
- private debugState;
30
- private eventListeners;
31
- private isDirty;
32
- constructor(definition?: SMDefinition, config?: Partial<SMEditorConfig>);
33
- private createEmptyDefinition;
34
- private createDefaultLayer;
35
- getDefinition(): SMDefinition;
36
- setDefinition(definition: SMDefinition): void;
37
- getActiveLayer(): SMLayer | null;
38
- getActiveLayerId(): string | null;
39
- setActiveLayer(layerId: string): void;
40
- getLayers(): SMLayer[];
41
- getLayer(layerId: string): SMLayer | null;
42
- createLayer(name: string): SMLayer;
43
- deleteLayer(layerId: string): boolean;
44
- updateLayer(layerId: string, updates: Partial<SMLayer>): void;
45
- getStates(layerId?: string): SMState[];
46
- getState(stateId: string, layerId?: string): SMState | null;
47
- createState(name: string, type?: SMState['type'], position?: Vec2, layerId?: string): SMState;
48
- deleteState(stateId: string, layerId?: string): boolean;
49
- updateState(stateId: string, updates: Partial<SMState>, layerId?: string): void;
50
- moveState(stateId: string, position: Vec2, layerId?: string): void;
51
- moveSelectedStates(delta: Vec2): void;
52
- getTransitions(layerId?: string): SMTransition[];
53
- getTransition(transitionId: string, layerId?: string): SMTransition | null;
54
- createTransition(fromStateId: string, toStateId: string, name?: string, layerId?: string): SMTransition;
55
- deleteTransition(transitionId: string, layerId?: string): boolean;
56
- updateTransition(transitionId: string, updates: Partial<SMTransition>, layerId?: string): void;
57
- addConditionGroup(transitionId: string, mode?: 'and' | 'or', layerId?: string): SMConditionGroup;
58
- addCondition(transitionId: string, groupId: string, parameter: string, operator: SMCondition['operator'], value: boolean | number, layerId?: string): SMCondition;
59
- removeCondition(transitionId: string, groupId: string, conditionId: string, layerId?: string): boolean;
60
- getParameters(): SMParameter[];
61
- getParameter(name: string): SMParameter | null;
62
- createParameter(name: string, type: SMParameter['type'], value?: boolean | number): SMParameter;
63
- deleteParameter(name: string): boolean;
64
- updateParameter(name: string, updates: Partial<SMParameter>): void;
65
- getSelection(): SMSelection;
66
- isSelected(id: string): boolean;
67
- selectState(stateId: string, addToSelection?: boolean): void;
68
- selectTransition(transitionId: string, addToSelection?: boolean): void;
69
- selectAll(): void;
70
- deselectAll(): void;
71
- selectInRect(rect: {
72
- x: number;
73
- y: number;
74
- width: number;
75
- height: number;
76
- }): void;
77
- deleteSelected(): void;
78
- getMode(): _SMEditorMode;
79
- setMode(mode: _SMEditorMode): void;
80
- startConnection(fromStateId: string, fromPosition: Vec2): void;
81
- updateConnection(toPosition: Vec2): void;
82
- completeConnection(toStateId: string): SMTransition | null;
83
- cancelConnection(): void;
84
- getPendingConnection(): SMPendingConnection | null;
85
- getViewport(): SMViewport;
86
- setViewport(viewport: Partial<SMViewport>): void;
87
- pan(delta: Vec2): void;
88
- zoom(factor: number, center?: Vec2): void;
89
- fitToContent(padding?: number): void;
90
- resetViewport(): void;
91
- private pushHistory;
92
- canUndo(): boolean;
93
- canRedo(): boolean;
94
- undo(): boolean;
95
- redo(): boolean;
96
- private applyUndoAction;
97
- private applyRedoAction;
98
- clearHistory(): void;
99
- copy(): void;
100
- cut(): void;
101
- paste(offset?: Vec2): void;
102
- duplicate(): void;
103
- validate(): SMValidationResult;
104
- private findReachableStates;
105
- search(options: SMSearchOptions): Array<{
106
- type: 'state' | 'transition' | 'parameter';
107
- id: string;
108
- }>;
109
- autoLayout(options: SMLayoutOptions): SMLayoutResult;
110
- private layoutHorizontal;
111
- private layoutVertical;
112
- private layoutTree;
113
- private layoutRadial;
114
- private layoutForceDirected;
115
- getDebugState(): SMDebugState;
116
- setDebugEnabled(enabled: boolean): void;
117
- startPlayback(): void;
118
- stopPlayback(): void;
119
- pausePlayback(): void;
120
- resumePlayback(): void;
121
- addBreakpoint(id: string): void;
122
- removeBreakpoint(id: string): void;
123
- toggleBreakpoint(id: string): void;
124
- hasBreakpoint(id: string): boolean;
125
- on(event: SMEditorEventType, listener: (event: SMEditorEvent) => void): void;
126
- off(event: SMEditorEventType, listener: (event: SMEditorEvent) => void): void;
127
- private emit;
128
- getConfig(): SMEditorConfig;
129
- setConfig(config: Partial<SMEditorConfig>): void;
130
- isDirtyState(): boolean;
131
- markDirty(): void;
132
- markClean(): void;
133
- private generateId;
134
- private snapToGrid;
135
- private isPointInRect;
136
- screenToWorld(screenPos: Vec2): Vec2;
137
- worldToScreen(worldPos: Vec2): Vec2;
138
- }
139
- export declare function createStateMachineEditor(definition?: SMDefinition, config?: Partial<SMEditorConfig>): StateMachineEditor;
@@ -1,11 +0,0 @@
1
- /**
2
- * @file state-machine/index.ts
3
- * @description State Machine Editor exports
4
- * PRO-1.4: Professional Editor Features
5
- */
6
- export * from './types';
7
- export { StateMachineEditor, createStateMachineEditor } from './StateMachineEditor';
8
- export { SMEditorCanvas, createSMEditorCanvas } from './SMEditorCanvas';
9
- export type { SMEditorCanvasState } from './SMEditorCanvas';
10
- export { serializeStateMachine, deserializeStateMachine, downloadStateMachine, openStateMachineFile, toRuntimeDefinition, fromRuntimeDefinition, generateStateMachineTemplate, } from './serialization';
11
- export type { SMExportFormat, SMExportOptions } from './serialization';
@@ -1,23 +0,0 @@
1
- /**
2
- * @file state-machine/serialization.ts
3
- * @description Serialization utilities for State Machine Editor
4
- * PRO-1.4: Professional Editor Features
5
- */
6
- import type { SMDefinition } from '../../ai/StateMachine';
7
- export type SMExportFormat = 'json' | 'yaml' | 'typescript' | 'xml' | 'binary';
8
- export interface SMExportOptions {
9
- format: SMExportFormat;
10
- pretty: boolean;
11
- includeMetadata: boolean;
12
- includeEditorState: boolean;
13
- }
14
- export declare function serializeStateMachine(definition: SMDefinition, options?: Partial<SMExportOptions>): string;
15
- export declare function deserializeStateMachine(data: string, format?: SMExportFormat): SMDefinition;
16
- export declare function downloadStateMachine(definition: SMDefinition, filename: string, options?: Partial<SMExportOptions>): void;
17
- export declare function openStateMachineFile(): Promise<{
18
- definition: SMDefinition;
19
- filename: string;
20
- } | null>;
21
- export declare function toRuntimeDefinition(definition: SMDefinition): SMDefinition;
22
- export declare function fromRuntimeDefinition(runtime: SMDefinition): SMDefinition;
23
- export declare function generateStateMachineTemplate(type: 'simple' | 'character' | 'menu' | 'ai'): SMDefinition;
@@ -1,241 +0,0 @@
1
- /**
2
- * @file state-machine/types.ts
3
- * @description Type definitions for State Machine Editor
4
- * PRO-1.4: Professional Editor Features
5
- */
6
- import type { SMState, SMTransition, SMDefinition } from '../../ai/StateMachine';
7
- import type { Vec2 } from '../../core/types';
8
- export type SMEditorMode = 'select' | 'pan' | 'connect' | 'create-state' | 'comment';
9
- export interface SMSelection {
10
- states: Set<string>;
11
- transitions: Set<string>;
12
- }
13
- export interface SMBoxSelection {
14
- active: boolean;
15
- start: Vec2;
16
- end: Vec2;
17
- }
18
- export interface SMClipboard {
19
- states: SMEditorStateData[];
20
- transitions: SMEditorTransitionData[];
21
- }
22
- export interface SMViewport {
23
- offset: Vec2;
24
- zoom: number;
25
- minZoom: number;
26
- maxZoom: number;
27
- }
28
- export type SMEditorActionType = 'add-state' | 'remove-state' | 'move-state' | 'update-state' | 'add-transition' | 'remove-transition' | 'update-transition' | 'add-parameter' | 'remove-parameter' | 'update-parameter' | 'batch';
29
- export interface SMEditorAction {
30
- type: SMEditorActionType;
31
- data: unknown;
32
- timestamp: number;
33
- }
34
- export interface SMEditorHistory {
35
- actions: SMEditorAction[];
36
- currentIndex: number;
37
- maxSize: number;
38
- }
39
- export interface SMEditorStateData extends SMState {
40
- /** Visual state in editor */
41
- isSelected?: boolean;
42
- isHighlighted?: boolean;
43
- isActive?: boolean;
44
- isHovered?: boolean;
45
- /** Expanded in inspector */
46
- expanded?: boolean;
47
- /** Comment text (for comment type) */
48
- commentText?: string;
49
- }
50
- export interface SMEditorTransitionData extends SMTransition {
51
- isSelected?: boolean;
52
- isHighlighted?: boolean;
53
- isActive?: boolean;
54
- isHovered?: boolean;
55
- /** Bezier control points for curved transitions */
56
- bezierPoints?: Vec2[];
57
- }
58
- export interface SMPendingConnection {
59
- fromStateId: string;
60
- fromPosition: Vec2;
61
- toPosition: Vec2;
62
- }
63
- export interface SMEditorConfig {
64
- /** Grid settings */
65
- grid: {
66
- enabled: boolean;
67
- size: number;
68
- snapToGrid: boolean;
69
- color: string;
70
- subDivisions: number;
71
- };
72
- /** State visual settings */
73
- state: {
74
- width: number;
75
- height: number;
76
- cornerRadius: number;
77
- borderWidth: number;
78
- fontSize: number;
79
- iconSize: number;
80
- };
81
- /** Transition visual settings */
82
- transition: {
83
- lineWidth: number;
84
- arrowSize: number;
85
- curveStrength: number;
86
- labelOffset: number;
87
- };
88
- /** Minimap settings */
89
- minimap: {
90
- enabled: boolean;
91
- width: number;
92
- height: number;
93
- position: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
94
- };
95
- /** Interaction settings */
96
- interaction: {
97
- zoomSpeed: number;
98
- panSpeed: number;
99
- doubleClickThreshold: number;
100
- dragThreshold: number;
101
- };
102
- /** Auto-save settings */
103
- autoSave: {
104
- enabled: boolean;
105
- interval: number;
106
- };
107
- /** Debug settings */
108
- debug: {
109
- showGrid: boolean;
110
- showBounds: boolean;
111
- showIds: boolean;
112
- };
113
- }
114
- export declare const SM_STATE_COLORS: Record<string, string>;
115
- export declare const SM_STATUS_COLORS: {
116
- idle: string;
117
- active: string;
118
- transitioning: string;
119
- error: string;
120
- };
121
- export type SMEditorEventType = 'state-created' | 'state-deleted' | 'state-updated' | 'state-moved' | 'state-selected' | 'transition-created' | 'transition-deleted' | 'transition-updated' | 'transition-selected' | 'parameter-created' | 'parameter-deleted' | 'parameter-updated' | 'layer-created' | 'layer-deleted' | 'layer-updated' | 'viewport-changed' | 'mode-changed' | 'playback-started' | 'playback-stopped' | 'playback-state-changed' | 'definition-loaded' | 'definition-saved';
122
- export interface SMEditorEvent {
123
- type: SMEditorEventType;
124
- data: unknown;
125
- timestamp: number;
126
- }
127
- export interface SMPaletteCategory {
128
- id: string;
129
- name: string;
130
- icon?: string;
131
- collapsed?: boolean;
132
- items: SMPaletteItem[];
133
- }
134
- export interface SMPaletteItem {
135
- id: string;
136
- name: string;
137
- type: SMState['type'];
138
- description?: string;
139
- icon?: string;
140
- color?: string;
141
- }
142
- export interface SMValidationResult {
143
- valid: boolean;
144
- errors: SMValidationError[];
145
- warnings: SMValidationWarning[];
146
- }
147
- export interface SMValidationError {
148
- type: 'error';
149
- code: string;
150
- message: string;
151
- stateId?: string;
152
- transitionId?: string;
153
- layerId?: string;
154
- }
155
- export interface SMValidationWarning {
156
- type: 'warning';
157
- code: string;
158
- message: string;
159
- stateId?: string;
160
- transitionId?: string;
161
- layerId?: string;
162
- }
163
- export interface SMSearchOptions {
164
- query: string;
165
- searchStates: boolean;
166
- searchTransitions: boolean;
167
- searchParameters: boolean;
168
- caseSensitive: boolean;
169
- }
170
- export interface SMFilterOptions {
171
- stateTypes: Set<SMState['type']>;
172
- showMutedTransitions: boolean;
173
- showComments: boolean;
174
- layerIds: Set<string>;
175
- }
176
- export type SMLayoutType = 'horizontal' | 'vertical' | 'radial' | 'tree' | 'force-directed';
177
- export interface SMLayoutOptions {
178
- type: SMLayoutType;
179
- spacing: number;
180
- animate: boolean;
181
- preserveSelection: boolean;
182
- }
183
- export interface SMLayoutResult {
184
- positions: Map<string, Vec2>;
185
- bounds: {
186
- min: Vec2;
187
- max: Vec2;
188
- };
189
- }
190
- export interface SMDebugState {
191
- enabled: boolean;
192
- running: boolean;
193
- paused: boolean;
194
- currentStateIds: Map<string, string>;
195
- activeTransitions: Map<string, string>;
196
- parameterValues: Map<string, boolean | number>;
197
- breakpoints: Set<string>;
198
- watchExpressions: string[];
199
- history: SMDebugHistoryEntry[];
200
- historyLimit: number;
201
- }
202
- export interface SMDebugHistoryEntry {
203
- timestamp: number;
204
- type: 'state-enter' | 'state-exit' | 'transition-start' | 'transition-complete' | 'parameter-change';
205
- layerId: string;
206
- details: {
207
- stateId?: string;
208
- stateName?: string;
209
- transitionId?: string;
210
- transitionName?: string;
211
- parameterId?: string;
212
- parameterName?: string;
213
- oldValue?: unknown;
214
- newValue?: unknown;
215
- };
216
- }
217
- export interface SMTreeData {
218
- definition: SMDefinition;
219
- editorState: {
220
- viewport: SMViewport;
221
- selection: {
222
- states: string[];
223
- transitions: string[];
224
- };
225
- activeLayerId: string | null;
226
- };
227
- metadata: {
228
- version: string;
229
- exportedAt: number;
230
- editorVersion: string;
231
- };
232
- }
233
- export declare const DEFAULT_SM_EDITOR_CONFIG: SMEditorConfig;
234
- export declare function createEmptySelection(): SMSelection;
235
- export declare function createEmptyViewport(): SMViewport;
236
- export declare function createEmptyHistory(): SMEditorHistory;
237
- export declare function createEmptyClipboard(): SMClipboard;
238
- export declare function createEmptyDebugState(): SMDebugState;
239
- export declare function cloneSelection(selection: SMSelection): SMSelection;
240
- export declare function isSelectionEmpty(selection: SMSelection): boolean;
241
- export declare function mergeSelections(a: SMSelection, b: SMSelection): SMSelection;
@@ -1,2 +0,0 @@
1
- export { NiceGameEngine } from './NiceGameEngine';
2
- export type { EngineOptions } from './NiceGameEngine';
@@ -1 +0,0 @@
1
- export * from './Enterprise';
@@ -1,10 +0,0 @@
1
- export * from '../ai/AI';
2
- export * from '../xr/ARVR';
3
- export * from '../social/Social';
4
- export * from '../release/MobileExport';
5
- export * from '../editor/AdvancedEditor';
6
- export * from '../physics/PhysicsAdvanced';
7
- export * from '../audio/AudioAdvanced';
8
- export * from '../procedural/WorldBuilding';
9
- export * from '../monetization/Monetization';
10
- export * from '../enterprise/Enterprise';
@@ -1,2 +0,0 @@
1
- export * from './I18n';
2
- export * from './useTranslation';
@@ -1,3 +0,0 @@
1
- export { InputManager, PRESET_PLATFORMER, PRESET_TOPDOWN, PRESET_TWIN_STICK, type GamepadButton, type GamepadAxis, type ActionState, type ActionBinding, type InputPreset, } from './InputManager';
2
- export { GamepadNavigationProvider, useGamepadNavigation, type FocusableMeta, type GamepadNavigationContextType, } from './GamepadNavigation';
3
- export { useGamepads, useGamepadEdges, type GamepadSnapshot } from './useGamepads';
@@ -1,2 +0,0 @@
1
- export * from './KidMode';
2
- export * from './KidTools';
@@ -1,57 +0,0 @@
1
- export { I18nManager, getI18n, initI18n, t, registerEngineTranslations, ENGINE_TRANSLATIONS_EN, ENGINE_TRANSLATIONS_PL, ENGINE_TRANSLATIONS_DE, SUPPORTED_LOCALES, LOCALE_NAMES, RTL_LOCALES, } from '../i18n/I18n';
2
- export type { Locale, TranslationDict, TranslationNamespace, InterpolationValues, PluralCategory, PluralRule, I18nConfig, } from '../i18n/I18n';
3
- export { TutorialEngine, getBuiltInTutorials, TUTORIAL_FIRST_GAME, TUTORIAL_SPACE_SHOOTER, TUTORIAL_DATAGRID_BASICS, } from '../tutorials/TutorialEngine';
4
- export type { TutorialStepType, TutorialDifficulty, TutorialCategory, QuizOption, CodeValidation, TutorialStep, TutorialDefinition, TutorialProgress, TutorialEvents, CodeValidatorFn, } from '../tutorials/TutorialEngine';
5
- export { useTranslation, I18nProvider, TranslatedText, LocaleSelect } from '../i18n/useTranslation';
6
- export type { UseTranslationResult } from '../i18n/useTranslation';
7
- export { KidModeManager, DEFAULT_KID_MODE_CONFIG, KID_DIFFICULTY_PRESETS, VISUAL_BLOCKS, KID_BADGES, KID_SPRITES, } from '../kids/KidMode';
8
- export type { AgeGroup, KidDifficulty, BlockCategory, VisualBlock, BlockParam, KidSprite, KidBadge, BadgeCondition, KidProfile, ParentConfig, ClassroomConfig, KidModeConfig, KidDifficultySettings, } from '../kids/KidMode';
9
- export { getEngineError, formatEngineError, throwEngineError, warnEngine, searchAPIHints, API_HINTS, createPerfDashboard, recordPerfSnapshot, getAverageFPS, getPerfSummary, runHealthCheck, renderDebugOverlay, DEFAULT_DEBUG_OVERLAY, QUICK_START_TEMPLATES, } from '../devtools/DeveloperExperience';
10
- export type { EngineError, APIHint, PerfSnapshot, PerfDashboard, HealthCheckResult, DebugOverlayConfig, QuickStartTemplate, } from '../devtools/DeveloperExperience';
11
- export { TUTORIAL_ANIMATIONS, TUTORIAL_TILEMAPS, TUTORIAL_VISUAL_SCRIPTING, TUTORIAL_LOCAL_MULTIPLAYER, getTutorials_T05_T08, } from '../tutorials/content/Tutorials_T05_T08';
12
- export { clamp, clampPositive, assertFinite, assertPositive, assertNonNegative, assertInRange, assertNonEmpty, assertCanvasElement, validateGameSettings, validatePhysicsSettings, } from '../core/Validation';
13
- export type { ValidationResult } from '../core/Validation';
14
- export { PluginManager, PluginMarketplace, PLUGIN_TEMPLATES } from '../plugins/PluginSDK';
15
- export type { PluginState, PluginType, PluginManifest, PluginContext, PluginDefinition, ExtensionPoint, PluginStorage, PluginInstance, PluginTemplate, MarketplaceEntry, MarketplaceSearchResult, } from '../plugins/PluginSDK';
16
- export { TestPluginStorage, TestPluginContext, PluginAssertionError, pluginAssert, PluginTestRunner, createTestManifest, testPluginLifecycle, formatTestResults, } from '../plugins/PluginTestKit';
17
- export type { TestStatus, TestResult, TestSuiteResult, PluginTestCase, } from '../plugins/PluginTestKit';
18
- export { TUTORIAL_MULTIPLAYER_ONLINE, TUTORIAL_PROCEDURAL_WORLD, TUTORIAL_PLATFORMER, getTutorials_T09_T11, } from '../tutorials/content/Tutorials_T09_T11';
19
- export { TUTORIAL_RPG, TUTORIAL_TOWER_DEFENSE, TUTORIAL_3D_GAME, TUTORIAL_PUBLISHING, getTutorials_T12_T15, } from '../tutorials/content/Tutorials_T12_T15';
20
- export { FrameBudgetManager, MemoryLeakDetector, AutoLODManager, WorkerPool, PerfTimer, ObjectPool, QUALITY_PRESETS, } from '../performance/PerformanceAdvanced';
21
- export type { FrameBudgetConfig, BudgetReport, FrameBudgetSnapshot, MemoryTracker, MemorySnapshot, LeakSuspect, QualityLevel, AutoLODConfig, QualitySettings, WorkerTaskStatus, WorkerTask, WorkerPoolConfig, } from '../performance/PerformanceAdvanced';
22
- export { TutorialOverlay } from '../tutorials/TutorialOverlay';
23
- export type { OverlayConfig, TooltipPosition, OverlayAction } from '../tutorials/TutorialOverlay';
24
- export { DocRegistry, DOCS_ECS, DOCS_RENDERING } from '../docs/DocGenerator';
25
- export type { DocCategory, DocMemberKind, DocParam, DocMember, DocModule, DocSearchResult, } from '../docs/DocGenerator';
26
- export { BranchingEngine, AchievementEngine, BUILT_IN_ACHIEVEMENTS, } from '../tutorials/TutorialBranching';
27
- export type { BranchConditionType, BranchCondition, BranchRule, BranchingStep, BranchingConfig, BranchContext, AchievementTier, AchievementCondition, AchievementDefinition, AchievementProgress, } from '../tutorials/TutorialBranching';
28
- export { HotModuleReplacer, AssetPipeline, DeployManager, CollaborationManager, } from '../devtools/DevTools';
29
- export type { HMRModule, HMRUpdate, AssetType, AssetMeta, AssetProcessorOptions, DeployTarget, DeployConfig, DeployResult, CollaboratorCursor, } from '../devtools/DevTools';
30
- export { GuidedWizard, BlockEditor, KID_BLOCK_PALETTES } from '../kids/KidTools';
31
- export type { WizardChoice, WizardStep, WizardResult, BlockShape, DragBlock, BlockPalette, DragDropState, } from '../kids/KidTools';
32
- export { BenchmarkRunner, BUILTIN_BENCHMARKS } from '../performance/BenchmarkSuite';
33
- export type { BenchmarkScenario, BenchmarkTimings, BenchmarkMemory, BenchmarkResult, BenchmarkReport, RegressionResult, } from '../performance/BenchmarkSuite';
34
- export type { BuiltInComponentType, ComponentTypeMap, AnyBuiltInComponent, EngineEventName, EngineEventMap, TimeDelta, StrictRecord, JsonValue, EventCallback, StrictPartial, AtLeastOne, } from '../core/TypeSafety';
35
- export { isVec2, isVec3, isRect, isColor, isComponent, isEntityId, isComponentOfType, getTypedComponent, requireComponent, assertNever, } from '../core/TypeSafety';
36
- export { NiceTutorialEditor } from '../tutorials/TutorialEditor';
37
- export type { TutorialEditorStep, TutorialEditorState } from '../tutorials/TutorialEditor';
38
- export { TUTORIAL_SOUNDS_AND_MUSIC } from '../tutorials/content/Tutorials_T04';
39
- export { TUTORIAL_UI_DATAGRID, TUTORIAL_UI_FORM, TUTORIAL_UI_CHART, TUTORIAL_UI_TREEVIEW, TUTORIAL_UI_SCHEDULER, TUTORIAL_UI_GANTT, TUTORIAL_UI_PIVOTGRID, TUTORIAL_UI_HTMLEDITOR, TUTORIAL_UI_NAVIGATION, TUTORIAL_UI_OVERLAYS, TUTORIAL_UI_THEMES, TUTORIAL_UI_RESPONSIVE, getAllUITutorials, } from '../tutorials/content/UITutorials';
40
- export { VoiceNarrator, useVoiceNarration } from '../tutorials/VoiceNarration';
41
- export type { VoiceNarrationConfig, NarrationEvent } from '../tutorials/VoiceNarration';
42
- export { AssetStore, BUILTIN_FREE_ASSETS, compareProjects, formatDiff, PluginMarketplaceUI, } from '../devtools/AssetStore';
43
- export type { AssetCategory, StoreAsset, StoreSearchParams, StoreSearchResult, ProjectDiff, } from '../devtools/AssetStore';
44
- export { NiceAPIPlayground, PLAYGROUND_EXAMPLES } from '../docs/APIPlayground';
45
- export type { PlaygroundExample } from '../docs/APIPlayground';
46
- export { COOKBOOK_RECIPES, searchRecipes, getRecipesByCategory, getRecipeCategories, } from '../docs/Cookbook';
47
- export type { Recipe, RecipeCategory } from '../docs/Cookbook';
48
- export { GUIDE_ARCHITECTURE, GUIDE_MIGRATION, GUIDE_PERFORMANCE, GUIDE_TROUBLESHOOTING, ALL_GUIDES, getGuide, searchGuides, } from '../docs/Guides';
49
- export type { Guide, GuideSection } from '../docs/Guides';
50
- export { WebGPUContext, GPUPhysicsBroadphase, GPUParticleSystem, GPUPathfinder, isWebGPUAvailable, getWebGPUShaders, } from '../performance/WebGPUCompute';
51
- export type { WebGPUConfig, ComputeBuffer, ComputePipeline, PhysicsBroadphaseResult, } from '../performance/WebGPUCompute';
52
- export { WASMAccelerator, benchmarkWASMvsJS } from '../performance/WASMModules';
53
- export type { WASMModuleConfig, WASMExports, CollisionResult, PathResult, } from '../performance/WASMModules';
54
- export { TextureCompressor, AudioCompressor, MeshCompressor, AssetStreamer, AssetPipeline as CompressionPipeline, } from '../performance/AssetCompression';
55
- export type { TextureCompressionConfig, AudioCompressionConfig, MeshCompressionConfig, StreamingConfig, AssetManifest, AssetEntry, CompressionStats, } from '../performance/AssetCompression';
56
- export { generateContributing, generateCodeOfConduct, GameJamPlatform, ShowcaseGallery, CERTIFICATION_LEVELS, checkCertification, SECURITY_AUDIT_CHECKLIST, runSecurityAudit, generateGitHubActionsCI, V2_ROADMAP, getRoadmapByMilestone, getRoadmapProgress, } from '../community/Community';
57
- export type { CommunityConfig, GameJamEntry, ShowcaseProject, CertificationLevel, SecurityCheckItem, RoadmapItem, } from '../community/Community';
@@ -1 +0,0 @@
1
- export * from './Monetization';