[+] Add Gangwar System (bugs incl.)

This commit is contained in:
Lukas Moungos
2020-01-13 21:43:55 +01:00
parent 3b0189807e
commit e8321e3ec3
10 changed files with 246 additions and 85 deletions

View File

@@ -3,35 +3,35 @@ using Microsoft.EntityFrameworkCore.Migrations;
namespace ReallifeGamemode.Database.Migrations
{
public partial class Turfs : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
public partial class Turfs : Migration
{
migrationBuilder.CreateTable(
name: "Turfs",
columns: table => new
{
Id = table.Column<int>(nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
FactionId = table.Column<int>(nullable: true),
Owner = table.Column<string>(nullable: true),
Name = table.Column<string>(nullable: true),
X = table.Column<int>(nullable: false),
Y = table.Column<int>(nullable: false),
Rotation = table.Column<float>(nullable: false),
Range = table.Column<float>(nullable: false),
Color = table.Column<int>(nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Turfs", x => x.Id);
});
}
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Turfs",
columns: table => new
{
Id = table.Column<int>(nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
FactionId = table.Column<int>(nullable: true),
Owner = table.Column<string>(nullable: true),
Name = table.Column<string>(nullable: true),
X = table.Column<float>(nullable: false),
Y = table.Column<float>(nullable: false),
Rotation = table.Column<float>(nullable: false),
Range = table.Column<float>(nullable: false),
Color = table.Column<int>(nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Turfs", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Turfs");
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Turfs");
}
}
}
}

View File

@@ -907,9 +907,11 @@ namespace ReallifeGamemode.Database.Migrations
b.Property<float>("Rotation");
b.Property<int>("X");
b.Property<string>("Vector");
b.Property<int>("Y");
b.Property<float>("X");
b.Property<float>("Y");
b.HasKey("Id");