add friseur

This commit is contained in:
michael.reiswich
2021-01-25 14:17:57 +01:00
parent fe1916c60a
commit b8815f79e9
14 changed files with 608 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ using ReallifeGamemode.Database.Entities.Saves;
using ReallifeGamemode.Database.Models;
using ReallifeGamemode.Server.Shop.Clothing;
using ReallifeGamemode.Server.Shop.SevenEleven;
using ReallifeGamemode.Server.Shop.Friseur;
namespace ReallifeGamemode.Server.Managers
{
@@ -12,6 +13,7 @@ namespace ReallifeGamemode.Server.Managers
{
public static List<ClotheShop> clotheStores = new List<ClotheShop>();
public static List<ItemShop> itemShops = new List<ItemShop>();
public static List<Friseur> FriseurStores = new List<Friseur>();
public static void LoadClotheShops()
{
@@ -61,5 +63,23 @@ namespace ReallifeGamemode.Server.Managers
NAPI.Util.ConsoleOutput($"Loaded {itemShops.Count}x 24/7");
}
}
public static void LoadFriseur()
{
using (var dbContext = new DatabaseContext())
{
List<SavedBlip> friseur = dbContext.Blips.ToList().FindAll(s => s.Name == "Friseur");
foreach (var store in friseur)
{
Vector3 pos = new Vector3(store.PositionX, store.PositionY, store.PositionZ);
Friseur newShop = new Friseur(10, pos);
FriseurStores.Add(newShop);
NAPI.Util.ConsoleOutput($"Loading Friseur {store.Name}");
}
}
}
}
}