Files
ShowenV2/configs
pulsareonbot 297c2a86fe fix(Live2D): 修正 Haru 模型路径 + gitignore 排除 live2d 模型文件
- live2d_model: haru/index.model3.json → haru/Haru.model3.json(匹配实际文件名)
- .gitignore: 添加 configs/live2d/(模型文件 4.2M 不进 git,部署时单独下载)
- .gitignore: 添加 .commit_msg.txt
2026-07-07 12:00:18 +08:00
..

configs/ — 状态机配置

JSON 格式的状态机配置文件,定义视频播放场景和状态转换规则。

文件

文件 说明
dog_state_machine.json 狗宠物的场景/动画状态机
cat_state_machine.json 猫宠物的场景/动画状态机

配置结构

每个 JSON 配置定义:

  • 场景 (scenes): 包含多个动画状态
  • 状态 (states): 绑定视频文件,定义播放行为
  • 转换 (transitions): 触发器驱动的状态跳转voice / button / sensor

VideoPluginStateMachine 模块解析和驱动。