From 9b5f08e86fd00956a112df99e44b7044d13c85b0 Mon Sep 17 00:00:00 2001 From: Brychan Dempsey Date: Sun, 29 Aug 2021 15:04:28 +1200 Subject: [PATCH] Refactored and added base projects & code --- .editorconfig | 4 + .gitignore | 3 + PDGServer_WPF/App.xaml | 6 + PDGServer_WPF/App.xaml.cs | 17 + PDGServer_WPF/AssemblyInfo.cs | 10 + PDGServer_WPF/MainWindow.xaml | 56 +++ PDGServer_WPF/MainWindow.xaml.cs | 290 ++++++++++++ PDGServer_WPF/RBG Server WPF.csproj | 22 + Pokemon Drinking Game/.editorconfig | 4 + Pokemon Drinking Game/App.xaml | 9 + Pokemon Drinking Game/App.xaml.cs | 17 + Pokemon Drinking Game/AssemblyInfo.cs | 10 + Pokemon Drinking Game/MainWindow.xaml | 147 ++++++ Pokemon Drinking Game/MainWindow.xaml.cs | 338 ++++++++++++++ .../Pokemon Drinking Game.csproj | 20 + .../Pokemon Drinking Game.sln | 42 ++ RBG.Helpers/ImageProcessing.cs | 86 ++++ RBG.Helpers/RBG.Helpers.csproj | 18 + RBG_Server.Core/GameServer.cs | 428 ++++++++++++++++++ RBG_Server.Core/Player.cs | 61 +++ RBG_Server.Core/RBG_Server.csproj | 11 + Remote Board Game.sln | 48 ++ 22 files changed, 1647 insertions(+) create mode 100644 .editorconfig create mode 100644 PDGServer_WPF/App.xaml create mode 100644 PDGServer_WPF/App.xaml.cs create mode 100644 PDGServer_WPF/AssemblyInfo.cs create mode 100644 PDGServer_WPF/MainWindow.xaml create mode 100644 PDGServer_WPF/MainWindow.xaml.cs create mode 100644 PDGServer_WPF/RBG Server WPF.csproj create mode 100644 Pokemon Drinking Game/.editorconfig create mode 100644 Pokemon Drinking Game/App.xaml create mode 100644 Pokemon Drinking Game/App.xaml.cs create mode 100644 Pokemon Drinking Game/AssemblyInfo.cs create mode 100644 Pokemon Drinking Game/MainWindow.xaml create mode 100644 Pokemon Drinking Game/MainWindow.xaml.cs create mode 100644 Pokemon Drinking Game/Pokemon Drinking Game.csproj create mode 100644 Pokemon Drinking Game/Pokemon Drinking Game.sln create mode 100644 RBG.Helpers/ImageProcessing.cs create mode 100644 RBG.Helpers/RBG.Helpers.csproj create mode 100644 RBG_Server.Core/GameServer.cs create mode 100644 RBG_Server.Core/Player.cs create mode 100644 RBG_Server.Core/RBG_Server.csproj create mode 100644 Remote Board Game.sln diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..a05b287 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,4 @@ +[*.cs] + +# IDE0011: Add braces +csharp_prefer_braces = when_multiline diff --git a/.gitignore b/.gitignore index 27ae6f1..2f72ce3 100644 --- a/.gitignore +++ b/.gitignore @@ -373,3 +373,6 @@ FodyWeavers.xsd # Local History for Visual Studio Code .history/ +# Ignore testing board +TestingBoard/ + diff --git a/PDGServer_WPF/App.xaml b/PDGServer_WPF/App.xaml new file mode 100644 index 0000000..7124177 --- /dev/null +++ b/PDGServer_WPF/App.xaml @@ -0,0 +1,6 @@ + + diff --git a/PDGServer_WPF/App.xaml.cs b/PDGServer_WPF/App.xaml.cs new file mode 100644 index 0000000..c866abb --- /dev/null +++ b/PDGServer_WPF/App.xaml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using System.Windows; + +namespace RBG_Server +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/PDGServer_WPF/AssemblyInfo.cs b/PDGServer_WPF/AssemblyInfo.cs new file mode 100644 index 0000000..8b5504e --- /dev/null +++ b/PDGServer_WPF/AssemblyInfo.cs @@ -0,0 +1,10 @@ +using System.Windows; + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] diff --git a/PDGServer_WPF/MainWindow.xaml b/PDGServer_WPF/MainWindow.xaml new file mode 100644 index 0000000..bc7a7da --- /dev/null +++ b/PDGServer_WPF/MainWindow.xaml @@ -0,0 +1,56 @@ + + + + + + + + + + + + + +