public static BoostResponse ReadBoosts(string playerId) { var resp = GenericUtils.ParseJsonFile <BoostResponse>(playerId, "boosts"); if (resp.result.miniFigs.Count != 5) { resp.result.miniFigs = new List <object>(new object[5]); WriteBoosts(playerId, resp); } if (resp.result.potions.Count != 5) { resp.result.potions = new List <Potion>(new Potion[5]); WriteBoosts(playerId, resp); } return(resp); }
public static PlayerBuildplateList ReadPlayerBuildplateList(string playerId) => GenericUtils.ParseJsonFile <PlayerBuildplateList>(playerId, "buildplates");
public static SplitRubyResponse ReadRubies(string playerId) { return(GenericUtils.ParseJsonFile <SplitRubyResponse>(playerId, "rubies")); }
public static JournalResponse ReadJournalForPlayer(string playerId) => GenericUtils.ParseJsonFile <JournalResponse>(playerId, "journal");
public static UtilityBlocksResponse ReadUtilityBlocks(string playerId) { return(GenericUtils.ParseJsonFile <UtilityBlocksResponse>(playerId, "utilityBlocks")); }
public static ProfileData ReadProfile(string playerId) { return(GenericUtils.ParseJsonFile <ProfileData>(playerId, "profile")); }
private static ChallengesResponse ReadChallenges(string playerId) { return(GenericUtils.ParseJsonFile <ChallengesResponse>(playerId, "challenges")); }