/// Gets a dynamic object providing access to the configuration.
/// Gets a dynamic object providing access to the configuration.
/// </summary>
/// </summary>
/// <value>a dynamically bound object to use to access config values directly</value>
dynamicDynamic{get;}
dynamicDynamic{get;}
#region State getters
#region State getters
/// <summary>
/// <summary>
/// Returns <see langword="true"/> if object has changed since the last save
/// Returns <see langword="true"/> if object has changed since the last save
/// </summary>
/// </summary>
/// <value><see langword="true"/> if object has changed since the last save, else <see langword="false"/></value>
boolHasChanged{get;}
boolHasChanged{get;}
/// <summary>
/// <summary>
/// Returns <see langword="true"/> if the data in memory has been changed - notably including loads.
/// Returns <see langword="true"/> if the data in memory has been changed - notably including loads.
/// </summary>
/// </summary>
/// <value><see langword="true"/> if the data in memory has been changed, else <see langword="false"/></value>
boolInMemoryChanged{get;set;}
boolInMemoryChanged{get;set;}
/// <summary>
/// <summary>
/// Will be set with the filename (no extension) to save to. When saving, the implementation should add the appropriate extension. Should error if set multiple times.
/// Will be set with the filename (no extension) to save to. When saving, the implementation should add the appropriate extension. Should error if set multiple times.
/// </summary>
/// </summary>
/// <value>the extensionless filename to save to</value>
stringFilename{set;}
stringFilename{set;}
/// <summary>
/// <summary>
/// Gets the last time the config was modified.
/// Gets the last time the config was modified.
/// </summary>
/// </summary>
/// <value>the last time the config file was modified</value>
DateTimeLastModified{get;}
DateTimeLastModified{get;}
/// <summary>
/// <summary>
/// Saves configuration to file. Should error if not a root object.
/// Saves configuration to file. Should error if not a root object.
/// Called before a plugin's Init method is called. This will not be called if there is no Init method. This should never throw an exception. An exception will abort the loading of the plugin with an error.
/// Called before a plugin's `Init` method is called. This will not be called if there is no `Init` method. This should never throw an exception. An exception will abort the loading of the plugin with an error.
/// </summary>
/// </summary>
/// <param name="plugin">the plugin to be initialized</param>
/// <param name="plugin">the plugin to be initialized</param>
/// <returns>whether or not to call the Init method</returns>
/// <returns>whether or not to call the Init method</returns>
publicoverridestringToString()=>$"{Name}({Id}@{Version})({PluginType?.FullName}) from '{Utils.GetRelativePath(File?.FullName, BeatSaber.InstallPath)}'";
publicoverridestringToString()=>$"{Name}({Id}@{Version})({PluginType?.FullName}) from '{Utils.GetRelativePath(File?.FullName, BeatSaber.InstallPath)}'";