Skip to content

A Lazy-Use Config With Automatic Loading And Saving. Use Is Close To How It Would Be Without A Config.

License

Notifications You must be signed in to change notification settings

MistressPlague/ConfigLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

ConfigLib

A Lazy-Use Config With Automatic Loading And Saving. Use Is Close To How It Would Be Without A Config.

Install with NuGet

https://www.nuget.org/packages/Kannya.ConfigLib/

Example Usage

public ConfigLib<YourClass> Config = new ConfigLib<YourClass>("PathToWhereYouWantItSaved.json");

public class YourClass
{
  public bool thing { get; set; } = false;
}

public void Read()
{
  if (Config.InternalConfig.thing)
  {
    Config.InternalConfig.thing = false; // auto saves after small delay if changes are detected
  }
}

About

A Lazy-Use Config With Automatic Loading And Saving. Use Is Close To How It Would Be Without A Config.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages