Class ContentBrowserModel

Namespace
SurvivorsMaker.Editor
Assembly
SurvivorsMaker.Editor.dll

Stable authoring order, reference traversal and validation without running gameplay.

public static class ContentBrowserModel
Inheritance
ContentBrowserModel
Inherited Members

Fields

EliteTypeName

public const string EliteTypeName = "EliteAsset"

Field Value

string

TagPrefix

public const string TagPrefix = "tag:"

Field Value

string

UnlocksField

public const string UnlocksField = "Unlocks"

Field Value

string

Methods

BuildTree(ContentAsset, string)

public static List<ContentBrowserNode> BuildTree(ContentAsset content, string search = "")

Parameters

content ContentAsset
search string

Returns

List<ContentBrowserNode>

ContentIds(ContentAsset)

public static List<string> ContentIds(ContentAsset content)

Parameters

content ContentAsset

Returns

List<string>

DefinitionId(ContentAssetBase)

public static string DefinitionId(ContentAssetBase asset)

Parameters

asset ContentAssetBase

Returns

string

DisplayName(ContentAssetBase, string, UiStrings)

The game's display name for a content asset (authored name, else the id in title case); plain id for kinds without text.

public static string DisplayName(ContentAssetBase asset, string id, UiStrings strings)

Parameters

asset ContentAssetBase
id string
strings UiStrings

Returns

string

MissingCatalogIds(ContentAsset, ViewCatalogAsset)

public static List<string> MissingCatalogIds(ContentAsset content, ViewCatalogAsset catalog)

Parameters

content ContentAsset
catalog ViewCatalogAsset

Returns

List<string>

ReferencedAssets(ContentAsset)

public static List<ContentAssetBase> ReferencedAssets(ContentAsset content)

Parameters

content ContentAsset

Returns

List<ContentAssetBase>

SearchTags(ContentAssetBase)

Tag and bundle (pool group) keys of an asset; preferred and banned tags count for characters.

public static List<string> SearchTags(ContentAssetBase asset)

Parameters

asset ContentAssetBase

Returns

List<string>

TextStrings(ContentAsset)

UI strings carrying the content's authored names, so tree labels match what the game shows.

public static UiStrings TextStrings(ContentAsset content)

Parameters

content ContentAsset

Returns

UiStrings

Validate(ContentAsset)

public static List<ContentBrowserIssue> Validate(ContentAsset content)

Parameters

content ContentAsset

Returns

List<ContentBrowserIssue>

Validate(ContentAsset, ViewCatalogAsset, SoundCatalogAsset)

Content validation plus view and sound catalog checks (missing sprites, empty clips, unknown cue keys) as warnings.

public static List<ContentBrowserIssue> Validate(ContentAsset content, ViewCatalogAsset views, SoundCatalogAsset sounds)

Parameters

content ContentAsset
views ViewCatalogAsset
sounds SoundCatalogAsset

Returns

List<ContentBrowserIssue>