[+] Add Gangwar System (bugs incl.)
This commit is contained in:
@@ -21,6 +21,7 @@ namespace ReallifeGamemode.Database.Entities
|
||||
public float Rotation { get; set; }
|
||||
public float Range { get; set; }
|
||||
public int Color { get; set; }
|
||||
public string Vector { get; set; } = null;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user