@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.
- package/CHANGELOG.md +4 -0
- package/package.json +2 -2
- package/dist/types/accessibility/index.d.ts +0 -1
- package/dist/types/ai/index.d.ts +0 -1
- package/dist/types/animation/index.d.ts +0 -1
- package/dist/types/audio/HRTFAudio.d.ts +0 -180
- package/dist/types/audio/index.d.ts +0 -2
- package/dist/types/community/Community.d.ts +0 -112
- package/dist/types/community/index.d.ts +0 -1
- package/dist/types/core/TypeSafety.d.ts +0 -190
- package/dist/types/core/index.d.ts +0 -7
- package/dist/types/devtools/AssetStore.d.ts +0 -133
- package/dist/types/devtools/index.d.ts +0 -3
- package/dist/types/dialogue/index.d.ts +0 -2
- package/dist/types/docs/APIPlayground.d.ts +0 -26
- package/dist/types/docs/Cookbook.d.ts +0 -18
- package/dist/types/docs/Guides.d.ts +0 -18
- package/dist/types/docs/index.d.ts +0 -4
- package/dist/types/ecs/ECSOptimized.d.ts +0 -131
- package/dist/types/ecs/index.d.ts +0 -2
- package/dist/types/editor/NiceAnimationTimeline.d.ts +0 -114
- package/dist/types/editor/NiceLevelEditor.d.ts +0 -232
- package/dist/types/editor/NiceMaterialEditor.d.ts +0 -105
- package/dist/types/editor/NiceNodeGraph.d.ts +0 -87
- package/dist/types/editor/NiceParticleEditor.d.ts +0 -127
- package/dist/types/editor/behavior-tree/BTDebugPanel.d.ts +0 -102
- package/dist/types/editor/behavior-tree/BTEditorCanvas.d.ts +0 -79
- package/dist/types/editor/behavior-tree/BTEditorNode.d.ts +0 -58
- package/dist/types/editor/behavior-tree/BTEditorToolbar.d.ts +0 -75
- package/dist/types/editor/behavior-tree/BTNodePalette.d.ts +0 -72
- package/dist/types/editor/behavior-tree/BTPropertyPanel.d.ts +0 -66
- package/dist/types/editor/behavior-tree/BehaviorTreeEditor.d.ts +0 -186
- package/dist/types/editor/behavior-tree/index.d.ts +0 -14
- package/dist/types/editor/behavior-tree/serialization.d.ts +0 -30
- package/dist/types/editor/behavior-tree/types.d.ts +0 -299
- package/dist/types/editor/index.d.ts +0 -20
- package/dist/types/editor/state-machine/SMEditorCanvas.d.ts +0 -61
- package/dist/types/editor/state-machine/StateMachineEditor.d.ts +0 -139
- package/dist/types/editor/state-machine/index.d.ts +0 -11
- package/dist/types/editor/state-machine/serialization.d.ts +0 -23
- package/dist/types/editor/state-machine/types.d.ts +0 -241
- package/dist/types/engine/index.d.ts +0 -2
- package/dist/types/enterprise/index.d.ts +0 -1
- package/dist/types/epic/index.d.ts +0 -10
- package/dist/types/i18n/index.d.ts +0 -2
- package/dist/types/input/index.d.ts +0 -3
- package/dist/types/kids/index.d.ts +0 -2
- package/dist/types/legendary/index.d.ts +0 -57
- package/dist/types/monetization/index.d.ts +0 -1
- package/dist/types/multiplayer/NiceNetcode.d.ts +0 -434
- package/dist/types/multiplayer/index.d.ts +0 -5
- package/dist/types/network/index.d.ts +0 -2
- package/dist/types/pathfinding/index.d.ts +0 -1
- package/dist/types/performance/AssetCompression.d.ts +0 -137
- package/dist/types/performance/WASMModules.d.ts +0 -65
- package/dist/types/performance/WebGPUCompute.d.ts +0 -71
- package/dist/types/performance/index.d.ts +0 -1
- package/dist/types/physics/RapierIntegration.d.ts +0 -404
- package/dist/types/physics/index.d.ts +0 -2
- package/dist/types/plugins/index.d.ts +0 -2
- package/dist/types/procedural/index.d.ts +0 -2
- package/dist/types/release/index.d.ts +0 -1
- package/dist/types/rendering/WebGPUv2.d.ts +0 -173
- package/dist/types/rendering/index.d.ts +0 -3
- package/dist/types/runtime3d/index.d.ts +0 -2
- package/dist/types/scene/index.d.ts +0 -2
- package/dist/types/scripting/WasmCompiler.d.ts +0 -182
- package/dist/types/scripting/index.d.ts +0 -19
- package/dist/types/social/index.d.ts +0 -1
- package/dist/types/systems/NiceAI.d.ts +0 -637
- package/dist/types/systems/NiceAbility.d.ts +0 -225
- package/dist/types/systems/NiceAccessibility.d.ts +0 -230
- package/dist/types/systems/NiceAchievement.d.ts +0 -153
- package/dist/types/systems/NiceAchievementUI.d.ts +0 -196
- package/dist/types/systems/NiceAchievements.d.ts +0 -230
- package/dist/types/systems/NiceAction.d.ts +0 -81
- package/dist/types/systems/NiceAlchemy.d.ts +0 -195
- package/dist/types/systems/NiceAnalytics.d.ts +0 -493
- package/dist/types/systems/NiceAnimation.d.ts +0 -350
- package/dist/types/systems/NiceArena.d.ts +0 -215
- package/dist/types/systems/NiceAssetLoader.d.ts +0 -136
- package/dist/types/systems/NiceAuction.d.ts +0 -157
- package/dist/types/systems/NiceAudio.d.ts +0 -224
- package/dist/types/systems/NiceAugment.d.ts +0 -187
- package/dist/types/systems/NiceAura.d.ts +0 -193
- package/dist/types/systems/NiceBank.d.ts +0 -158
- package/dist/types/systems/NiceBattlePass.d.ts +0 -150
- package/dist/types/systems/NiceBehavior.d.ts +0 -160
- package/dist/types/systems/NiceBinding.d.ts +0 -96
- package/dist/types/systems/NiceBlacksmith.d.ts +0 -221
- package/dist/types/systems/NiceBuff.d.ts +0 -177
- package/dist/types/systems/NiceBuilding.d.ts +0 -207
- package/dist/types/systems/NiceBullet.d.ts +0 -167
- package/dist/types/systems/NiceCamera.d.ts +0 -252
- package/dist/types/systems/NiceCard.d.ts +0 -171
- package/dist/types/systems/NiceChat.d.ts +0 -148
- package/dist/types/systems/NiceCheat.d.ts +0 -375
- package/dist/types/systems/NiceClimbing.d.ts +0 -186
- package/dist/types/systems/NiceCloud.d.ts +0 -422
- package/dist/types/systems/NiceCollision.d.ts +0 -238
- package/dist/types/systems/NiceCombo.d.ts +0 -131
- package/dist/types/systems/NiceCommand.d.ts +0 -112
- package/dist/types/systems/NiceCompanion.d.ts +0 -182
- package/dist/types/systems/NiceController.d.ts +0 -144
- package/dist/types/systems/NiceCooking.d.ts +0 -193
- package/dist/types/systems/NiceCoroutine.d.ts +0 -101
- package/dist/types/systems/NiceCrafting.d.ts +0 -228
- package/dist/types/systems/NiceCutscene.d.ts +0 -437
- package/dist/types/systems/NiceDaily.d.ts +0 -133
- package/dist/types/systems/NiceDamage.d.ts +0 -271
- package/dist/types/systems/NiceDayNight.d.ts +0 -126
- package/dist/types/systems/NiceDebug.d.ts +0 -255
- package/dist/types/systems/NiceDestructible.d.ts +0 -150
- package/dist/types/systems/NiceDialogue.d.ts +0 -629
- package/dist/types/systems/NiceDungeon.d.ts +0 -202
- package/dist/types/systems/NiceECS.d.ts +0 -151
- package/dist/types/systems/NiceEnchant.d.ts +0 -148
- package/dist/types/systems/NiceEntityPool.d.ts +0 -127
- package/dist/types/systems/NiceEquipment.d.ts +0 -137
- package/dist/types/systems/NiceEvent.d.ts +0 -202
- package/dist/types/systems/NiceEventBus.d.ts +0 -164
- package/dist/types/systems/NiceFaction.d.ts +0 -173
- package/dist/types/systems/NiceFarming.d.ts +0 -163
- package/dist/types/systems/NiceFishing.d.ts +0 -196
- package/dist/types/systems/NiceFlocking.d.ts +0 -156
- package/dist/types/systems/NiceFog.d.ts +0 -137
- package/dist/types/systems/NiceFormation.d.ts +0 -140
- package/dist/types/systems/NiceGacha.d.ts +0 -134
- package/dist/types/systems/NiceGambling.d.ts +0 -175
- package/dist/types/systems/NiceGem.d.ts +0 -165
- package/dist/types/systems/NiceGesture.d.ts +0 -502
- package/dist/types/systems/NiceGrappling.d.ts +0 -154
- package/dist/types/systems/NiceGrid.d.ts +0 -142
- package/dist/types/systems/NiceGuild.d.ts +0 -162
- package/dist/types/systems/NiceHaptics.d.ts +0 -112
- package/dist/types/systems/NiceHousing.d.ts +0 -197
- package/dist/types/systems/NiceInput.d.ts +0 -280
- package/dist/types/systems/NiceInventory.d.ts +0 -534
- package/dist/types/systems/NiceLOD.d.ts +0 -144
- package/dist/types/systems/NiceLeaderboard.d.ts +0 -191
- package/dist/types/systems/NiceLevel.d.ts +0 -304
- package/dist/types/systems/NiceLighting.d.ts +0 -214
- package/dist/types/systems/NiceLocalization.d.ts +0 -148
- package/dist/types/systems/NiceLocomotion.d.ts +0 -398
- package/dist/types/systems/NiceLogger.d.ts +0 -117
- package/dist/types/systems/NiceLoot.d.ts +0 -176
- package/dist/types/systems/NiceMail.d.ts +0 -164
- package/dist/types/systems/NiceMap.d.ts +0 -234
- package/dist/types/systems/NiceMarriage.d.ts +0 -150
- package/dist/types/systems/NiceMastery.d.ts +0 -171
- package/dist/types/systems/NiceMatch.d.ts +0 -196
- package/dist/types/systems/NiceMatch3.d.ts +0 -118
- package/dist/types/systems/NiceMessageBus.d.ts +0 -115
- package/dist/types/systems/NiceMinimap.d.ts +0 -258
- package/dist/types/systems/NiceMining.d.ts +0 -175
- package/dist/types/systems/NiceModding.d.ts +0 -452
- package/dist/types/systems/NiceMount.d.ts +0 -152
- package/dist/types/systems/NiceNavigation.d.ts +0 -307
- package/dist/types/systems/NiceNetwork.d.ts +0 -568
- package/dist/types/systems/NiceNotification.d.ts +0 -438
- package/dist/types/systems/NiceObjective.d.ts +0 -395
- package/dist/types/systems/NiceParticle.d.ts +0 -639
- package/dist/types/systems/NiceParty.d.ts +0 -168
- package/dist/types/systems/NicePerformance.d.ts +0 -144
- package/dist/types/systems/NicePet.d.ts +0 -167
- package/dist/types/systems/NicePhotoMode.d.ts +0 -270
- package/dist/types/systems/NicePhysics.d.ts +0 -326
- package/dist/types/systems/NicePlatformer.d.ts +0 -158
- package/dist/types/systems/NicePool.d.ts +0 -128
- package/dist/types/systems/NicePortal.d.ts +0 -178
- package/dist/types/systems/NicePostProcess.d.ts +0 -254
- package/dist/types/systems/NiceProcedural.d.ts +0 -202
- package/dist/types/systems/NiceProfile.d.ts +0 -223
- package/dist/types/systems/NiceProjectile.d.ts +0 -157
- package/dist/types/systems/NicePvP.d.ts +0 -199
- package/dist/types/systems/NiceQTE.d.ts +0 -160
- package/dist/types/systems/NiceQuest.d.ts +0 -620
- package/dist/types/systems/NiceRaid.d.ts +0 -215
- package/dist/types/systems/NiceRanking.d.ts +0 -399
- package/dist/types/systems/NiceReplay.d.ts +0 -180
- package/dist/types/systems/NiceReputation.d.ts +0 -151
- package/dist/types/systems/NiceResource.d.ts +0 -200
- package/dist/types/systems/NiceRhythm.d.ts +0 -148
- package/dist/types/systems/NiceRoguelike.d.ts +0 -276
- package/dist/types/systems/NiceRune.d.ts +0 -202
- package/dist/types/systems/NiceSaveSystem.d.ts +0 -194
- package/dist/types/systems/NiceSceneManager.d.ts +0 -112
- package/dist/types/systems/NiceScore.d.ts +0 -186
- package/dist/types/systems/NiceScreenFX.d.ts +0 -235
- package/dist/types/systems/NiceScreenshot.d.ts +0 -443
- package/dist/types/systems/NiceScribe.d.ts +0 -239
- package/dist/types/systems/NiceSeason.d.ts +0 -176
- package/dist/types/systems/NiceSerialization.d.ts +0 -89
- package/dist/types/systems/NiceServiceLocator.d.ts +0 -94
- package/dist/types/systems/NiceShop.d.ts +0 -528
- package/dist/types/systems/NiceSignal.d.ts +0 -112
- package/dist/types/systems/NiceSkillTree.d.ts +0 -237
- package/dist/types/systems/NiceSocial.d.ts +0 -580
- package/dist/types/systems/NiceSpawner.d.ts +0 -237
- package/dist/types/systems/NiceSpell.d.ts +0 -216
- package/dist/types/systems/NiceState.d.ts +0 -224
- package/dist/types/systems/NiceStateMachine.d.ts +0 -108
- package/dist/types/systems/NiceStatus.d.ts +0 -116
- package/dist/types/systems/NiceStealth.d.ts +0 -204
- package/dist/types/systems/NiceSteam.d.ts +0 -255
- package/dist/types/systems/NiceStreaming.d.ts +0 -173
- package/dist/types/systems/NiceSwimming.d.ts +0 -166
- package/dist/types/systems/NiceTalent.d.ts +0 -154
- package/dist/types/systems/NiceTarget.d.ts +0 -121
- package/dist/types/systems/NiceTerrain.d.ts +0 -143
- package/dist/types/systems/NiceTilemap.d.ts +0 -218
- package/dist/types/systems/NiceTimer.d.ts +0 -153
- package/dist/types/systems/NiceTournament.d.ts +0 -190
- package/dist/types/systems/NiceTrading.d.ts +0 -238
- package/dist/types/systems/NiceTransmog.d.ts +0 -142
- package/dist/types/systems/NiceTutorial.d.ts +0 -248
- package/dist/types/systems/NiceTween.d.ts +0 -164
- package/dist/types/systems/NiceUI.d.ts +0 -364
- package/dist/types/systems/NiceVFX.d.ts +0 -333
- package/dist/types/systems/NiceVehicle.d.ts +0 -176
- package/dist/types/systems/NiceVoice.d.ts +0 -502
- package/dist/types/systems/NiceWater.d.ts +0 -162
- package/dist/types/systems/NiceWave.d.ts +0 -174
- package/dist/types/systems/NiceWaypoint.d.ts +0 -165
- package/dist/types/systems/NiceWeather.d.ts +0 -225
- package/dist/types/systems/NiceXR.d.ts +0 -187
- package/dist/types/systems/index.d.ts +0 -182
- package/dist/types/templates/index.d.ts +0 -2
- package/dist/types/tilemap/index.d.ts +0 -1
- package/dist/types/tutorials/TutorialEditor.d.ts +0 -43
- package/dist/types/tutorials/VoiceNarration.d.ts +0 -75
- package/dist/types/tutorials/content/Tutorials_T04.d.ts +0 -3
- package/dist/types/tutorials/content/UITutorials.d.ts +0 -14
- package/dist/types/tutorials/content/index.d.ts +0 -5
- package/dist/types/tutorials/index.d.ts +0 -6
- package/dist/types/ui/index.d.ts +0 -2
- package/dist/types/visual-scripting/VisualScriptDebugger.d.ts +0 -145
- package/dist/types/visual-scripting/VisualScriptExecutor.d.ts +0 -100
- package/dist/types/visual-scripting/VisualScriptGraph.d.ts +0 -173
- package/dist/types/visual-scripting/VisualScriptNode.d.ts +0 -157
- package/dist/types/visual-scripting/index.d.ts +0 -6
- package/dist/types/visual-scripting/nodes/ActionNodes.d.ts +0 -152
- package/dist/types/visual-scripting/nodes/EventNodes.d.ts +0 -95
- package/dist/types/visual-scripting/nodes/FlowControlNodes.d.ts +0 -134
- package/dist/types/visual-scripting/nodes/LogicNodes.d.ts +0 -122
- package/dist/types/visual-scripting/nodes/MathNodes.d.ts +0 -170
- package/dist/types/visual-scripting/nodes/UtilityNodes.d.ts +0 -131
- package/dist/types/visual-scripting/nodes/VariableNodes.d.ts +0 -107
- package/dist/types/visual-scripting/nodes/index.d.ts +0 -21
- package/dist/types/visual-scripting/nodes/registerNodes.d.ts +0 -29
- package/dist/types/visual-scripting/types.d.ts +0 -402
- package/dist/types/xr/WebXRLayers.d.ts +0 -319
- package/dist/types/xr/index.d.ts +0 -2
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
export type XRMode = 'inline' | 'immersive-vr' | 'immersive-ar';
|
|
2
|
-
export type HandType = 'left' | 'right';
|
|
3
|
-
export type ControllerType = 'controller' | 'hand' | 'gaze';
|
|
4
|
-
export interface Vec3 {
|
|
5
|
-
x: number;
|
|
6
|
-
y: number;
|
|
7
|
-
z: number;
|
|
8
|
-
}
|
|
9
|
-
export interface Quat {
|
|
10
|
-
x: number;
|
|
11
|
-
y: number;
|
|
12
|
-
z: number;
|
|
13
|
-
w: number;
|
|
14
|
-
}
|
|
15
|
-
export interface Pose {
|
|
16
|
-
position: Vec3;
|
|
17
|
-
orientation: Quat;
|
|
18
|
-
}
|
|
19
|
-
export interface XRControllerState {
|
|
20
|
-
id: string;
|
|
21
|
-
type: ControllerType;
|
|
22
|
-
hand: HandType;
|
|
23
|
-
connected: boolean;
|
|
24
|
-
pose: Pose;
|
|
25
|
-
grip: Pose;
|
|
26
|
-
buttons: XRButtonState[];
|
|
27
|
-
axes: number[];
|
|
28
|
-
hapticActuator: boolean;
|
|
29
|
-
profiles: string[];
|
|
30
|
-
}
|
|
31
|
-
export interface XRButtonState {
|
|
32
|
-
id: string;
|
|
33
|
-
pressed: boolean;
|
|
34
|
-
touched: boolean;
|
|
35
|
-
value: number;
|
|
36
|
-
}
|
|
37
|
-
export type HandJoint = 'wrist' | 'thumb-metacarpal' | 'thumb-phalanx-proximal' | 'thumb-phalanx-distal' | 'thumb-tip' | 'index-finger-metacarpal' | 'index-finger-phalanx-proximal' | 'index-finger-phalanx-intermediate' | 'index-finger-phalanx-distal' | 'index-finger-tip' | 'middle-finger-metacarpal' | 'middle-finger-phalanx-proximal' | 'middle-finger-phalanx-intermediate' | 'middle-finger-phalanx-distal' | 'middle-finger-tip' | 'ring-finger-metacarpal' | 'ring-finger-phalanx-proximal' | 'ring-finger-phalanx-intermediate' | 'ring-finger-phalanx-distal' | 'ring-finger-tip' | 'pinky-finger-metacarpal' | 'pinky-finger-phalanx-proximal' | 'pinky-finger-phalanx-intermediate' | 'pinky-finger-phalanx-distal' | 'pinky-finger-tip';
|
|
38
|
-
export interface HandJointPose {
|
|
39
|
-
joint: HandJoint;
|
|
40
|
-
pose: Pose;
|
|
41
|
-
radius: number;
|
|
42
|
-
}
|
|
43
|
-
export interface HandState {
|
|
44
|
-
hand: HandType;
|
|
45
|
-
visible: boolean;
|
|
46
|
-
joints: Map<HandJoint, HandJointPose>;
|
|
47
|
-
pinchStrength: number;
|
|
48
|
-
gripStrength: number;
|
|
49
|
-
}
|
|
50
|
-
export interface ARAnchor {
|
|
51
|
-
id: string;
|
|
52
|
-
pose: Pose;
|
|
53
|
-
trackingState: 'tracking' | 'paused' | 'stopped';
|
|
54
|
-
createdAt: number;
|
|
55
|
-
}
|
|
56
|
-
export interface ARPlane {
|
|
57
|
-
id: string;
|
|
58
|
-
pose: Pose;
|
|
59
|
-
orientation: 'horizontal' | 'vertical';
|
|
60
|
-
polygon: Vec3[];
|
|
61
|
-
extent: {
|
|
62
|
-
width: number;
|
|
63
|
-
height: number;
|
|
64
|
-
};
|
|
65
|
-
label?: 'floor' | 'wall' | 'ceiling' | 'table' | 'seat';
|
|
66
|
-
}
|
|
67
|
-
export interface ARHitTestResult {
|
|
68
|
-
pose: Pose;
|
|
69
|
-
plane?: ARPlane;
|
|
70
|
-
distance: number;
|
|
71
|
-
}
|
|
72
|
-
export interface ARLightEstimate {
|
|
73
|
-
primaryLightDirection: Vec3;
|
|
74
|
-
primaryLightIntensity: number;
|
|
75
|
-
sphericalHarmonicsCoefficients: Float32Array;
|
|
76
|
-
}
|
|
77
|
-
export interface PlayArea {
|
|
78
|
-
bounds: Vec3[];
|
|
79
|
-
center: Vec3;
|
|
80
|
-
size: {
|
|
81
|
-
width: number;
|
|
82
|
-
depth: number;
|
|
83
|
-
};
|
|
84
|
-
isConfigured: boolean;
|
|
85
|
-
}
|
|
86
|
-
export type XREventType = 'session-start' | 'session-end' | 'controller-connected' | 'controller-disconnected' | 'select-start' | 'select-end' | 'squeeze-start' | 'squeeze-end' | 'input-changed' | 'hand-tracking-start' | 'hand-tracking-end' | 'anchor-created' | 'anchor-updated' | 'anchor-removed' | 'plane-detected' | 'plane-updated' | 'plane-removed' | 'visibility-changed' | 'boundary-crossed' | 'error';
|
|
87
|
-
export interface XREvent {
|
|
88
|
-
type: XREventType;
|
|
89
|
-
timestamp: number;
|
|
90
|
-
data: unknown;
|
|
91
|
-
}
|
|
92
|
-
export type XREventCallback = (event: XREvent) => void;
|
|
93
|
-
export interface XRConfig {
|
|
94
|
-
/** Preferred mode */
|
|
95
|
-
preferredMode: XRMode;
|
|
96
|
-
/** Required features */
|
|
97
|
-
requiredFeatures: string[];
|
|
98
|
-
/** Optional features */
|
|
99
|
-
optionalFeatures: string[];
|
|
100
|
-
/** Frame rate */
|
|
101
|
-
frameRate: 72 | 80 | 90 | 120;
|
|
102
|
-
/** Reference space type */
|
|
103
|
-
referenceSpaceType: XRReferenceSpaceType;
|
|
104
|
-
/** Enable hand tracking */
|
|
105
|
-
handTracking: boolean;
|
|
106
|
-
/** Enable hit testing */
|
|
107
|
-
hitTesting: boolean;
|
|
108
|
-
/** Enable plane detection */
|
|
109
|
-
planeDetection: boolean;
|
|
110
|
-
/** Enable anchors */
|
|
111
|
-
anchors: boolean;
|
|
112
|
-
/** Enable light estimation */
|
|
113
|
-
lightEstimation: boolean;
|
|
114
|
-
/** Teleport enabled */
|
|
115
|
-
teleportEnabled: boolean;
|
|
116
|
-
/** Teleport max distance */
|
|
117
|
-
teleportMaxDistance: number;
|
|
118
|
-
/** Comfort vignette */
|
|
119
|
-
comfortVignette: boolean;
|
|
120
|
-
}
|
|
121
|
-
export declare const DEFAULT_XR_CONFIG: XRConfig;
|
|
122
|
-
export declare class NiceXR {
|
|
123
|
-
private config;
|
|
124
|
-
private xr;
|
|
125
|
-
private session;
|
|
126
|
-
private referenceSpace;
|
|
127
|
-
private controllers;
|
|
128
|
-
private hands;
|
|
129
|
-
private anchors;
|
|
130
|
-
private planes;
|
|
131
|
-
private playArea;
|
|
132
|
-
private lightEstimate;
|
|
133
|
-
private eventListeners;
|
|
134
|
-
private frameCallback;
|
|
135
|
-
private isSupported;
|
|
136
|
-
private isSessionActive;
|
|
137
|
-
constructor(config?: Partial<XRConfig>);
|
|
138
|
-
on(event: XREventType, callback: XREventCallback): () => void;
|
|
139
|
-
private emit;
|
|
140
|
-
private checkSupport;
|
|
141
|
-
isXRSupported(mode?: XRMode): Promise<boolean>;
|
|
142
|
-
isVRSupported(): Promise<boolean>;
|
|
143
|
-
isARSupported(): Promise<boolean>;
|
|
144
|
-
startSession(mode?: XRMode): Promise<boolean>;
|
|
145
|
-
endSession(): Promise<void>;
|
|
146
|
-
private onSessionEnd;
|
|
147
|
-
private onInputSourcesChange;
|
|
148
|
-
private addInputSource;
|
|
149
|
-
private removeInputSource;
|
|
150
|
-
private getSourceId;
|
|
151
|
-
private startHandTracking;
|
|
152
|
-
private onSelect;
|
|
153
|
-
private onSelectStart;
|
|
154
|
-
private onSelectEnd;
|
|
155
|
-
private onSqueeze;
|
|
156
|
-
private onSqueezeStart;
|
|
157
|
-
private onSqueezeEnd;
|
|
158
|
-
private onVisibilityChange;
|
|
159
|
-
setFrameCallback(callback: (time: number, frame: XRFrame) => void): void;
|
|
160
|
-
startFrameLoop(): void;
|
|
161
|
-
private onFrame;
|
|
162
|
-
private updateInputSource;
|
|
163
|
-
private updateHandJoints;
|
|
164
|
-
private xrPoseToPose;
|
|
165
|
-
private vec3Distance;
|
|
166
|
-
private updatePlayArea;
|
|
167
|
-
getPlayArea(): PlayArea | null;
|
|
168
|
-
vibrate(hand: HandType, intensity?: number, duration?: number): void;
|
|
169
|
-
hitTest(_origin: Vec3, _direction: Vec3): Promise<ARHitTestResult[]>;
|
|
170
|
-
createAnchor(pose: Pose): Promise<string | null>;
|
|
171
|
-
removeAnchor(id: string): boolean;
|
|
172
|
-
getAnchor(id: string): ARAnchor | undefined;
|
|
173
|
-
getAllAnchors(): ARAnchor[];
|
|
174
|
-
getAllPlanes(): ARPlane[];
|
|
175
|
-
getLightEstimate(): ARLightEstimate | null;
|
|
176
|
-
teleportTo(position: Vec3): void;
|
|
177
|
-
getController(hand: HandType): XRControllerState | undefined;
|
|
178
|
-
getAllControllers(): XRControllerState[];
|
|
179
|
-
getHand(hand: HandType): HandState | undefined;
|
|
180
|
-
isHandTracking(): boolean;
|
|
181
|
-
getSession(): XRSession | null;
|
|
182
|
-
getReferenceSpace(): XRReferenceSpace | null;
|
|
183
|
-
isActive(): boolean;
|
|
184
|
-
getMode(): XRMode | null;
|
|
185
|
-
destroy(): Promise<void>;
|
|
186
|
-
}
|
|
187
|
-
export declare function createXRSystem(config?: Partial<XRConfig>): NiceXR;
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
export * from './LightingSystem';
|
|
2
|
-
export * from './ParticleSystem2';
|
|
3
|
-
export * from './PhysicsDebugSystem';
|
|
4
|
-
export * from './TerrainSystem';
|
|
5
|
-
export { NiceSaveSystem, LocalStorageAdapter, MemoryStorageAdapter, IndexedDBAdapter, createSaveSystem, DEFAULT_SAVE_CONFIG, } from './NiceSaveSystem';
|
|
6
|
-
export type { SaveSlotId, SaveMetadata, SaveData, SaveSystemConfig, SaveEventType, SaveEvent, SaveEventCallback, StorageAdapter, CloudSaveAdapter, SaveMigration, Checkpoint, } from './NiceSaveSystem';
|
|
7
|
-
export { NiceAchievements, createAchievementSystem, createProgressAchievement, createTieredAchievements, DEFAULT_ACHIEVEMENT_CONFIG, } from './NiceAchievements';
|
|
8
|
-
export type { AchievementId, StatId, LeaderboardId, AchievementRarity, AchievementCategory, AchievementDefinition, AchievementCondition, AchievementReward, AchievementState, UnlockNotification, StatDefinition, StatState, LeaderboardDefinition, LeaderboardEntry, AchievementEventType, AchievementEvent, AchievementEventCallback, PlatformAchievementAdapter, AchievementSystemConfig, } from './NiceAchievements';
|
|
9
|
-
export { NiceSkillTree, createSkillTree, createPassiveSkill, createActiveSkill, DEFAULT_SKILL_CONFIG, } from './NiceSkillTree';
|
|
10
|
-
export type { SkillId, SkillTreeId, BuildPresetId, SkillType, SkillCategory, SkillModifier, SkillEffect, SkillDefinition, SkillTreeDefinition, SkillState, SkillTreeState, BuildPreset, SkillEventType, SkillEvent, SkillEventCallback, SkillTreeConfig, } from './NiceSkillTree';
|
|
11
|
-
export { NiceCrafting, createCraftingSystem, DEFAULT_CRAFTING_CONFIG } from './NiceCrafting';
|
|
12
|
-
export type { RecipeId, ItemId, StationId, CraftingCategoryId, CraftingQuality, RecipeDiscoveryType, CraftingItem, ItemStack, RecipeIngredient, RecipeOutput, RecipeDefinition, CraftingStationDefinition, CraftingStationState, ActiveCraft, CraftingResult, CraftingSkillState, CraftingEventType, CraftingEvent, CraftingEventCallback, CraftingConfig, } from './NiceCrafting';
|
|
13
|
-
export { NiceWeather, createWeatherSystem, DEFAULT_WEATHER_CONFIG, DEFAULT_WEATHER_PRESETS, DEFAULT_SEASONS, } from './NiceWeather';
|
|
14
|
-
export type { WeatherId, BiomeId, SeasonId, TimeOfDay, WeatherDefinition, WeatherState, WeatherForecast, TimeState, TimeConfig, SeasonDefinition, BiomeDefinition, EnvironmentState, WeatherEventType, WeatherEvent, WeatherEventCallback, WeatherSystemConfig, } from './NiceWeather';
|
|
15
|
-
export { NiceFaction, createFactionSystem, DEFAULT_REPUTATION_TIERS, DEFAULT_FACTION_CONFIG, } from './NiceFaction';
|
|
16
|
-
export type { FactionId, ReputationTier, FactionDefinition, FactionRelationship, ReputationTierDefinition, FactionState, ReputationModifier, ReputationGain, FactionReward, DiplomaticStatus, DiplomaticState, FactionEventType, FactionEvent, FactionEventCallback, FactionSystemConfig, } from './NiceFaction';
|
|
17
|
-
export { NiceLoot, createLootSystem, DEFAULT_RARITY_CONFIG, DEFAULT_LOOT_CONFIG } from './NiceLoot';
|
|
18
|
-
export type { LootTableId, LootItemId, RarityTier, LootItemDefinition, LootEntry, LootCondition, GuaranteedDrop, LootTableDefinition, LootDrop, LootResult, LootContext, RarityConfig, LootEventType, LootEvent, LootEventCallback, LootSystemConfig, } from './NiceLoot';
|
|
19
|
-
export { NiceCamera, createCameraSystem, DEFAULT_CAMERA_CONFIG, EASING } from './NiceCamera';
|
|
20
|
-
export type { CameraId, CameraMode, Vec3, Quaternion, Bounds, CameraDefinition, CameraFollowSettings, CameraOrbitSettings, CameraIsometricSettings, CameraState, CameraShake, CameraTransition, EasingFunction, CameraKeyframe, CinematicSequence, ScreenEffect, CameraEventType, CameraEvent, CameraEventCallback, CameraSystemConfig, } from './NiceCamera';
|
|
21
|
-
export { NiceAudio, createAudioSystem, DEFAULT_AUDIO_CONFIG } from './NiceAudio';
|
|
22
|
-
export type { SoundId, SoundBankId, AudioCategory, SoundDefinition, MusicTrack, AmbientLayer, SoundInstance, MusicState, SoundBank, AudioEventType, AudioEvent, AudioEventCallback, } from './NiceAudio';
|
|
23
|
-
export { NiceInput, createInputSystem, DEFAULT_INPUT_CONFIG } from './NiceInput';
|
|
24
|
-
export type { ActionId, AxisId, InputDevice, KeyCode, MouseButton, GamepadButton, GamepadAxis, KeyBinding, MouseBinding, GamepadButtonBinding, GamepadAxisBinding, TouchBinding, InputBinding, ActionDefinition, AxisDefinition, ActionState, AxisState, MouseState, TouchState, GamepadState, InputFrame, InputRecording, InputEventType, InputEvent, InputEventCallback, InputContext, InputConfig, } from './NiceInput';
|
|
25
|
-
export { NiceLocalization, createLocalizationSystem, DEFAULT_LOCALIZATION_CONFIG, } from './NiceLocalization';
|
|
26
|
-
export type { LocaleId, TranslationKey, Namespace, PluralCategory, Gender, TranslationValue, TranslationEntry, TranslationNamespace, LocaleDefinition, InterpolationOptions, LocaleEventType, LocaleEvent, LocaleEventCallback, LocalizationConfig, TFunction, } from './NiceLocalization';
|
|
27
|
-
export { Pool, NicePool, createPoolManager, createSimplePool, createVec2Pool, createVec3Pool, DEFAULT_POOL_CONFIG, } from './NicePool';
|
|
28
|
-
export type { PoolableObject, PoolFactory, PoolConfig, PoolStats, PoolEventType, PoolEvent, PoolEventCallback, Vec2Poolable, Vec3Poolable, } from './NicePool';
|
|
29
|
-
export { NiceTimer, createTimerSystem, SequenceBuilder, buildSequence, DEFAULT_TIMER_CONFIG, } from './NiceTimer';
|
|
30
|
-
export type { TimerId, TimerGroupId, TimerCallback, TimerCompleteCallback, TimerConfig, TimerState, ScheduledTask, SequenceStep, TimerEventType, TimerEvent, TimerEventCallback, } from './NiceTimer';
|
|
31
|
-
export { NiceTween, createTweenSystem, TweenSequence, EASINGS, TWEEN_EASINGS, lerpColor, hexToRgb, rgbToHex, tweenPath, bezierPoint, } from './NiceTween';
|
|
32
|
-
export type { TweenId, EasingName, EasingFn, TweenProperty, TweenConfig, TweenState, RGB, RGBA, TweenEventType, TweenEvent, TweenEventCallback, } from './NiceTween';
|
|
33
|
-
export { NiceDebug, createDebugSystem, getGlobalDebug, setGlobalDebug, DEFAULT_DEBUG_CONFIG, } from './NiceDebug';
|
|
34
|
-
export type { LogLevel, ProfilerCategory, LogEntry, LogFilter, ProfilerSample, FrameStats, ProfilerReport, MemorySnapshot, AllocationTracker, DebugLine, DebugCircle, DebugBox, DebugText, DebugPrimitive, AssertionConfig, DebugEventType, DebugEvent, DebugEventCallback, DebugConfig, } from './NiceDebug';
|
|
35
|
-
export { NiceEvent, createEventBus, TypedEventBus, createGameEventBus, DEFAULT_EVENT_CONFIG, } from './NiceEventBus';
|
|
36
|
-
export type { EventName, EventCallback, GameEvent, EventListener, QueuedEvent, EventStats, EventBusConfig, TypedEventMap, CommonGameEvents, } from './NiceEventBus';
|
|
37
|
-
export { NiceScene, createSceneManager, DEFAULT_SCENE_CONFIG, DEFAULT_TRANSITION, } from './NiceSceneManager';
|
|
38
|
-
export type { SceneId, SceneGroupId, SceneState, SceneDefinition, SceneInstance, TransitionType, SceneTransition, LoadingScreen, SceneEventType, SceneEvent, SceneEventCallback, SceneManagerConfig, } from './NiceSceneManager';
|
|
39
|
-
export { NiceECS, createECS, defineComponent, defineSystem, DEFAULT_ECS_CONFIG } from './NiceECS';
|
|
40
|
-
export type { EntityId, ComponentType, SystemId, QueryId, TagId, GroupId, PrefabId, Component, ComponentDefinition, Entity, EntityData, SystemPriority, System, QueryDefinition, Prefab, ECSEventType, ECSEvent, ECSEventCallback, ECSConfig, } from './NiceECS';
|
|
41
|
-
export { NiceAnimation, createAnimationSystem, ClipBuilder, StateMachineBuilder, buildClip, buildStateMachine, DEFAULT_ANIMATION_CONFIG, } from './NiceAnimation';
|
|
42
|
-
export type { AnimationId, ClipId, BoneId, StateId, PlaybackState, BlendMode as AnimBlendMode, Keyframe, AnimationClip, AnimationInstance, Bone, Skeleton, IKChain, AnimatorStateMachine, AnimationEventType, AnimationEvent, AnimationEventCallback, } from './NiceAnimation';
|
|
43
|
-
export { NiceCollision, createCollisionSystem, DEFAULT_COLLISION_CONFIG } from './NiceCollision';
|
|
44
|
-
export type { ColliderId as CollisionColliderId, Vec2 as CollisionVec2, AABB, Circle, OBB, Polygon, Capsule, Collider as CollisionCollider, CollisionManifold, RaycastHit as CollisionRaycastHit, CollisionEventType, CollisionEvent, CollisionEventCallback, CollisionConfig, } from './NiceCollision';
|
|
45
|
-
export { NiceState, createStateMachine, StateBuilder, TransitionBuilder, MachineBuilder, state, transition, machine, createSimpleFSM, createToggleMachine, createSequenceMachine, DEFAULT_STATE_CONFIG, } from './NiceState';
|
|
46
|
-
export type { MachineId, StateId as StateMachineStateId, TransitionId as StateMachineTransitionId, StateDefinition as StateMachineStateDef, GuardFunction, ActionFunction, StateEvent, } from './NiceState';
|
|
47
|
-
export { NiceResource, createResourceManager, loadManifest, loadManifestFromUrl, DEFAULT_RESOURCE_CONFIG, } from './NiceResource';
|
|
48
|
-
export type { AssetId, BundleId, AssetType, Asset, AssetLoader, AssetBundle, AssetManifest, ResourceEventType, ResourceEvent, ResourceEventCallback, ResourceConfig, } from './NiceResource';
|
|
49
|
-
export { NiceParticle, createParticleSystem, PARTICLE_PRESETS, DEFAULT_PARTICLE_CONFIG, DEFAULT_EMITTER_CONFIG, } from './NiceParticle';
|
|
50
|
-
export type { EmitterId, ParticleId, EmitterShape, EmissionMode, BlendMode as ParticleBlendMode, SortMode, Vec2 as ParticleVec2, Vec3 as ParticleVec3, Color as ParticleColor, MinMax, Curve, ValueOverLifetime, ColorOverLifetime, ColorGradient, Particle, BoxShape, CircleShape, SphereShape, ConeShape, LineShape, RingShape, PointShape, ShapeConfig, GravityForce, WindForce, AttractorForce, VortexForce, NoiseForce, DragForce, Force, Burst, EmissionConfig, TextureConfig, TrailConfig, CollisionConfig as ParticleCollisionConfig, SubEmitterConfig, EmitterConfig, EmitterInstance, ParticleEventType, ParticleEvent, ParticleEventCallback, ParticleSystemConfig, } from './NiceParticle';
|
|
51
|
-
export { NicePhysics, createPhysicsWorld, createDynamicBody, createStaticBody, createKinematicBody, DEFAULT_PHYSICS_CONFIG, DEFAULT_MATERIAL, } from './NicePhysics';
|
|
52
|
-
export type { BodyId, ColliderId as PhysicsColliderId, JointId, BodyType, ColliderType, JointType, Vec2 as PhysicsVec2, Vec3 as PhysicsVec3, Quaternion as PhysicsQuaternion, PhysicsMaterial, BaseCollider, BoxCollider, CircleCollider, SphereCollider, CapsuleCollider, PolygonCollider, PlaneCollider, Collider as PhysicsCollider, RigidBodyConfig, RigidBody, BaseJoint, FixedJoint, DistanceJoint, SpringJoint, RevoluteJoint, PrismaticJoint, RopeJoint, Joint, ContactPoint, CollisionInfo, RaycastHit as PhysicsRaycastHit, RaycastOptions, OverlapResult, PhysicsEventType, PhysicsEvent, PhysicsEventCallback, PhysicsConfig, } from './NicePhysics';
|
|
53
|
-
export { NiceNavigation, createNavigationSystem, pathToPositions, getPathProgress, DEFAULT_NAVIGATION_CONFIG, } from './NiceNavigation';
|
|
54
|
-
export type { NavMeshId, AgentId, ObstacleId, WaypointId, AreaId, PathfindingAlgorithm, HeuristicType, Vec2 as NavVec2, Vec3 as NavVec3, CellType, GridCell, NavigationGrid, GridConfig, NavMeshVertex, NavMeshEdge, NavMeshPolygon, NavMesh, Waypoint, WaypointGraph, PathNode, NavigationPath, PathRequest, PathResult, AgentState, NavigationAgent, AgentConfig, ObstacleShape, DynamicObstacle, FlowField, NavigationArea, NavigationEventType, NavigationEvent, NavigationEventCallback, NavigationConfig, } from './NiceNavigation';
|
|
55
|
-
export { NiceUI, createUISystem, createPanel, createLabel, createButton, createProgressBar, createTextInput, Easings, DEFAULT_UI_CONFIG, DEFAULT_STYLE, } from './NiceUI';
|
|
56
|
-
export type { WidgetId, LayerId, StyleId, WidgetType, AnchorPreset, LayoutType, Vec2 as UIVec2, Rect, Color as UIColor, Padding, TextStyle, BackgroundStyle, BorderStyle, WidgetStyle, Theme, WidgetConfig, Widget, UILayer, InputState, UIAnimation, UIEventType, UIEvent, UIEventCallback, UIConfig, } from './NiceUI';
|
|
57
|
-
export { NiceSpawner, createSpawnerSystem, DEFAULT_SPAWNER_CONFIG } from './NiceSpawner';
|
|
58
|
-
export type { SpawnerId, SpawnPointId, WaveId, SpawnPattern, SpawnCondition, SpawnRequest, SpawnResult, SpawnerEventType, SpawnerEvent, SpawnerEventCallback, SpawnerConfig, } from './NiceSpawner';
|
|
59
|
-
export { NiceDamage, createDamageSystem, DEFAULT_DAMAGE_CONFIG } from './NiceDamage';
|
|
60
|
-
export type { DamageModifier, DamageResult, DamageEventType, DamageEvent, DamageEventCallback, DamageConfig, } from './NiceDamage';
|
|
61
|
-
export { NiceAbility, createAbilitySystem, DEFAULT_ABILITY_CONFIG } from './NiceAbility';
|
|
62
|
-
export type { AbilityId, AbilityState, AbilityCost, AbilityEffect, AbilityDefinition, AbilityEventType, AbilityEvent, AbilityEventCallback, AbilityConfig, } from './NiceAbility';
|
|
63
|
-
export { NiceMinimap, createMinimapSystem, DEFAULT_MINIMAP_CONFIG } from './NiceMinimap';
|
|
64
|
-
export type { MinimapMarker, MinimapEventType, MinimapEvent, MinimapEventCallback, MinimapConfig, } from './NiceMinimap';
|
|
65
|
-
export { NiceLeaderboard, createLeaderboardSystem, DEFAULT_LEADERBOARD_CONFIG, } from './NiceLeaderboard';
|
|
66
|
-
export type { EntryId, LeaderboardEventType, LeaderboardEvent, LeaderboardEventCallback, LeaderboardConfig, } from './NiceLeaderboard';
|
|
67
|
-
export { NiceTutorial, createTutorialSystem, DEFAULT_TUTORIAL_CONFIG } from './NiceTutorial';
|
|
68
|
-
export type { TutorialId, StepId, TutorialStep, TutorialDefinition, TutorialProgress, TutorialState, TutorialEventType, TutorialEvent, TutorialEventCallback, TutorialConfig, } from './NiceTutorial';
|
|
69
|
-
export { NiceBuilding, createBuildingSystem, DEFAULT_BUILDING_CONFIG } from './NiceBuilding';
|
|
70
|
-
export type { BuildingId, BlueprintId, GridCell as BuildingGridCell, BuildingState, BuildingInstance, BuildingEventType, BuildingEvent, BuildingEventCallback, BuildingConfig, } from './NiceBuilding';
|
|
71
|
-
export { NiceLevel, createLevelSystem, DEFAULT_LEVEL_CONFIG } from './NiceLevel';
|
|
72
|
-
export type { LevelId, LevelDefinition, LevelState, LevelEventType, LevelEvent, LevelEventCallback, LevelConfig, } from './NiceLevel';
|
|
73
|
-
export { NiceFog, createFogSystem, DEFAULT_FOG_CONFIG } from './NiceFog';
|
|
74
|
-
export type { FogCell, FogEventType, FogEvent, FogEventCallback, FogConfig } from './NiceFog';
|
|
75
|
-
export { NiceReplay, createReplaySystem, DEFAULT_REPLAY_CONFIG } from './NiceReplay';
|
|
76
|
-
export type { ReplayId, PlaybackState as ReplayPlaybackState, ReplayFrame, ReplayMetadata, ReplayData, ReplayEventType, ReplayEvent, ReplayEventCallback, ReplayConfig, } from './NiceReplay';
|
|
77
|
-
export { NiceScore, createScoreSystem, DEFAULT_SCORE_CONFIG } from './NiceScore';
|
|
78
|
-
export type { MultiplierType, ScorePopup, ComboState, ScoreEventType, ScoreEvent, ScoreEventCallback, ScoreConfig, } from './NiceScore';
|
|
79
|
-
export { NiceFormation, createFormationSystem, DEFAULT_FORMATION_CONFIG } from './NiceFormation';
|
|
80
|
-
export type { FormationId, UnitId, FormationPattern, FormationSlot, FormationEventType, FormationEvent, FormationEventCallback, FormationConfig, } from './NiceFormation';
|
|
81
|
-
export { NiceWave, createWaveSystem, DEFAULT_WAVE_CONFIG } from './NiceWave';
|
|
82
|
-
export type { WaveId as WaveSystemWaveId, WaveObjective, WaveDefinition, WaveState, WaveEventType, WaveEvent, WaveEventCallback, } from './NiceWave';
|
|
83
|
-
export { NiceProfile, createProfileSystem, DEFAULT_PROFILE_CONFIG } from './NiceProfile';
|
|
84
|
-
export type { ProfileId, BadgeId, TitleId, ProfileBadge, ProfileTitle, ProfileCustomization, ProfilePreferences, PlaySession, ProfileEventType, ProfileEvent, ProfileEventCallback, ProfileConfig, } from './NiceProfile';
|
|
85
|
-
export { NiceMatch, createMatchSystem, DEFAULT_MATCH_CONFIG } from './NiceMatch';
|
|
86
|
-
export type { MatchId, LobbyId, PartyId, PlayerId as MatchPlayerId, MatchState, MatchPlayer, LobbySettings, LobbyState, Party, MatchEventType, MatchEvent, MatchEventCallback, MatchConfig, } from './NiceMatch';
|
|
87
|
-
export { NiceAchievementUI, createAchievementUISystem, DEFAULT_ACHIEVEMENT_UI_CONFIG, } from './NiceAchievementUI';
|
|
88
|
-
export type { NotificationPosition, AchievementNotification, AchievementUIEventType, AchievementUIEvent, AchievementUIEventCallback, AchievementUIConfig, } from './NiceAchievementUI';
|
|
89
|
-
export { NiceController, createControllerSystem, DEFAULT_CONTROLLER_CONFIG, } from './NiceController';
|
|
90
|
-
export type { ControllerId, ButtonState, AxisState as ControllerAxisState, ControllerState, ActionBinding, ControllerEventType, ControllerEvent, ControllerEventCallback, ControllerConfig, } from './NiceController';
|
|
91
|
-
export { NiceProcedural, createProceduralSystem, SeededRandom, PerlinNoise, WorleyNoise, DungeonGenerator, MazeGenerator, HeightmapGenerator, NameGenerator, WaveFunctionCollapse, } from './NiceProcedural';
|
|
92
|
-
export type { DungeonConfig, DungeonResult, MazeConfig, HeightmapConfig, WFCTile, WFCConfig, } from './NiceProcedural';
|
|
93
|
-
export { NiceVFX, createVFXSystem, VFX_COLORS, DEFAULT_VFX_CONFIG } from './NiceVFX';
|
|
94
|
-
export type { TrailEffect, TextPopup, ImpactEffect, VFXEventType, VFXEvent, VFXConfig, } from './NiceVFX';
|
|
95
|
-
export { NiceCommand, createCommandSystem, BaseCommand, FunctionCommand, PropertyCommand, BatchCommand, createCommand, createPropertyCommand, createBatchCommand, DEFAULT_COMMAND_CONFIG, } from './NiceCommand';
|
|
96
|
-
export type { CommandId, Command, CommandEventType, CommandEvent, CommandConfig, } from './NiceCommand';
|
|
97
|
-
export { NiceGrid, createGrid, createBooleanGrid, createNumberGrid, SparseGrid, createSparseGrid, DIRECTIONS, CARDINAL_DIRECTIONS, ALL_DIRECTIONS, } from './NiceGrid';
|
|
98
|
-
export type { GridPosition, GridSize, GridCellCallback, GridCellPredicate, GridCellMapper, CardinalDirection, DiagonalDirection, Direction, GridCell as NiceGridCell, } from './NiceGrid';
|
|
99
|
-
export { NiceTilemap, Tileset, TilemapLayer, createTilemap, createIsometricTilemap, createHexTilemap, AUTOTILE_BLOB_47, } from './NiceTilemap';
|
|
100
|
-
export type { TilePosition, WorldPosition, TileRect, TileData, TileProperties, Tile, TileAnimation, TilesetConfig, LayerConfig, AutoTileRule, AutoTileConfig, TilemapEventType, TilemapEvent, TilemapConfig, Chunk, } from './NiceTilemap';
|
|
101
|
-
export { NiceStateMachine, State, HierarchicalStateMachine, PushdownStateMachine, createStateMachine as createNiceStateMachine, createHierarchicalStateMachine, createPushdownStateMachine, } from './NiceStateMachine';
|
|
102
|
-
export type { StateId as NiceStateId, ActionType, TransitionConfig, StateMachineEventType, StateMachineEvent, StateMachineConfig, } from './NiceStateMachine';
|
|
103
|
-
export { NiceCoroutine, createCoroutineSystem, WaitForSeconds, WaitForFrames, WaitForCondition, WaitForCoroutine, WaitForAll, WaitForAny, waitForSeconds, waitForFrames, waitUntil, waitForCoroutine, waitForAll, waitForAny, DEFAULT_COROUTINE_CONFIG, } from './NiceCoroutine';
|
|
104
|
-
export type { CoroutineId, CoroutineFunction, YieldInstruction, CoroutineState, CoroutineInstance, CoroutineEventType, CoroutineEvent, CoroutineConfig, } from './NiceCoroutine';
|
|
105
|
-
export { NiceEntityPool, createEntityPool, registerCommonComponents, BasePooledComponent, TransformComponent, VelocityComponent, SpriteComponent, HealthComponent, LifetimeComponent, DEFAULT_ENTITY_POOL_CONFIG, } from './NiceEntityPool';
|
|
106
|
-
export type { EntityId as PooledEntityId, ComponentType as PooledComponentType, PooledComponent, ComponentFactory, ComponentInitializer, PooledEntity, PrefabDefinition, PoolStatistics, EntityPoolEventType, EntityPoolEvent, EntityPoolConfig, } from './NiceEntityPool';
|
|
107
|
-
export { Signal, ComputedSignal, SignalArray, SignalMap, signal, computed, effect, batch, derived, combine, when, createStore, signalArray, signalMap, } from './NiceSignal';
|
|
108
|
-
export type { SignalListener, Unsubscribe, Cleanup, EffectFn, ReadableSignal, WritableSignal, SignalStore, } from './NiceSignal';
|
|
109
|
-
export { NiceMessageBus, createMessageBus, createTypedChannel, DEFAULT_MESSAGE_BUS_CONFIG, } from './NiceMessageBus';
|
|
110
|
-
export type { MessageType, ChannelId, SubscriberId, Message, MessageHandler, MessageFilter, Middleware, Subscription, Request, Response, MessageBusEventType, MessageBusEvent, MessageBusConfig, TypedChannel, } from './NiceMessageBus';
|
|
111
|
-
export { ServiceContainer, ContainerBuilder, getGlobalContainer, resetGlobalContainer, createServiceContainer, createContainerBuilder, Injectable, Inject, } from './NiceServiceLocator';
|
|
112
|
-
export type { ServiceId, ServiceFactory, ServiceLifetime, ServiceDefinition, ServiceRegistration, ServiceEventType, ServiceEvent, Disposable, Initializable, } from './NiceServiceLocator';
|
|
113
|
-
export { NiceLogger, ConsoleTransport, MemoryTransport, RemoteTransport, createLogger, createConsoleTransport, createMemoryTransport, createRemoteTransport, getGlobalLogger, setGlobalLogger, log, LOG_LEVELS, DEFAULT_LOGGER_CONFIG, } from './NiceLogger';
|
|
114
|
-
export type { LogLevel as NiceLogLevel, LogCategory, LogEntry as NiceLogEntry, LogTransport, ConsoleTransportConfig, RemoteTransportConfig, LoggerConfig, } from './NiceLogger';
|
|
115
|
-
export { NiceAssetLoader, createAssetLoader, createAssetBundle, defineAsset, ImageLoader, AudioLoader, JsonLoader, TextLoader, BinaryLoader, SpritesheetLoader, DEFAULT_ASSET_LOADER_CONFIG, } from './NiceAssetLoader';
|
|
116
|
-
export type { AssetId as NiceAssetId, AssetType as NiceAssetType, AssetDefinition, LoadedAsset, LoadProgress as AssetLoadProgress, AssetBundle as NiceAssetBundle, AssetEventType, AssetEvent, AssetLoaderConfig, AssetTypeLoader, SpritesheetFrame, SpritesheetData, } from './NiceAssetLoader';
|
|
117
|
-
export * from './NiceDialogue';
|
|
118
|
-
export * from './NiceQuest';
|
|
119
|
-
export * from './NiceInventory';
|
|
120
|
-
export * from './NiceAI';
|
|
121
|
-
export * from './NiceNetwork';
|
|
122
|
-
export * from './NiceAccessibility';
|
|
123
|
-
export * from './NiceAction';
|
|
124
|
-
export * from './NiceAnalytics';
|
|
125
|
-
export * from './NiceArena';
|
|
126
|
-
export * from './NiceBehavior';
|
|
127
|
-
export * from './NiceChat';
|
|
128
|
-
export * from './NiceCheat';
|
|
129
|
-
export * from './NiceClimbing';
|
|
130
|
-
export * from './NiceCloud';
|
|
131
|
-
export * from './NiceCombo';
|
|
132
|
-
export * from './NiceCooking';
|
|
133
|
-
export * from './NiceCutscene';
|
|
134
|
-
export * from './NiceDayNight';
|
|
135
|
-
export * from './NiceEquipment';
|
|
136
|
-
export * from './NiceFarming';
|
|
137
|
-
export * from './NiceFishing';
|
|
138
|
-
export * from './NiceGesture';
|
|
139
|
-
export * from './NiceGrappling';
|
|
140
|
-
export * from './NiceGuild';
|
|
141
|
-
export * from './NiceHaptics';
|
|
142
|
-
export * from './NiceLighting';
|
|
143
|
-
export * from './NiceLocomotion';
|
|
144
|
-
export * from './NiceLOD';
|
|
145
|
-
export * from './NiceMining';
|
|
146
|
-
export * from './NiceModding';
|
|
147
|
-
export * from './NiceMount';
|
|
148
|
-
export * from './NiceNotification';
|
|
149
|
-
export * from './NiceObjective';
|
|
150
|
-
export * from './NiceParty';
|
|
151
|
-
export * from './NicePerformance';
|
|
152
|
-
export * from './NicePet';
|
|
153
|
-
export * from './NicePhotoMode';
|
|
154
|
-
export * from './NicePostProcess';
|
|
155
|
-
export * from './NiceProjectile';
|
|
156
|
-
export * from './NiceQTE';
|
|
157
|
-
export * from './NiceRanking';
|
|
158
|
-
export * from './NiceReputation';
|
|
159
|
-
export * from './NiceScreenshot';
|
|
160
|
-
export * from './NiceSerialization';
|
|
161
|
-
export * from './NiceShop';
|
|
162
|
-
export * from './NiceSocial';
|
|
163
|
-
export * from './NiceStatus';
|
|
164
|
-
export * from './NiceStealth';
|
|
165
|
-
export * from './NiceStreaming';
|
|
166
|
-
export * from './NiceSwimming';
|
|
167
|
-
export * from './NiceTarget';
|
|
168
|
-
export * from './NiceTerrain';
|
|
169
|
-
export * from './NiceTrading';
|
|
170
|
-
export * from './NiceVehicle';
|
|
171
|
-
export * from './NiceVoice';
|
|
172
|
-
export * from './NiceWater';
|
|
173
|
-
export * from './NiceAchievement';
|
|
174
|
-
export * from './NiceAugment';
|
|
175
|
-
export * from './NiceCompanion';
|
|
176
|
-
export * from './NiceGacha';
|
|
177
|
-
export * from './NiceBattlePass';
|
|
178
|
-
export * from './NiceAuction';
|
|
179
|
-
export * from './NiceDungeon';
|
|
180
|
-
export * from './NicePvP';
|
|
181
|
-
export * from './NiceEnchant';
|
|
182
|
-
export * from './NiceRaid';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Tilemap';
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { TutorialStepType, TutorialDefinition } from './TutorialEngine';
|
|
3
|
-
export interface TutorialEditorStep {
|
|
4
|
-
id: string;
|
|
5
|
-
type: TutorialStepType;
|
|
6
|
-
title: string;
|
|
7
|
-
content: string;
|
|
8
|
-
highlight?: string;
|
|
9
|
-
code?: string;
|
|
10
|
-
codeLanguage?: string;
|
|
11
|
-
quizOptions?: {
|
|
12
|
-
text: string;
|
|
13
|
-
correct: boolean;
|
|
14
|
-
}[];
|
|
15
|
-
validationHint?: string;
|
|
16
|
-
videoUrl?: string;
|
|
17
|
-
duration?: number;
|
|
18
|
-
}
|
|
19
|
-
export interface TutorialEditorState {
|
|
20
|
-
definition: Partial<TutorialDefinition>;
|
|
21
|
-
steps: TutorialEditorStep[];
|
|
22
|
-
selectedStepIndex: number;
|
|
23
|
-
previewMode: boolean;
|
|
24
|
-
dirty: boolean;
|
|
25
|
-
}
|
|
26
|
-
export interface TutorialEditorProps {
|
|
27
|
-
initial?: TutorialDefinition;
|
|
28
|
-
onSave?: (definition: TutorialDefinition) => void;
|
|
29
|
-
onExport?: (json: string) => void;
|
|
30
|
-
}
|
|
31
|
-
export declare function useTutorialEditor(initial?: TutorialDefinition): {
|
|
32
|
-
state: TutorialEditorState;
|
|
33
|
-
addStep: (type: TutorialStepType) => void;
|
|
34
|
-
removeStep: (index: number) => void;
|
|
35
|
-
moveStep: (fromIndex: number, toIndex: number) => void;
|
|
36
|
-
updateStep: (index: number, updates: Partial<TutorialEditorStep>) => void;
|
|
37
|
-
updateDefinition: (updates: Partial<TutorialDefinition>) => void;
|
|
38
|
-
selectStep: (index: number) => void;
|
|
39
|
-
togglePreview: () => void;
|
|
40
|
-
exportJSON: () => string;
|
|
41
|
-
importJSON: (json: string) => void;
|
|
42
|
-
};
|
|
43
|
-
export declare const NiceTutorialEditor: React.FC<TutorialEditorProps>;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
export interface VoiceNarrationConfig {
|
|
2
|
-
/** Speech rate (0.1 to 10, default 1) */
|
|
3
|
-
rate: number;
|
|
4
|
-
/** Pitch (0 to 2, default 1) */
|
|
5
|
-
pitch: number;
|
|
6
|
-
/** Volume (0 to 1, default 0.8) */
|
|
7
|
-
volume: number;
|
|
8
|
-
/** Preferred voice name (auto-detected by locale if omitted) */
|
|
9
|
-
voiceName?: string;
|
|
10
|
-
/** BCP 47 locale (e.g. 'pl-PL', 'en-US') */
|
|
11
|
-
locale: string;
|
|
12
|
-
/** Enable narration (default true) */
|
|
13
|
-
enabled: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface NarrationEvent {
|
|
16
|
-
type: 'start' | 'end' | 'pause' | 'resume' | 'error' | 'boundary';
|
|
17
|
-
text?: string;
|
|
18
|
-
charIndex?: number;
|
|
19
|
-
error?: string;
|
|
20
|
-
}
|
|
21
|
-
export type NarrationCallback = (event: NarrationEvent) => void;
|
|
22
|
-
export declare const DEFAULT_NARRATION_CONFIG: VoiceNarrationConfig;
|
|
23
|
-
export declare class VoiceNarrator {
|
|
24
|
-
private config;
|
|
25
|
-
private synth;
|
|
26
|
-
private currentUtterance;
|
|
27
|
-
private listeners;
|
|
28
|
-
private _speaking;
|
|
29
|
-
private _paused;
|
|
30
|
-
constructor(config?: Partial<VoiceNarrationConfig>);
|
|
31
|
-
/** Check if TTS is available in the browser. */
|
|
32
|
-
get available(): boolean;
|
|
33
|
-
get speaking(): boolean;
|
|
34
|
-
get paused(): boolean;
|
|
35
|
-
/** Get available voices for the current locale. */
|
|
36
|
-
getVoices(): SpeechSynthesisVoice[];
|
|
37
|
-
/** Get all available voices. */
|
|
38
|
-
getAllVoices(): SpeechSynthesisVoice[];
|
|
39
|
-
/** Speak the given text. Stops any current speech first. */
|
|
40
|
-
speak(text: string, locale?: string): void;
|
|
41
|
-
/** Speak a tutorial step — extracts localized text. */
|
|
42
|
-
speakStep(step: {
|
|
43
|
-
title: string | Record<string, string>;
|
|
44
|
-
content: string | Record<string, string>;
|
|
45
|
-
}, locale?: string): void;
|
|
46
|
-
/** Pause speech. */
|
|
47
|
-
pause(): void;
|
|
48
|
-
/** Resume speech. */
|
|
49
|
-
resume(): void;
|
|
50
|
-
/** Stop speech. */
|
|
51
|
-
stop(): void;
|
|
52
|
-
/** Update configuration. */
|
|
53
|
-
setConfig(updates: Partial<VoiceNarrationConfig>): void;
|
|
54
|
-
/** Subscribe to narration events. */
|
|
55
|
-
on(callback: NarrationCallback): () => void;
|
|
56
|
-
/** Dispose — stop speech and clear listeners. */
|
|
57
|
-
dispose(): void;
|
|
58
|
-
private selectVoice;
|
|
59
|
-
private stripMarkdown;
|
|
60
|
-
private emit;
|
|
61
|
-
}
|
|
62
|
-
export declare function useVoiceNarration(config?: Partial<VoiceNarrationConfig>): {
|
|
63
|
-
speak: (text: string, locale?: string) => void;
|
|
64
|
-
speakStep: (step: {
|
|
65
|
-
title: string | Record<string, string>;
|
|
66
|
-
content: string | Record<string, string>;
|
|
67
|
-
}, locale?: string) => void;
|
|
68
|
-
pause: () => void | undefined;
|
|
69
|
-
resume: () => void | undefined;
|
|
70
|
-
stop: () => void | undefined;
|
|
71
|
-
speaking: boolean;
|
|
72
|
-
paused: boolean;
|
|
73
|
-
available: boolean;
|
|
74
|
-
voices: SpeechSynthesisVoice[];
|
|
75
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { TutorialDefinition } from '../TutorialEngine';
|
|
2
|
-
export declare const TUTORIAL_UI_DATAGRID: TutorialDefinition;
|
|
3
|
-
export declare const TUTORIAL_UI_FORM: TutorialDefinition;
|
|
4
|
-
export declare const TUTORIAL_UI_CHART: TutorialDefinition;
|
|
5
|
-
export declare const TUTORIAL_UI_TREEVIEW: TutorialDefinition;
|
|
6
|
-
export declare const TUTORIAL_UI_SCHEDULER: TutorialDefinition;
|
|
7
|
-
export declare const TUTORIAL_UI_GANTT: TutorialDefinition;
|
|
8
|
-
export declare const TUTORIAL_UI_PIVOTGRID: TutorialDefinition;
|
|
9
|
-
export declare const TUTORIAL_UI_HTMLEDITOR: TutorialDefinition;
|
|
10
|
-
export declare const TUTORIAL_UI_NAVIGATION: TutorialDefinition;
|
|
11
|
-
export declare const TUTORIAL_UI_OVERLAYS: TutorialDefinition;
|
|
12
|
-
export declare const TUTORIAL_UI_THEMES: TutorialDefinition;
|
|
13
|
-
export declare const TUTORIAL_UI_RESPONSIVE: TutorialDefinition;
|
|
14
|
-
export declare function getAllUITutorials(): TutorialDefinition[];
|
package/dist/types/ui/index.d.ts
DELETED