From 2ab4051c6fe720dc47e99b0c305a0d779ee02d51 Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Sun, 19 May 2019 17:58:42 +0200 Subject: Moved Gamelogic to DSALib --- DSACore/DSA_Game/Characters/SaveChar.cs | 38 --------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 DSACore/DSA_Game/Characters/SaveChar.cs (limited to 'DSACore/DSA_Game/Characters/SaveChar.cs') diff --git a/DSACore/DSA_Game/Characters/SaveChar.cs b/DSACore/DSA_Game/Characters/SaveChar.cs deleted file mode 100644 index 7b29b4e..0000000 --- a/DSACore/DSA_Game/Characters/SaveChar.cs +++ /dev/null @@ -1,38 +0,0 @@ -using DSALib.Characters; - -namespace DSACore.DSA_Game.Characters -{ - public class SaveChar - { - public string Name { get; set; } - - public int Lebenspunkte_Aktuell { get; set; } - - public int Ausdauer_Aktuell { get; set; } - - public int Astralpunkte_Aktuell { get; set; } - - public static SaveChar FromICharacter(ICharacter c) - { - return new SaveChar - { - Astralpunkte_Aktuell = c.Astralpunkte_Aktuell, - Ausdauer_Aktuell = c.Ausdauer_Aktuell, - Lebenspunkte_Aktuell = c.Lebenspunkte_Aktuell, - Name = c.Name - }; - } - } - - - public static class ICharExtension - { - public static void Update(this ICharacter c, SaveChar s) - { - c.Astralpunkte_Aktuell = s.Astralpunkte_Aktuell; - c.Ausdauer_Aktuell = s.Ausdauer_Aktuell; - c.Lebenspunkte_Aktuell = s.Lebenspunkte_Aktuell; - c.Name = s.Name; - } - } -} \ No newline at end of file -- cgit v1.2.3-70-g09d2