Rebornbuddy
Loading...
Searching...
No Matches
ff14bot.Helpers.JsonSettings< T > Class Template Reference

Json settings class that allows easy instantiation. More...

Inheritance diagram for ff14bot.Helpers.JsonSettings< T >:
ff14bot.Helpers.JsonSettings UpdateBuddy.Settings.UpdateBuddyRepos UpdateBuddy.Settings.UpdateBuddySettings ff14bot.Settings.CharacterSettings ff14bot.Settings.GlobalSettings

Public Member Functions

 JsonSettings ()
 JsonSettings (string settingsFilePath)
Public Member Functions inherited from ff14bot.Helpers.JsonSettings
void Save ()
void SaveAs (string file)

Properties

static T Instance [get, set]
Properties inherited from ff14bot.Helpers.JsonSettings
virtual Version _revision [get]
 Override this field when you change the default values for a setting and use the UpdateDefaultValueAttribute attribute to updatethem.
static string AssemblyPath [get]
static string SettingsPath [get]
static string ItemWeightsDirectory [get]
Version Version [get, set]
string FilePath [get, set]
static string CharacterSettingsDirectory [get]

Additional Inherited Members

Static Public Member Functions inherited from ff14bot.Helpers.JsonSettings
static string GetSettingsFilePath (params string[] subPathParts)
Protected Member Functions inherited from ff14bot.Helpers.JsonSettings
 JsonSettings (string path)
void LoadFrom (string file)
void OnPropertyChanged ([CallerMemberName] string? propertyName=null)
bool SetField< T > (ref T field, T value, [CallerMemberName] string? propertyName=null)
 Call this function when updating an internal property to automatically raise the PropertyChanged event handler.
Events inherited from ff14bot.Helpers.JsonSettings
EventHandler? Reloaded
PropertyChangedEventHandler? PropertyChanged

Detailed Description

Json settings class that allows easy instantiation.

Template Parameters
T
Type Constraints
T :JsonSettings<T> 
T :new() 

Member Function Documentation

◆ JsonSettings() [1/2]

◆ JsonSettings() [2/2]

ff14bot.Helpers.JsonSettings< T >.JsonSettings ( string settingsFilePath)

Property Documentation

◆ Instance

T ff14bot.Helpers.JsonSettings< T >.Instance
staticgetset