using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Revitalize.Framework.Configs { /// /// Deals with config settings for furniture. /// public class FurnitureConfig { /// /// How many draw frames should happen between rotating a furniture piece. /// public int furnitureFrameRotationDelay; /// /// Constructor. /// public FurnitureConfig() { this.furnitureFrameRotationDelay = 20; } /// /// Initializes the config for furniture. /// /// public static FurnitureConfig InitializeConfig() { if (File.Exists(Path.Combine(ModCore.ModHelper.DirectoryPath, "Configs", "FurnitureConfig.json"))) return ModCore.ModHelper.Data.ReadJsonFile(Path.Combine("Configs", "FurnitureConfig.json")); else { FurnitureConfig Config = new FurnitureConfig(); ModCore.ModHelper.Data.WriteJsonFile(Path.Combine("Configs", "FurnitureConfig.json"), Config); return Config; } } } }