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

content ContentAsset
catalog ViewCatalogAsset

Returns

int

AddReference(ContentAsset, ContentAssetBase)

public static void AddReference(ContentAsset content, ContentAssetBase asset)

Parameters

content ContentAsset
asset ContentAssetBase

Changed(ContentAsset)

public static void Changed(ContentAsset content)

Parameters

content ContentAsset

CloneEntry(ViewEntry)

public static ViewEntry CloneEntry(ViewEntry source)

Parameters

source ViewEntry

Returns

ViewEntry

CopyEntries(ViewCatalogAsset)

Copies of every entry (all fields, projectile look included), for SetEntries(IEnumerable<ViewEntry>).

public static List<ViewEntry> CopyEntries(ViewCatalogAsset catalog)

Parameters

catalog ViewCatalogAsset

Returns

List<ViewEntry>

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

content ContentAsset
kind BrowserContentKind
template ContentTemplate
folder string
name string

Returns

ContentAssetBase

Create(ContentAsset, BrowserContentKind, string, string)

public static ContentAssetBase Create(ContentAsset content, BrowserContentKind kind, string folder, string name)

Parameters

content ContentAsset
kind BrowserContentKind
folder string
name string

Returns

ContentAssetBase

Duplicate(ContentAsset, ContentAssetBase, string)

public static ContentAssetBase Duplicate(ContentAsset content, ContentAssetBase source, string folder)

Parameters

content ContentAsset
source ContentAssetBase
folder string

Returns

ContentAssetBase

RemoveReference(ContentAsset, ContentAssetBase)

public static bool RemoveReference(ContentAsset content, ContentAssetBase asset)

Parameters

content ContentAsset
asset ContentAssetBase

Returns

bool

SetCatalogIcon(ViewCatalogAsset, string, Sprite)

public static void SetCatalogIcon(ViewCatalogAsset catalog, string id, Sprite icon)

Parameters

catalog ViewCatalogAsset
id string
icon Sprite