Skip to content

Commit 1cb00f1

Browse files
committed
Move godot project to TurnBase.KaNoBu.Godot
1 parent 5ced5ea commit 1cb00f1

162 files changed

Lines changed: 39 additions & 34 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,23 @@ jobs:
5252

5353
- name: Restore packages
5454
run: |
55-
dotnet restore "./TurnBase.Demo/TurnBase.Demo.sln"
55+
dotnet restore "./TurnBase.KaNoBu.Godot/TurnBase.KaNoBu.Godot.sln"
5656
5757
- name: Update presets config
5858
env:
5959
RELEASE_KEYSTORE_PASSWORD: ${{ secrets.RELEASE_KEYSTORE_PASSWORD }}
6060
run: |
61-
sed -i "s/RELEASE_KEYSTORE_PASSWORD_PLACEHOLDER/$RELEASE_KEYSTORE_PASSWORD/" ./TurnBase.Demo/export_presets.cfg
62-
sed -i "s/version\/code=1/version\/code=$GITHUB_RUN_NUMBER/" ./TurnBase.Demo/export_presets.cfg
63-
sed -i "s/version\/name=\"1.0.0\"/version\/name=\"1.$GITHUB_RUN_NUMBER.0\"/" ./TurnBase.Demo/export_presets.cfg
61+
sed -i "s/RELEASE_KEYSTORE_PASSWORD_PLACEHOLDER/$RELEASE_KEYSTORE_PASSWORD/" ./TurnBase.KaNoBu.Godot/export_presets.cfg
62+
sed -i "s/version\/code=1/version\/code=$GITHUB_RUN_NUMBER/" ./TurnBase.KaNoBu.Godot/export_presets.cfg
63+
sed -i "s/version\/name=\"1.0.0\"/version\/name=\"1.$GITHUB_RUN_NUMBER.0\"/" ./TurnBase.KaNoBu.Godot/export_presets.cfg
6464
6565
- name: Export game
6666
id: export
6767
uses: firebelley/godot-export@v6.0.0
6868
with:
6969
godot_executable_download_url: https://github.com/godotengine/godot/releases/download/3.6-stable/Godot_v3.6-stable_mono_linux_headless_64.zip
7070
godot_export_templates_download_url: https://github.com/godotengine/godot/releases/download/3.6-stable/Godot_v3.6-stable_mono_export_templates.tpz
71-
relative_project_path: ./TurnBase.Demo/
71+
relative_project_path: ./TurnBase.KaNoBu.Godot/
7272
export_debug: false
7373
use_preset_export_path: true
7474
use_godot_3: true

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@ obj/
77
.vscode/
88
*.user
99
build/
10+
!TurnBase.KaNoBu.Godot/android/build/
11+
TurnBase.KaNoBu.Godot/android/build/assets/
12+
TurnBase.KaNoBu.Godot/android/build/.gradle/
13+
TurnBase.KaNoBu.Godot/android/build/src/debug/
14+
TurnBase.KaNoBu.Godot/android/build/src/release/

TurnBase.Demo/Presentation/Client.cs renamed to TurnBase.KaNoBu.Godot/Presentation/Client.cs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,6 @@ public partial class Client : IClient
1010
{
1111
private HTTPClient httpClient= new HTTPClient();
1212

13-
public async Task<object[]> SendRequest(string url, string body)
14-
{
15-
if (body != null)
16-
{
17-
this.http.Request(
18-
url,
19-
new[] { "Content-Type: application/json" },
20-
false,
21-
HTTPClient.Method.Post,
22-
body);
23-
}
24-
else
25-
{
26-
this.http.Request(url);
27-
}
28-
29-
var result = await ToSignal(this.http, "request_completed");
30-
return result;
31-
}
32-
3313
public async Task<ClientResponse> SendAction(string serverUrl, string action, Dictionary<string, object> queryData, ICommunicationModel body = null)
3414
{
3515
var queryString = httpClient.QueryStringFromDict(ToGodotDictionaryRecursive(queryData));
@@ -59,7 +39,27 @@ public async Task<ClientResponse> SendAction(string serverUrl, string action, Di
5939
};
6040
}
6141

62-
public static Godot.Collections.Dictionary ToGodotDictionaryRecursive(IDictionary source)
42+
private async Task<object[]> SendRequest(string url, string body)
43+
{
44+
if (body != null)
45+
{
46+
this.http.Request(
47+
url,
48+
new[] { "Content-Type: application/json" },
49+
false,
50+
HTTPClient.Method.Post,
51+
body);
52+
}
53+
else
54+
{
55+
this.http.Request(url);
56+
}
57+
58+
var result = await ToSignal(this.http, "request_completed");
59+
return result;
60+
}
61+
62+
private static Godot.Collections.Dictionary ToGodotDictionaryRecursive(IDictionary source)
6363
{
6464
var gdDict = new Godot.Collections.Dictionary();
6565

File renamed without changes.

TurnBase.Demo/Presentation/ClientServer/CommunicationSerializer.cs renamed to TurnBase.KaNoBu.Godot/Presentation/ClientServer/CommunicationSerializer.cs

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)