You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.
指令系统
单指令
单个可以执行的指令
调用方式:
/x arg1..
复合指令
调用方式:
/x y
or/x z ...
指令执行器
所有的指令应先注册到执行器
然后由执行器统一执行
指令参数分析器
参数与参数间应有空格
将消息隔开并迭代, 尝试将字符串一个个解析为对应的参数
失败则不执行此指令
定义trait CommandArg, 要求参数实现CommandArg
宏生成后的代码类似:
对于同步函数,应额外加上
block_in_place
FFI
暴露指令注册函数
函数应为同步函数或异步函数(返回FFIFuture)
The text was updated successfully, but these errors were encountered: