From 31152ce35fe6195878c5e5d56b18197a4618d2da Mon Sep 17 00:00:00 2001 From: Ivan Shakhov Date: Tue, 6 Oct 2020 14:08:50 +0200 Subject: [PATCH 1/4] recommended setup for Rider --- .gitignore | 3 +++ mono/dodge_the_creeps/Dodge the Creeps with C#.csproj | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 77ef6d5344..4e7b849260 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,6 @@ mono_crash.*.json # System/tool-specific ignores .directory *~ + +# IDE +**/.idea \ No newline at end of file diff --git a/mono/dodge_the_creeps/Dodge the Creeps with C#.csproj b/mono/dodge_the_creeps/Dodge the Creeps with C#.csproj index 2c7cf43d7c..3143f4c3f9 100644 --- a/mono/dodge_the_creeps/Dodge the Creeps with C#.csproj +++ b/mono/dodge_the_creeps/Dodge the Creeps with C#.csproj @@ -2,4 +2,8 @@ netstandard2.1 + + + + \ No newline at end of file From f8317d20d5d8c35d659cb08c0b735f83fb0ad7c1 Mon Sep 17 00:00:00 2001 From: Ivan Shakhov Date: Thu, 8 Oct 2020 16:29:41 +0200 Subject: [PATCH 2/4] restore RootNamespace, since default one contains spaces, restore net472 after discussion with @neikeq and more testing --- mono/dodge_the_creeps/Dodge the Creeps with C#.csproj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mono/dodge_the_creeps/Dodge the Creeps with C#.csproj b/mono/dodge_the_creeps/Dodge the Creeps with C#.csproj index 2c7cf43d7c..5cd3a4339a 100644 --- a/mono/dodge_the_creeps/Dodge the Creeps with C#.csproj +++ b/mono/dodge_the_creeps/Dodge the Creeps with C#.csproj @@ -1,5 +1,6 @@ - netstandard2.1 + net472 + DodgeTheCreeps \ No newline at end of file From 075faa38a7719bf80c527f41dff094b952a1ade1 Mon Sep 17 00:00:00 2001 From: Ivan Shakhov Date: Sat, 17 Oct 2020 21:45:46 +0200 Subject: [PATCH 3/4] adjust namespaces --- mono/dodge_the_creeps/HUD.cs | 83 +++++++++++---------- mono/dodge_the_creeps/Main.cs | 127 ++++++++++++++++---------------- mono/dodge_the_creeps/Mob.cs | 42 ++++++----- mono/dodge_the_creeps/Player.cs | 117 +++++++++++++++-------------- 4 files changed, 190 insertions(+), 179 deletions(-) diff --git a/mono/dodge_the_creeps/HUD.cs b/mono/dodge_the_creeps/HUD.cs index a12e802487..4978491ec8 100644 --- a/mono/dodge_the_creeps/HUD.cs +++ b/mono/dodge_the_creeps/HUD.cs @@ -1,46 +1,49 @@ using Godot; -public class HUD : CanvasLayer +namespace DodgeTheCreeps { - [Signal] - public delegate void StartGame(); - - public void ShowMessage(string text) - { - var messageLabel = GetNode