MCPcopy Index your code
hub / github.com/aweiu/wow-state-machine

github.com/aweiu/wow-state-machine @v1.0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.2 ↗ · + Follow
21 symbols 45 edges 3 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

wow-state-machine

像多线程那样去轮询多个状态,不同的状态满足后去执行不同的定时任务。

该状态机基本是为写游戏自动脚本量身定做,它就是整个脚本的"调度中心"。即使是基于 Node.js 的单线程,你也能够实现"同时"检测角色血条,掉落物品,游戏状态等等各种来触发不同的操作,搭配 dm.dll 食用更佳!

文档地址

Core symbols most depended-on inside this repo

on
called by 6
src/state-machine.ts
errorHandle
called by 3
src/state-machine.ts
stopTimeoutChecker
called by 3
src/state-machine.ts
onTimeout
called by 3
src/state-machine.ts
stop
called by 3
src/state-machine.ts
stopRunner
called by 2
src/state-machine.ts
onError
called by 2
src/state-machine.ts
start
called by 2
src/state-machine.ts

Shape

Method 17
Class 4

Languages

TypeScript100%

Modules by API surface

src/state-machine.ts16 symbols
src/promise-interval.ts5 symbols

For agents

$ claude mcp add wow-state-machine \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact