This repository has been archived by the owner on Apr 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VehicleHandler #12 - Zwischenstand implementierung weiterer VehicleHa…
…ndler Tabellen
- Loading branch information
Showing
6 changed files
with
83 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
EvoMp/EvoMp.Module.VehicleHandler/Server/Entity/ComponentDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
using EvoMp.Module.VehicleHandler.Server.Enum; | ||
using GrandTheftMultiplayer.Shared; | ||
using GrandTheftMultiplayer.Shared.Math; | ||
|
||
namespace EvoMp.Module.VehicleHandler.Server.Entity | ||
{ | ||
[Table("VehicleComponents")] | ||
public class ComponentDto | ||
{ | ||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] | ||
[Key, Column(Order = 0)] | ||
public VehicleDto ComponentId { get; set; } | ||
|
||
[Key, Column("Slot", Order = 1)] | ||
public int Slot { get; set; } | ||
|
||
[Key, Column("Value", Order = 2)] | ||
public int Value { get; set; } | ||
|
||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
EvoMp/EvoMp.Module.VehicleHandler/Server/Entity/VehicleColorDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
using EvoMp.Module.VehicleHandler.Server.Enum; | ||
using GrandTheftMultiplayer.Shared; | ||
using GrandTheftMultiplayer.Shared.Math; | ||
|
||
namespace EvoMp.Module.VehicleHandler.Server.Entity | ||
{ | ||
[Table("VehicleColors")] | ||
public class VehicleColorDto | ||
{ | ||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] | ||
[Key, Column(Order = 0)] | ||
public int VehicleColorId { get; set; } | ||
|
||
[Key, Column("Red", Order = 1)] | ||
public int Red { get; set; } | ||
|
||
[Key, Column("Green", Order = 2)] | ||
public int Green { get; set; } | ||
|
||
[Key, Column("Blue", Order = 3)] | ||
public int Blue { get; set; } | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
EvoMp/EvoMp.Module.VehicleHandler/Server/Entity/VehicleComponentDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
using EvoMp.Module.VehicleHandler.Server.Enum; | ||
using GrandTheftMultiplayer.Shared; | ||
using GrandTheftMultiplayer.Shared.Math; | ||
|
||
namespace EvoMp.Module.VehicleHandler.Server.Entity | ||
{ | ||
[Table("VehicleComponentMappings")] | ||
public class VehicleComponentDto | ||
{ | ||
[Key] | ||
public VehicleDto Vehicle { get; set; } | ||
|
||
[Key, Column(Order = 1)] | ||
public ComponentDto Component { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters