forked from SoDOff-Project/sodoff
remove InventoryService from AchievementStore
This commit is contained in:
parent
9949fb5e7d
commit
efb2958124
@ -7,7 +7,6 @@ using System.Xml.Linq;
|
|||||||
|
|
||||||
namespace sodoff.Services {
|
namespace sodoff.Services {
|
||||||
public class AchievementStoreSingleton {
|
public class AchievementStoreSingleton {
|
||||||
private InventoryService inventoryService;
|
|
||||||
|
|
||||||
Dictionary<AchievementPointTypes, UserRank[]> ranks = new();
|
Dictionary<AchievementPointTypes, UserRank[]> ranks = new();
|
||||||
Dictionary<int, AchievementReward[]> achivmentsRewardByID = new();
|
Dictionary<int, AchievementReward[]> achivmentsRewardByID = new();
|
||||||
@ -16,8 +15,7 @@ namespace sodoff.Services {
|
|||||||
int dragonAdultMinXP;
|
int dragonAdultMinXP;
|
||||||
int dragonTitanMinXP;
|
int dragonTitanMinXP;
|
||||||
|
|
||||||
public AchievementStoreSingleton(InventoryService inventoryService) {
|
public AchievementStoreSingleton() {
|
||||||
this.inventoryService = inventoryService;
|
|
||||||
|
|
||||||
ArrayOfUserRank allranks = XmlUtil.DeserializeXml<ArrayOfUserRank>(XmlUtil.ReadResourceXmlString("allranks"));
|
ArrayOfUserRank allranks = XmlUtil.DeserializeXml<ArrayOfUserRank>(XmlUtil.ReadResourceXmlString("allranks"));
|
||||||
foreach (var pointType in Enum.GetValues<AchievementPointTypes>()) {
|
foreach (var pointType in Enum.GetValues<AchievementPointTypes>()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user