build(project): 更新项目配置和代码结构
- 升级 Godot.NET.Sdk 版本至 4.4.0 - 更新场景文件中的资源引用方式 - 调整部分代码逻辑和数据结构 - 更新项目配置文件
This commit is contained in:
@ -75,11 +75,11 @@ public class CCPiece : AbstractPiece {
|
||||
return board.IsPosOutOfRange(Local2Global(pos));
|
||||
}
|
||||
|
||||
protected CCPiece? GetRecursivePieceLocal(Vector2I origin, Vector2I pos) {
|
||||
protected (CCPiece?, Vector2I) GetRecursivePieceLocal(Vector2I origin, Vector2I pos) {
|
||||
Vector2I with = origin + pos;
|
||||
while (!IsPosOutOfRangeLocal(with) && GetCCPieceLocal(with) == null) {
|
||||
with += pos;
|
||||
}
|
||||
return GetCCPieceLocal(with);
|
||||
return (GetCCPieceLocal(with), with);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user