Moved tuning garages to database, moved vehicle distance driven counter timer from update event to timer

This commit is contained in:
hydrant
2019-04-12 19:03:23 +02:00
parent 5749b15151
commit 434e19e6ea
10 changed files with 1194 additions and 46 deletions

View File

@@ -11,6 +11,16 @@ namespace ReallifeGamemode.Server.Managers
{
private static List<ColShape> tuningGarages = new List<ColShape>();
public static void LoadTuningGarages()
{
using (var dbContext = new DatabaseContext())
{
foreach (TuningGarage garage in dbContext.TuningGarages)
{
AddTuningGarage(garage.Position);
}
}
}
/// <summary>
/// Fügt eine Tuning-Garage zum Spiel hinzu
/// </summary>