mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-23 00:49:18 +01:00
Change planned API to use interfaces.
This commit is contained in:
parent
61680f0afb
commit
f579933dd7
2 changed files with 6 additions and 6 deletions
|
|
@ -104,12 +104,12 @@ public interface IPenumbraApi : IPenumbraApiBase
|
||||||
|
|
||||||
// Obtain the potential settings of a mod specified by its directory name first or mod name second.
|
// Obtain the potential settings of a mod specified by its directory name first or mod name second.
|
||||||
// Returns null if the mod could not be found.
|
// Returns null if the mod could not be found.
|
||||||
public Dictionary< string, (string[], SelectType) >? GetAvailableModSettings( string modDirectory, string modName );
|
public IDictionary< string, (IList<string>, SelectType) >? GetAvailableModSettings( string modDirectory, string modName );
|
||||||
|
|
||||||
// Obtain the enabled state, the priority, the settings of a mod specified by its directory name first or mod name second,
|
// Obtain the enabled state, the priority, the settings of a mod specified by its directory name first or mod name second,
|
||||||
// and whether these settings are inherited, or null if the collection does not set them at all.
|
// and whether these settings are inherited, or null if the collection does not set them at all.
|
||||||
// If allowInheritance is false, only the collection itself will be checked.
|
// If allowInheritance is false, only the collection itself will be checked.
|
||||||
public (PenumbraApiEc, (bool, int, Dictionary< string, string[] >, bool)?) GetCurrentModSettings( string collectionName,
|
public (PenumbraApiEc, (bool, int, IDictionary< string, IList<string> >, bool)?) GetCurrentModSettings( string collectionName,
|
||||||
string modDirectory, string modName, bool allowInheritance );
|
string modDirectory, string modName, bool allowInheritance );
|
||||||
|
|
||||||
// Try to set the inheritance state in the given collection of a mod specified by its directory name first or mod name second.
|
// Try to set the inheritance state in the given collection of a mod specified by its directory name first or mod name second.
|
||||||
|
|
@ -131,7 +131,7 @@ public interface IPenumbraApi : IPenumbraApiBase
|
||||||
public PenumbraApiEc TrySetModSetting( string collectionName, string modDirectory, string modName, string optionGroupName, string option );
|
public PenumbraApiEc TrySetModSetting( string collectionName, string modDirectory, string modName, string optionGroupName, string option );
|
||||||
|
|
||||||
public PenumbraApiEc TrySetModSetting( string collectionName, string modDirectory, string modName, string optionGroupName,
|
public PenumbraApiEc TrySetModSetting( string collectionName, string modDirectory, string modName, string optionGroupName,
|
||||||
string[] options );
|
IReadOnlyList<string> options );
|
||||||
|
|
||||||
|
|
||||||
// Create a temporary collection without actual settings but with a cache.
|
// Create a temporary collection without actual settings but with a cache.
|
||||||
|
|
|
||||||
|
|
@ -210,10 +210,10 @@ public class PenumbraApi : IDisposable, IPenumbraApi
|
||||||
return Penumbra.ModManager.Select( m => ( m.ModPath.Name, m.Name.Text ) ).ToArray();
|
return Penumbra.ModManager.Select( m => ( m.ModPath.Name, m.Name.Text ) ).ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Dictionary< string, (string[], SelectType) >? GetAvailableModSettings( string modDirectory, string modName )
|
public IDictionary< string, (IList<string>, SelectType) >? GetAvailableModSettings( string modDirectory, string modName )
|
||||||
=> throw new NotImplementedException();
|
=> throw new NotImplementedException();
|
||||||
|
|
||||||
public (PenumbraApiEc, (bool, int, Dictionary< string, string[] >, bool)?) GetCurrentModSettings( string collectionName, string modDirectory, string modName,
|
public (PenumbraApiEc, (bool, int, IDictionary< string, IList<string> >, bool)?) GetCurrentModSettings( string collectionName, string modDirectory, string modName,
|
||||||
bool allowInheritance )
|
bool allowInheritance )
|
||||||
=> throw new NotImplementedException();
|
=> throw new NotImplementedException();
|
||||||
|
|
||||||
|
|
@ -229,7 +229,7 @@ public class PenumbraApi : IDisposable, IPenumbraApi
|
||||||
public PenumbraApiEc TrySetModSetting( string collectionName, string modDirectory, string modName, string optionGroupName, string option )
|
public PenumbraApiEc TrySetModSetting( string collectionName, string modDirectory, string modName, string optionGroupName, string option )
|
||||||
=> throw new NotImplementedException();
|
=> throw new NotImplementedException();
|
||||||
|
|
||||||
public PenumbraApiEc TrySetModSetting( string collectionName, string modDirectory, string modName, string optionGroupName, string[] options )
|
public PenumbraApiEc TrySetModSetting( string collectionName, string modDirectory, string modName, string optionGroupName, IReadOnlyList<string> options )
|
||||||
=> throw new NotImplementedException();
|
=> throw new NotImplementedException();
|
||||||
|
|
||||||
public PenumbraApiEc CreateTemporaryCollection( string collectionName, string? character, bool forceOverwriteCharacter )
|
public PenumbraApiEc CreateTemporaryCollection( string collectionName, string? character, bool forceOverwriteCharacter )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue