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
TagPrefix
public const string TagPrefix = "tag:"
Field Value
UnlocksField
public const string UnlocksField = "Unlocks"
Field Value
Methods
BuildTree(ContentAsset, string)
public static List<ContentBrowserNode> BuildTree(ContentAsset content, string search = "")
Parameters
contentContentAssetsearchstring
Returns
ContentIds(ContentAsset)
public static List<string> ContentIds(ContentAsset content)
Parameters
contentContentAsset
Returns
DefinitionId(ContentAssetBase)
public static string DefinitionId(ContentAssetBase asset)
Parameters
assetContentAssetBase
Returns
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
assetContentAssetBaseidstringstringsUiStrings
Returns
MissingCatalogIds(ContentAsset, ViewCatalogAsset)
public static List<string> MissingCatalogIds(ContentAsset content, ViewCatalogAsset catalog)
Parameters
contentContentAssetcatalogViewCatalogAsset
Returns
ReferencedAssets(ContentAsset)
public static List<ContentAssetBase> ReferencedAssets(ContentAsset content)
Parameters
contentContentAsset
Returns
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
assetContentAssetBase
Returns
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
contentContentAsset
Returns
Validate(ContentAsset)
public static List<ContentBrowserIssue> Validate(ContentAsset content)
Parameters
contentContentAsset
Returns
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
contentContentAssetviewsViewCatalogAssetsoundsSoundCatalogAsset