2 次代码提交 e358957dfb ... ef1736b606

作者 SHA1 备注 提交日期
  USRINGENICO\fmorel ef1736b606 import changes 3 年之前
  USRINGENICO\fmorel a0cf2839be init controllers 3 年之前

+ 13 - 0
.vs/VSWorkspaceState.json

@@ -1,8 +1,21 @@
 {
   "ExpandedNodes": [
     "",
+<<<<<<< HEAD
+    "\\Dotnet",
+    "\\Dotnet\\Warhammer",
+    "\\Dotnet\\Warhammer\\DAL",
+    "\\Dotnet\\Warhammer\\DAL\\Database",
+    "\\Dotnet\\Warhammer\\Models",
+    "\\Dotnet\\Warhammer\\Models\\Enum",
+    "\\Dotnet\\Warhammer\\Views",
+    "\\Dotnet\\Warhammer\\Views\\Shared"
+  ],
+  "SelectedNode": "\\Dotnet\\Warhammer\\Models\\Player.cs",
+=======
     "\\Dotnet"
   ],
   "SelectedNode": "\\Dotnet\\Warhammer.sln",
+>>>>>>> e358957dfb4f64810dea7162fe38a5820cb59cb1
   "PreviewInSolutionExplorer": false
 }

二进制
.vs/slnx.sqlite


+ 9 - 0
Dotnet/Warhammer/DAL/Database/DeathwatchDbContext.cs

@@ -0,0 +1,9 @@
+using Microsoft.EntityFrameworkCore;
+
+namespace Warhammer.DAL.Database
+{
+    public class DeathwatchDbContext : DbContext
+    {
+
+    }
+}

+ 59 - 0
Dotnet/Warhammer/Models/Enum/Enum.cs

@@ -0,0 +1,59 @@
+using System.ComponentModel;
+
+namespace Warhammer.Models.Enum
+{
+    public enum WeaponClass
+    {
+        [Description("Pistol")]
+        PISTOL,
+        [Description("Basic")]
+        BASIC,
+        [Description("Heavy")]
+        HEAVY,
+        [Description("Thrown")]
+        THROWN,
+        [Description("Melee")]
+        MELEE
+    }
+
+    public enum ItemAvailibility
+    {
+        [Description("Automatic")]
+        UBIQUITOUS = 100,
+        [Description("Easy")]
+        ABUNDANT = 30,
+        [Description("Routine")]
+        PLENTIFUL = 20,
+        [Description("Ordinary")]
+        COMMON = 10,
+        [Description("Challenging")]
+        AVERAGE = 0,
+        [Description("Difficult")]
+        SCARCE = -10,
+        [Description("Hard")]
+        RARE = -20,
+        [Description("Very Hard")]
+        VERY_RARE = -30,
+        [Description("Arduous ")]
+        EXTREMELY_RARE = -40,
+        [Description("Punishing ")]
+        NEAR_UNIQUE = -50,
+        [Description("Hellish")]
+        UNIQUE = -60
+    }
+
+    public enum OrganisationLevel
+    {
+        [Description("Local Influence")]
+        LOCAL,
+        [Description("Regional Influence")]
+        REGIONAL,
+        [Description("National Influence")]
+        NATIONAL,
+        [Description("All the Planet")]
+        PLANETARY,
+        [Description("All the galaxy & beyond")]
+        INTERGALACTICAL
+    }
+
+}

+ 1 - 1
Dotnet/Warhammer/Models/Player.cs

@@ -5,7 +5,7 @@ namespace Warhammer.Models
     public partial class Player
     {
         [Key]
-        public int Id { get; set; }
+        public string Name { get; set; }
         public int Experience { get; set; }
         public int CC { get; set; }
         public int CT { get; set; }

+ 13 - 0
Dotnet/Warhammer/Models/Weapon.cs

@@ -0,0 +1,13 @@
+using System.ComponentModel.DataAnnotations;
+
+namespace Warhammer.Models
+{
+    public class Weapon
+    {
+        [Key]
+        public int id { get; set; }
+        public int Range { get; set; }
+        public string Name { get; set; }
+        
+    }
+}