diff options
author | TrueDoctor <d-kobert@web.de> | 2018-06-15 21:58:34 +0200 |
---|---|---|
committer | TrueDoctor <d-kobert@web.de> | 2018-06-15 21:58:34 +0200 |
commit | ba1f440d0762ab77cd3f08734043df7db5b4329e (patch) | |
tree | 23d8c796ce19e6475ba4a0673ec24daa35384442 /DiscoBot/DSA_Game/Characters | |
parent | 2bfbc16288454790f4c4cfa8ecace3518ee30059 (diff) |
implemented session saves
Diffstat (limited to 'DiscoBot/DSA_Game/Characters')
-rw-r--r-- | DiscoBot/DSA_Game/Characters/Character.cs | 4 | ||||
-rw-r--r-- | DiscoBot/DSA_Game/Characters/SaveChar.cs | 69 |
2 files changed, 71 insertions, 2 deletions
diff --git a/DiscoBot/DSA_Game/Characters/Character.cs b/DiscoBot/DSA_Game/Characters/Character.cs index c1acd39..6616a03 100644 --- a/DiscoBot/DSA_Game/Characters/Character.cs +++ b/DiscoBot/DSA_Game/Characters/Character.cs @@ -222,9 +222,9 @@ this.Lebenspunkte_Aktuell = this.Lebenspunkte_Basis; this.Astralpunkte_Aktuell = this.Astralpunkte_Basis; this.Ausdauer_Aktuell = this.Ausdauer_Basis; - - + } + private void Load(string path) { diff --git a/DiscoBot/DSA_Game/Characters/SaveChar.cs b/DiscoBot/DSA_Game/Characters/SaveChar.cs new file mode 100644 index 0000000..94538bb --- /dev/null +++ b/DiscoBot/DSA_Game/Characters/SaveChar.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DiscoBot.DSA_Game.Characters +{ + public class SaveChar : ICharacter + { + public string Name { get; set; } + + public int Lebenspunkte_Basis { get; set; } + + public int Lebenspunkte_Aktuell { get; set; } + + public int Ausdauer_Basis { get; set; } + + public int Ausdauer_Aktuell { get; set; } + + public int Astralpunkte_Basis { get; set; } + + public int Astralpunkte_Aktuell { get; set; } + + public static SaveChar FromICharacter(ICharacter c) + { + return new SaveChar + { + Astralpunkte_Aktuell = c.Astralpunkte_Aktuell, + Astralpunkte_Basis = c.Astralpunkte_Basis, + Ausdauer_Aktuell = c.Ausdauer_Aktuell, + Ausdauer_Basis = c.Ausdauer_Basis, + Lebenspunkte_Aktuell = c.Lebenspunkte_Aktuell, + Lebenspunkte_Basis = c.Lebenspunkte_Basis, + Name = c.Name + }; + } + + public string TestTalent(string talent, int erschwernis = 0) + { + throw new NotImplementedException(); + } + + public string TestEigenschaft(string eigenschaft, int erschwernis = 0) + { + throw new NotImplementedException(); + } + + public string Angriff(string talent, int erschwernis = 0) + { + throw new NotImplementedException(); + } + + public string Parade(string talent, int erschwernis = 0) + { + throw new NotImplementedException(); + } + + public string Fernkampf(string talent, int erschwernis = 0) + { + throw new NotImplementedException(); + } + + public string TestZauber(string waffe, int erschwernis) + { + throw new NotImplementedException(); + } + } +} |