build(project): 更新项目配置和代码结构
- 升级 Godot.NET.Sdk 版本至 4.4.0 - 更新场景文件中的资源引用方式 - 调整部分代码逻辑和数据结构 - 更新项目配置文件
This commit is contained in:
@ -23,7 +23,7 @@ public partial class ChessGame : Node2D {
|
||||
.Text = global.GlobalData["player_color"].AsString();
|
||||
LineEdit turnSideEdit = GetNode<LineEdit>("Control/VBoxContainer/MarginContainer3/HFlowContainer/LineEdit2");
|
||||
turnSideEdit.Text = "red";
|
||||
GD.PrintErr("ChessGame ", global.RPClient.GetUserId(), ":",global.GlobalData["player_color"]);
|
||||
GD.Print("ChessGame uid:", global.RPClient.GetUserId(), " color:",global.GlobalData["player_color"]);
|
||||
|
||||
dialog = new ConfirmationDialog {
|
||||
DialogAutowrap = true,
|
||||
@ -40,13 +40,7 @@ public partial class ChessGame : Node2D {
|
||||
sideOpposite = ChessCore.TurnsSideType.Red;
|
||||
}
|
||||
|
||||
// if (isSession) {
|
||||
// Game = new(ChessCore.Mode.MultiMode, sideSelf);
|
||||
// } else {
|
||||
// Game = new(ChessCore.Mode.SingleMode, sideSelf);
|
||||
// }
|
||||
Game = new(isSession ? ChessCore.Mode.MultiMode : ChessCore.Mode.SingleMode, sideSelf, board);
|
||||
Game.Init();
|
||||
|
||||
board.OnStepsChanged += (sender, e) => {
|
||||
turnSideEdit.Text = Game.GetTurnsType() == ChessCore.TurnsSideType.Red ? "red" : "black";
|
||||
|
1
Scripts/Controllers/ChessGame.cs.uid
Normal file
1
Scripts/Controllers/ChessGame.cs.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://cqgctouhh8qok
|
1
Scripts/Controllers/GameLobby.cs.uid
Normal file
1
Scripts/Controllers/GameLobby.cs.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://cn273e4u256r
|
1
Scripts/Controllers/Setting.cs.uid
Normal file
1
Scripts/Controllers/Setting.cs.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://71ril3nh84rw
|
Reference in New Issue
Block a user