Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

状态追踪器 #11

Open
Seng-Jik opened this issue Aug 23, 2022 · 0 comments
Open

状态追踪器 #11

Seng-Jik opened this issue Aug 23, 2022 · 0 comments

Comments

@Seng-Jik
Copy link
Contributor

Seng-Jik commented Aug 23, 2022

增加以下系统外部定义

# 定义状态变量
- extern __state_define variable defaultValue

# 设置状态变量为某类型
- extern __state_type variable type

# 设置状态变量为某symbol类型
- extern __state_type_symbol variable symbol

# 重设状态变量为默认值
- extern __state_reset variable

# 设置状态变量
- extern __state_set variable value

# 将状态变量加到已有的变量上
- extern __state_add variable value

# 在这里拍摄一次状态快照
- extern __state_checkpoint

# 移除一个状态
- extern __state_remove variable

# push一个状态
- extern __state_push variable

# pop一个状态
- extern __state_pop variable

# push全部状态
- extern __state_push_all

# pop全部状态
- extern __state_pop_all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant