From 5d518428e7ccfcd7ac3f4cc58d7fda48cbda630c Mon Sep 17 00:00:00 2001 From: Brychan Dempsey Date: Sun, 17 Oct 2021 16:04:08 +1300 Subject: [PATCH] Implemented sprite loading --- PDGServer_WPF/App.xaml.cs | 3 +- PDGServer_WPF/ConnectionPage.xaml | 19 +++- PDGServer_WPF/ConnectionPage.xaml.cs | 119 +++++++++++++++++++++++- RBG_Server.Core/CommunicationHandler.cs | 7 +- 4 files changed, 140 insertions(+), 8 deletions(-) diff --git a/PDGServer_WPF/App.xaml.cs b/PDGServer_WPF/App.xaml.cs index 2fe763c..3b427e4 100644 --- a/PDGServer_WPF/App.xaml.cs +++ b/PDGServer_WPF/App.xaml.cs @@ -18,8 +18,9 @@ namespace RBG_Server /// public partial class App : Application { + public static App Context { get; private set; } public GameServer BoardGameServer {get;} - public CommunicationHandler communicationHandler { get; private set;} + public CommunicationHandler GameCommunicationHandler { get; private set;} protected static readonly SolidColorBrush RED_BRUSH = new(Color.FromRgb(255, 0, 0)); protected static readonly SolidColorBrush BLUE_BRUSH = new(Color.FromRgb(0, 0, 255)); diff --git a/PDGServer_WPF/ConnectionPage.xaml b/PDGServer_WPF/ConnectionPage.xaml index 69ef9b4..1dda3c7 100644 --- a/PDGServer_WPF/ConnectionPage.xaml +++ b/PDGServer_WPF/ConnectionPage.xaml @@ -8,12 +8,12 @@ d:DesignHeight="450" d:DesignWidth="800" Title="ConnectionPage" MinWidth="1024" MinHeight="762"> - +