Moved tuning garages to database, moved vehicle distance driven counter timer from update event to timer
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user