Class LegionPacks
- Namespace
- PixelUnitStudio.Editor
- Assembly
- PixelUnitStudio.Editor.dll
Finds the content packs in the project (LegionContentPack) and resolves their folders. The base product is one pack; add-ons are more packs in their own folders, read after it.
public static class LegionPacks
- Inheritance
-
LegionPacks
- Inherited Members
Methods
All()
Every pack in the project, in reading order (order, then title, then path).
public static List<LegionContentPack> All()
Returns
Fingerprint(List<LegionContentPack>)
Short text that changes when a pack is added, removed or reordered, or when its source art is added, removed or resized. The catalog keeps the value it was built with (LegionCatalog.packsFingerprint). Import settings and generated icons do not count.
public static string Fingerprint(List<LegionContentPack> packs)
Parameters
packsList<LegionContentPack>
Returns
Folder(LegionContentPack, string)
A pack folder (relative to the pack's root) as an Assets/ path. Empty if the folder is not set.
public static string Folder(LegionContentPack pack, string relative)
Parameters
packLegionContentPackrelativestring
Returns
HeroFolders()
Hero folders of the packs, for the edit screen's hero list (LegionEditor.PackHeroFolders).
public static List<(string title, string folder)> HeroFolders()
Returns
IconsFolder(LegionContentPack)
public static string IconsFolder(LegionContentPack pack)
Parameters
packLegionContentPack
Returns
Root(LegionContentPack)
Folder that holds the pack asset (Assets/...).
public static string Root(LegionContentPack pack)
Parameters
packLegionContentPack