add friseur
This commit is contained in:
@@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user