Clientside Ammunation
This commit is contained in:
@@ -19,5 +19,8 @@ namespace ReallifeGamemode.Database.Entities
|
||||
public int SlotID { get; set; }
|
||||
public int Ammo { get; set; }
|
||||
public float Price { get; set; }
|
||||
|
||||
public bool Legal { get; set; }
|
||||
public bool AmmunationActive { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
1981
ReallifeGamemode.Database/Migrations/20210416175726_Ammunations2.Designer.cs
generated
Normal file
1981
ReallifeGamemode.Database/Migrations/20210416175726_Ammunations2.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,33 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ReallifeGamemode.Database.Migrations
|
||||
{
|
||||
public partial class Ammunations2 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "AmmunationActive",
|
||||
table: "Weapons",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "Legal",
|
||||
table: "Weapons",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "AmmunationActive",
|
||||
table: "Weapons");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Legal",
|
||||
table: "Weapons");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1600,9 +1600,15 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
b.Property<int>("Ammo")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("AmmunationActive")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<int>("CategoryId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("Legal")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<float>("Price")
|
||||
.HasColumnType("float");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user