Skip to content

Commit

Permalink
Reisen/DanceCheat: release 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alumkal committed Jun 27, 2024
1 parent 217b6f4 commit 981a171
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
7 changes: 1 addition & 6 deletions Reisen/DanceCheat/DanceCheat/DanceCheat.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
MIT License
Copyright (c) 2022-2023 Reisen
Copyright (c) 2022-2024 Reisen
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -88,11 +88,6 @@ void SELECT_BY_AVZ_VERSION(DanceCheatNotInQueue, DanceCheat)(DanceCheatMode mode
void DanceCheat(DanceCheatMode mode) {
AvZ::InsertOperation([=]{ DanceCheatNotInQueue(mode); });
}
#else
[[nodiscard("ARelOp 需要绑定到时间才会执行")]]
ARelOp DanceCheatR(DanceCheatMode mode) {
return ARelOp([=]{ DanceCheat(mode); });
}
#endif

#undef SELECT_BY_AVZ_VERSION
Expand Down
2 changes: 1 addition & 1 deletion Reisen/DanceCheat/DanceCheat/information.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version 1.1.0
version 1.2.0
avz 2022_10_01
16 changes: 15 additions & 1 deletion Reisen/DanceCheat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,29 @@ void SetDance(bool state);
// mode = DanceCheatMode::SLOW: 开启减速模式
// mode = DanceCheatMode::STOP: 关闭 Dance 秘籍,恢复正常运动模式
void DanceCheat(DanceCheatMode mode);
ARelOp DanceCheatR(DanceCheatMode mode);

// 示例:
AConnect(ATime(1, 0), []{ DanceCheat(DanceCheatMode::FAST); });
OnWave(2) Do { DanceCheat(DanceCheatMode::STOP); };
```
AvZ1:
```cpp
// Not In Queue
// 将当前普僵运动模式设为 state(true = dance,false = 正常)
void SetDance(bool state);
// mode = DanceCheatMode::FAST: 开启加速模式
// mode = DanceCheatMode::SLOW: 开启减速模式
// mode = DanceCheatMode::STOP: 关闭 Dance 秘籍,恢复正常运动模式
void DanceCheat(DanceCheatMode mode);
void DanceCheatNotInQueue(DanceCheatMode mode);
// 示例:
SetTime(0, 1);
DanceCheat(DanceCheatMode::FAST);
InsertTimeOperation(0, 2, [](){
DanceCheatNotInQueue(DanceCheatMode::STOP);
});
```

0 comments on commit 981a171

Please sign in to comment.