DEKI/ENGINE 文档
deki-fsm 0.19.0
Deki 包参考
deki-fsm

可视化状态机。在画布上布置状态、分组和转换,每个状态内部有一条动作流。

仓库:github.com/dekiengine/deki-fsm · 最新版本:0.19.0 · 需要引擎 0.19.0 或更高版本 · 依赖:deki-nodegraph, deki-2d, deki-tween

使用 DekiEditor --packages-add deki-fsm <project> 或通过包管理器安装。引擎自身的组件和 C++ API 见 Deki 文档。

在编辑器中显示为 **FSM**。

组件

组件 类别 说明
FsmComponent 逻辑 在此对象上运行状态机图资源。

功能开关

可以从构建中去掉的部分。带有 define 的功能通过该 define 开关,其余的随其组件一起被剥离。

功能 define 默认值
FSM DEKI_FEATURE_FSM 开

组件参考

FsmComponent

在此对象上运行状态机图资源。

检视器中的名称:状态机组件 · 类别:逻辑 · 类型:DekiFsm::FsmComponent

属性 类型 默认值 说明
graph AssetRef (FsmGraph) "" 此对象运行的状态机资源。在节点图编辑器中编写。
variableOverrides Array<string> [] 此对象为图中变量设置的初始值,格式为 name=value(例如 speedHz=0.625)。

更新日志

更新日志为英文。

0.19.0

Changed

  • minEngine 0.19.0: built against engine 0.19.0, whose component metadata records the package each class is in. A build of this package from before does not load and is rebuilt.

Added

  • Japanese, Simplified Chinese and Korean: editor/lang/ja.json, zh.json and ko.json translate the names, tooltips and enum values this package's components show in the Inspector.
  • The package's editor text goes through the editor's translation (Tr), so it shows in the editor's language. Needs the editor release that adds Localization.h; raise minEngine to it when releasing.

0.18.2

Fixed

  • Timed actions keep time when frames are long or uneven. An action that finished part way through a frame let the next one in the flow start with the whole frame again, so a flow gained time at each step, and a long frame (a scene loading, a screenshot sent from the board) moved each machine on by a different amount: the logic demo's orbs, started a phase apart, bunched up. A finished Wait, Tween Property or delayed Send Event now passes on only the time it did not use, and one frame counts as at most a second.

更早的版本:CHANGELOG.md


由包的反射数据生成(引擎 0.19.0)。属性名就是场景文件中使用的键。重命名后会保留别名(兼容性)。