refactor(chess): 重构象棋程序基础结构,使用Nullable重构核心代码
- 更新了多个文件的代码结构和类型定义,提高了代码的健壮性和可维护性 - 优化了事件处理、棋子管理和移动逻辑,为后续功能扩展打下坚实基础 - 修复了一些潜在的空指针异常问题,提高了程序的稳定性 - 修复部分bug
This commit is contained in:
@ -51,7 +51,7 @@ public class Vector2I {
|
||||
return X * with.X + Y * with.Y;
|
||||
}
|
||||
|
||||
public override bool Equals(object obj) {
|
||||
public override bool Equals(object? obj) {
|
||||
if (obj is Vector2I other) {
|
||||
return this == other;
|
||||
}
|
||||
|
Reference in New Issue
Block a user