Class ContentTemplates

Namespace
SurvivorsMaker.Editor
Assembly
SurvivorsMaker.Editor.dll
public static class ContentTemplates
Inheritance
ContentTemplates
Inherited Members

Fields

Enemies

public static readonly ContentTemplate[] Enemies

Field Value

ContentTemplate[]

Weapons

public static readonly ContentTemplate[] Weapons

Field Value

ContentTemplate[]

Methods

Apply(ContentAssetBase, ContentTemplate)

Fills a new asset with the template's values. The asset type must match the template.

public static void Apply(ContentAssetBase asset, ContentTemplate template)

Parameters

asset ContentAssetBase
template ContentTemplate

Boss(EnemyAsset)

public static void Boss(EnemyAsset enemy)

Parameters

enemy EnemyAsset

Charger(EnemyAsset)

public static void Charger(EnemyAsset enemy)

Parameters

enemy EnemyAsset

Chaser(EnemyAsset)

public static void Chaser(EnemyAsset enemy)

Parameters

enemy EnemyAsset

CreateAssets(ContentTemplate, string, string)

Creates the template's asset(s) in folder as one undo step and returns them; the main asset is last (a summoner's minion comes first). Ids come from the file names. Not added to any ContentAsset.

public static List<ContentAssetBase> CreateAssets(ContentTemplate template, string folder, string name)

Parameters

template ContentTemplate
folder string
name string

Returns

List<ContentAssetBase>

DefaultName(ContentTemplate)

public static string DefaultName(ContentTemplate template)

Parameters

template ContentTemplate

Returns

string

Elite(EliteAsset)

public static void Elite(EliteAsset elite)

Parameters

elite EliteAsset

For(BrowserContentKind)

The templates that create kind (Blank first).

public static List<ContentTemplate> For(BrowserContentKind kind)

Parameters

kind BrowserContentKind

Returns

List<ContentTemplate>

KindOf(ContentTemplate)

public static BrowserContentKind KindOf(ContentTemplate template)

Parameters

template ContentTemplate

Returns

BrowserContentKind

Label(ContentTemplate)

public static string Label(ContentTemplate template)

Parameters

template ContentTemplate

Returns

string

Shooter(EnemyAsset)

public static void Shooter(EnemyAsset enemy)

Parameters

enemy EnemyAsset

Slug(string)

"Ranged Weapon" → "ranged_weapon".

public static string Slug(string name)

Parameters

name string

Returns

string

Summoner(EnemyAsset, EnemyAsset)

Summons minion (assign one before use: a summon attack without a minion does not validate).

public static void Summoner(EnemyAsset enemy, EnemyAsset minion)

Parameters

enemy EnemyAsset
minion EnemyAsset

Weapon(WeaponAsset, WeaponKind)

public static void Weapon(WeaponAsset weapon, WeaponKind kind)

Parameters

weapon WeaponAsset
kind WeaponKind