Class BlueprintLibrary
- Namespace
- Root
- Assembly
- SPZGameAssembly.dll
public class BlueprintLibrary : IBlueprintLibrary
- Inheritance
-
objectBlueprintLibrary
- Implements
- Extension Methods
Constructors
BlueprintLibrary(ILogger, IBlueprintImporter, IBlueprintExporter)
public BlueprintLibrary(ILogger logger, IBlueprintImporter blueprintImporter, IBlueprintExporter blueprintExporter)
Parameters
loggerILoggerblueprintImporterIBlueprintImporterblueprintExporterIBlueprintExporter
Fields
FilenameSuffix
public const string FilenameSuffix = ".spz2bp"
Field Value
- string
Properties
OnFullyRefreshed
public IEvent OnFullyRefreshed { get; }
Property Value
OnShortcutsChanged
public IEvent OnShortcutsChanged { get; }
Property Value
RootEntry
public BlueprintLibraryFolder RootEntry { get; }
Property Value
Shortcuts
public IReadOnlyList<IBlueprintLibraryEntry> Shortcuts { get; }
Property Value
- IReadOnlyList<IBlueprintLibraryEntry>
Methods
Dispose()
public void Dispose()
Refresh()
public void Refresh()
SanitizeName(string)
public string SanitizeName(string title)
Parameters
titlestring
Returns
- string
TryBindShortcut(int, IBlueprintLibraryEntry)
public bool TryBindShortcut(int index, IBlueprintLibraryEntry entry)
Parameters
indexintentryIBlueprintLibraryEntry
Returns
- bool
TryCreateFolder(string, BlueprintLibraryFolder)
public bool TryCreateFolder(string name, BlueprintLibraryFolder parent)
Parameters
namestringparentBlueprintLibraryFolder
Returns
- bool
TryMoveEntry(IBlueprintLibraryEntry, BlueprintLibraryFolder)
public bool TryMoveEntry(IBlueprintLibraryEntry entry, BlueprintLibraryFolder newParent)
Parameters
entryIBlueprintLibraryEntrynewParentBlueprintLibraryFolder
Returns
- bool
TryRemoveEntry(IBlueprintLibraryEntry)
public bool TryRemoveEntry(IBlueprintLibraryEntry entry)
Parameters
entryIBlueprintLibraryEntry
Returns
- bool
TryRenameEntry(IBlueprintLibraryEntry, string)
public bool TryRenameEntry(IBlueprintLibraryEntry entry, string newTitle)
Parameters
entryIBlueprintLibraryEntrynewTitlestring
Returns
- bool
TrySaveChangedBlueprint(BlueprintLibraryEntry)
public bool TrySaveChangedBlueprint(BlueprintLibraryEntry entry)
Parameters
entryBlueprintLibraryEntry
Returns
- bool
TrySaveEntry(string, IAnnotatedBlueprint, BlueprintLibraryFolder, bool, int)
public bool TrySaveEntry(string name, IAnnotatedBlueprint blueprint, BlueprintLibraryFolder parent, bool allowOverride, int version)
Parameters
namestringblueprintIAnnotatedBlueprintparentBlueprintLibraryFolderallowOverrideboolversionint
Returns
- bool