From af1fdf5a25faed57ac72865205f57df325016d0d Mon Sep 17 00:00:00 2001
From: Daniel Brunner <0xFEEDC0DE64@gmail.com>
Date: Tue, 1 Nov 2016 22:31:04 +0100
Subject: [PATCH] Added config file to client
---
.../FluckyGame.Client/ClientSettings.cs | 23 +++++++++++++++++++
.../FluckyGame.Client.csproj | 11 +++++++++
.../FluckyGame.Client/Game1.cs | 9 ++++----
.../FluckyGame.Client/Program.cs | 13 +++++++----
.../FluckyGame.Client/client.json | 11 +++++++++
.../FluckyGame.Client/packages.config | 4 ++++
6 files changed, 63 insertions(+), 8 deletions(-)
create mode 100644 src/FluckyGame.Client/FluckyGame.Client/ClientSettings.cs
create mode 100644 src/FluckyGame.Client/FluckyGame.Client/client.json
create mode 100644 src/FluckyGame.Client/FluckyGame.Client/packages.config
diff --git a/src/FluckyGame.Client/FluckyGame.Client/ClientSettings.cs b/src/FluckyGame.Client/FluckyGame.Client/ClientSettings.cs
new file mode 100644
index 0000000..a95f438
--- /dev/null
+++ b/src/FluckyGame.Client/FluckyGame.Client/ClientSettings.cs
@@ -0,0 +1,23 @@
+using System;
+
+namespace FluckyGame.Client
+{
+ internal class ClientSettings
+ {
+ public Resolution resolution;
+ public Server server;
+
+ public struct Resolution
+ {
+ public int width;
+ public int height;
+ public bool fullscreen;
+ }
+
+ public struct Server
+ {
+ public string hostname;
+ public int port;
+ }
+ }
+}
diff --git a/src/FluckyGame.Client/FluckyGame.Client/FluckyGame.Client.csproj b/src/FluckyGame.Client/FluckyGame.Client/FluckyGame.Client.csproj
index b43225c..2851362 100644
--- a/src/FluckyGame.Client/FluckyGame.Client/FluckyGame.Client.csproj
+++ b/src/FluckyGame.Client/FluckyGame.Client/FluckyGame.Client.csproj
@@ -64,6 +64,10 @@
+
+ ..\..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll
+ True
+
@@ -73,6 +77,7 @@
+
@@ -119,6 +124,12 @@
true
+
+
+ PreserveNewest
+
+
+