Class ContentBrowserActions
- Namespace
- SurvivorsMaker.Editor
- Assembly
- SurvivorsMaker.Editor.dll
Undoable content references and catalog changes. Disk deletion is a separate explicit UI action.
public static class ContentBrowserActions
- Inheritance
-
ContentBrowserActions
- Inherited Members
Methods
AddMissingCatalogEntries(ContentAsset, ViewCatalogAsset)
public static int AddMissingCatalogEntries(ContentAsset content, ViewCatalogAsset catalog)
Parameters
contentContentAssetcatalogViewCatalogAsset
Returns
AddReference(ContentAsset, ContentAssetBase)
public static void AddReference(ContentAsset content, ContentAssetBase asset)
Parameters
contentContentAssetassetContentAssetBase
Changed(ContentAsset)
public static void Changed(ContentAsset content)
Parameters
contentContentAsset
CloneEntry(ViewEntry)
public static ViewEntry CloneEntry(ViewEntry source)
Parameters
sourceViewEntry
Returns
CopyEntries(ViewCatalogAsset)
Copies of every entry (all fields, projectile look included), for SetEntries(IEnumerable<ViewEntry>).
public static List<ViewEntry> CopyEntries(ViewCatalogAsset catalog)
Parameters
catalogViewCatalogAsset
Returns
Create(ContentAsset, BrowserContentKind, ContentTemplate, string, string)
Creates one entry of kind (optionally from a template of that kind) and adds it to the content.
Elites have no content list: create the asset and assign it to a spawn entry or horde.
A summoner template also creates and registers the minion it summons.
public static ContentAssetBase Create(ContentAsset content, BrowserContentKind kind, ContentTemplate template, string folder, string name)
Parameters
contentContentAssetkindBrowserContentKindtemplateContentTemplatefolderstringnamestring
Returns
Create(ContentAsset, BrowserContentKind, string, string)
public static ContentAssetBase Create(ContentAsset content, BrowserContentKind kind, string folder, string name)
Parameters
contentContentAssetkindBrowserContentKindfolderstringnamestring
Returns
Duplicate(ContentAsset, ContentAssetBase, string)
public static ContentAssetBase Duplicate(ContentAsset content, ContentAssetBase source, string folder)
Parameters
contentContentAssetsourceContentAssetBasefolderstring
Returns
RemoveReference(ContentAsset, ContentAssetBase)
public static bool RemoveReference(ContentAsset content, ContentAssetBase asset)
Parameters
contentContentAssetassetContentAssetBase
Returns
SetCatalogIcon(ViewCatalogAsset, string, Sprite)
public static void SetCatalogIcon(ViewCatalogAsset catalog, string id, Sprite icon)
Parameters
catalogViewCatalogAssetidstringiconSprite