summaryrefslogtreecommitdiff
path: root/DSACore
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-09-29 19:08:20 +0200
committerTrueDoctor <d-kobert@web.de>2018-09-29 19:08:20 +0200
commit71f85e0d3539539a74e72eb86ecb13a0e637e88a (patch)
treed5f051a20a5849f0b43a711912330c6374b2ca68 /DSACore
parent0283e1ae9f66ac2ef53c081e369190af52077406 (diff)
adding database class structure
Diffstat (limited to 'DSACore')
-rw-r--r--DSACore/Models/Database/Char.cs18
-rw-r--r--DSACore/Models/Database/Group.cs15
-rw-r--r--DSACore/Models/Database/Inventory.cs15
-rw-r--r--DSACore/Models/Database/Roll.cs12
-rw-r--r--DSACore/Models/Database/Talent.cs14
-rw-r--r--DSACore/Models/Database/Weapon.cs15
-rw-r--r--DSACore/Models/Network/Command.cs (renamed from DSACore/Models/Command.cs)2
-rw-r--r--DSACore/Models/Network/Group.cs (renamed from DSACore/Models/Group.cs)2
-rw-r--r--DSACore/Models/Network/User.cs (renamed from DSACore/Models/User.cs)2
9 files changed, 92 insertions, 3 deletions
diff --git a/DSACore/Models/Database/Char.cs b/DSACore/Models/Database/Char.cs
new file mode 100644
index 0000000..f77c760
--- /dev/null
+++ b/DSACore/Models/Database/Char.cs
@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace DSACore.Models.Database
+{
+ public class Char
+ {
+ private string Name { get; set; }
+ private int Id { get; set; }
+ private int Lp { get; set; }
+ private int LpMax { get; set; }
+ private int As { get; set; }
+ private int AsMax { get; set; }
+ private Weapon Weapon { get; set; }
+ }
+}
diff --git a/DSACore/Models/Database/Group.cs b/DSACore/Models/Database/Group.cs
new file mode 100644
index 0000000..5484b76
--- /dev/null
+++ b/DSACore/Models/Database/Group.cs
@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace DSACore.Models.Database
+{
+ public class Group
+ {
+ private string Name { get; set; }
+ private string Discord { get; set; }
+ private int Id { get; set; }
+ private List<Char> Chars { get; set; }= new List<Char>();
+ }
+}
diff --git a/DSACore/Models/Database/Inventory.cs b/DSACore/Models/Database/Inventory.cs
new file mode 100644
index 0000000..8e525c6
--- /dev/null
+++ b/DSACore/Models/Database/Inventory.cs
@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace DSACore.Models.Database
+{
+ public class Inventory
+ {
+ private int Id { get; set; }
+ private List<string> Items { get; set; } = new List<string>();
+ private List<string> Food { get; set; } = new List<string>();
+ private List<Weapon> Weapons { get; set; } = new List<Weapon>();
+ }
+}
diff --git a/DSACore/Models/Database/Roll.cs b/DSACore/Models/Database/Roll.cs
new file mode 100644
index 0000000..c931e70
--- /dev/null
+++ b/DSACore/Models/Database/Roll.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace DSACore.Models.Database
+{
+ public class Roll
+ {
+ private string[] Skills { get; set; } = new string[3];
+ }
+}
diff --git a/DSACore/Models/Database/Talent.cs b/DSACore/Models/Database/Talent.cs
new file mode 100644
index 0000000..d7bfaae
--- /dev/null
+++ b/DSACore/Models/Database/Talent.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace DSACore.Models.Database
+{
+ public class Talent
+ {
+ private string Name { get; set; }
+
+ private Roll Roll { get; set; } = new Roll();
+ }
+}
diff --git a/DSACore/Models/Database/Weapon.cs b/DSACore/Models/Database/Weapon.cs
new file mode 100644
index 0000000..b72ec20
--- /dev/null
+++ b/DSACore/Models/Database/Weapon.cs
@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace DSACore.Models.Database
+{
+ public class Weapon
+ {
+ private string Name { get; set; }
+ private string Damage { get; set; }
+ private string WeaponTalent { get; set; }
+ private string Modifier { get; set; }
+ }
+}
diff --git a/DSACore/Models/Command.cs b/DSACore/Models/Network/Command.cs
index 72c2a4c..dcfc692 100644
--- a/DSACore/Models/Command.cs
+++ b/DSACore/Models/Network/Command.cs
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
-namespace DSACore.Models
+namespace DSACore.Models.Network
{
public class Command
{
diff --git a/DSACore/Models/Group.cs b/DSACore/Models/Network/Group.cs
index 27d7ee7..40f5aeb 100644
--- a/DSACore/Models/Group.cs
+++ b/DSACore/Models/Network/Group.cs
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
-namespace DSACore.Models
+namespace DSACore.Models.Network
{
public class Group
{
diff --git a/DSACore/Models/User.cs b/DSACore/Models/Network/User.cs
index 6a0bd61..b207a19 100644
--- a/DSACore/Models/User.cs
+++ b/DSACore/Models/Network/User.cs
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
-namespace DSACore.Models
+namespace DSACore.Models.Network
{
public class User
{