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
Weapons
public static readonly ContentTemplate[] Weapons
Field Value
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
assetContentAssetBasetemplateContentTemplate
Boss(EnemyAsset)
public static void Boss(EnemyAsset enemy)
Parameters
enemyEnemyAsset
Charger(EnemyAsset)
public static void Charger(EnemyAsset enemy)
Parameters
enemyEnemyAsset
Chaser(EnemyAsset)
public static void Chaser(EnemyAsset enemy)
Parameters
enemyEnemyAsset
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
templateContentTemplatefolderstringnamestring
Returns
DefaultName(ContentTemplate)
public static string DefaultName(ContentTemplate template)
Parameters
templateContentTemplate
Returns
Elite(EliteAsset)
public static void Elite(EliteAsset elite)
Parameters
eliteEliteAsset
For(BrowserContentKind)
The templates that create kind (Blank first).
public static List<ContentTemplate> For(BrowserContentKind kind)
Parameters
kindBrowserContentKind
Returns
KindOf(ContentTemplate)
public static BrowserContentKind KindOf(ContentTemplate template)
Parameters
templateContentTemplate
Returns
Label(ContentTemplate)
public static string Label(ContentTemplate template)
Parameters
templateContentTemplate
Returns
Shooter(EnemyAsset)
public static void Shooter(EnemyAsset enemy)
Parameters
enemyEnemyAsset
Slug(string)
"Ranged Weapon" → "ranged_weapon".
public static string Slug(string name)
Parameters
namestring
Returns
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
enemyEnemyAssetminionEnemyAsset
Weapon(WeaponAsset, WeaponKind)
public static void Weapon(WeaponAsset weapon, WeaponKind kind)
Parameters
weaponWeaponAssetkindWeaponKind