5 Star 28 Fork 4

向量 / AsmVsZombies

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
MigrationGuide.md 2.01 KB
一键复制 编辑 原始数据 按行查看 历史
向量 提交于 2023-04-25 15:45 . 2.3.3 2023-05-01

版本迁移文档

2.2.6_230405 -> 2.3.3_230501

  1. AWaitUntil 弃用,请使用 co_await 来代替此函数

221124 2.0.0 preview -> 2.0.0 221208

  1. AStateHook 的四个虚函数的名字发生了变化
BeforeScript() -> _BeforeScript()  
AfterScript() -> _AfterScript()  
EnterFight() -> _EnterFight()  
ExitFight() -> _ExitFight()  

221001 -> 221124 2.0.0 preview

  1. 这是一个重大更新,使用 221124 2.0.0 preview 需要重新下载新的环境开发包

  2. 会带来 VSCode 插件的不兼容性,需要修改编译命令为 -m32 -static -std=c++20 -g -Wall "__FILE_NAME__" -I "__AVZ_DIR__/inc" -lavz -lgdi32 -L "__AVZ_DIR__/bin" -shared -o "./bin/libavz.dll",注意粘贴复制的时候千万不要有换行符, 然后这个设置需要打开扩展栏,找到 AvZ 扩展,然后右键 AvZ 右下角的齿轮找到扩展设置, 将 Avz Compiler Cmd 修改为上面的内容。

  3. 其他更新请看新的图文教程

220630 -> 221001

  1. 由于 SafePtr 已被弃用, 在脚本中使用 SafePtr<Type> 的用户直接使用原始指针 Type 即可, 同时函数 toUnsafe 被删除
// 220630
SafePtr<Zombie> zombie_array = GetMainObject()->zombieArray(); // 已弃用
zombie_array.toUnsafe(); // 没问题

// 221001
Zombie* zombie_array = GetMainObject()->zombieArray();
zombie_array.toUnsafe(); // 错误

注意 : 使用习惯为 auto 的用户可以无视

  1. 由于一个设计失误, Fliter* 运算符在之前的版本返回了错误的结果, 为了兼容性, 221001 版本依然支持之前的写法, 但是不推荐使用(已弃用).
// 220630
// 已弃用
AliveFilter<Zombie> zombie_filter; 
for (auto&& zombie : zombie_filter) {
    if (zombie->type() == HY_32) {
        // some code
    }
}

// 221001
AliveFilter<Zombie> zombie_filter;
for (auto&& zombie : zombie_filter) {
    if (zombie.type() == HY_32) {
        // some code
    }
}
C++
1
https://gitee.com/vector-wlc/AsmVsZombies.git
git@gitee.com:vector-wlc/AsmVsZombies.git
vector-wlc
AsmVsZombies
AsmVsZombies
master

搜索帮助