Class MakerToolContext
- Namespace
- SurvivorsMaker.Editor
- Assembly
- SurvivorsMaker.Editor.dll
Content and settings lookups shared by the maker tool windows.
public static class MakerToolContext
- Inheritance
-
MakerToolContext
- Inherited Members
Methods
AllEnemies(ContentAsset)
Enemies the content lists, plus enemies reached through waves, hordes, summons and death spawns.
public static List<EnemyAsset> AllEnemies(ContentAsset content)
Parameters
contentContentAsset
Returns
AllWeapons(ContentAsset)
Content weapons followed by their tier chains, without duplicates, in authored order.
public static List<WeaponAsset> AllWeapons(ContentAsset content)
Parameters
contentContentAsset
Returns
DefaultContent(Object)
The selection when it is (or belongs to) a content asset, else the first content asset in the project.
public static ContentAsset DefaultContent(Object selection)
Parameters
selectionObject
Returns
DefaultSettings(ContentAsset, Object)
public static GameSettingsAsset DefaultSettings(ContentAsset content, Object selection = null)
Parameters
contentContentAssetselectionObject
Returns
FindWave(WaveAsset, out ContentAsset, out ArenaAsset, out int)
Finds a wave asset in the project's contents: content, arena and 1-based wave number.
public static bool FindWave(WaveAsset wave, out ContentAsset content, out ArenaAsset arena, out int waveNumber)
Parameters
waveWaveAssetcontentContentAssetarenaArenaAssetwaveNumberint
Returns
FirstArena(ContentAsset, out int)
First arena with waves (the one bot runs use by default).
public static ArenaAsset FirstArena(ContentAsset content, out int index)
Parameters
contentContentAssetindexint
Returns
Label(ContentAssetBase)
public static string Label(ContentAssetBase asset)
Parameters
assetContentAssetBase
Returns
Ping(Object)
Pings and selects an asset in the Project window.
public static void Ping(Object asset)
Parameters
assetObject
References(ContentAsset, Object)
True when target is listed by the content directly, as a weapon tier, or as an arena wave.
public static bool References(ContentAsset content, Object target)
Parameters
contentContentAssettargetObject
Returns
Snapshot(ContentAsset, GameSettingsAsset, ArenaAsset, int)
Snapshot that targets a specific arena asset of the content.
public static MakerSnapshot Snapshot(ContentAsset content, GameSettingsAsset settings, ArenaAsset arena, int difficulty)
Parameters
contentContentAssetsettingsGameSettingsAssetarenaArenaAssetdifficultyint
Returns
Snapshot(ContentAsset, GameSettingsAsset, RunMode, int, uint, string, int)
Converts the assets into run definitions (copies of settings, cached content definitions) on the editor thread. Throws with a readable message when content or settings are missing.
public static MakerSnapshot Snapshot(ContentAsset content, GameSettingsAsset settings, RunMode mode = RunMode.Arena, int runs = 100, uint seed = 1, string bot = "Greedy", int difficulty = 0)
Parameters
contentContentAssetsettingsGameSettingsAssetmodeRunModerunsintseeduintbotstringdifficultyint
Returns
TierChain(WeaponAsset, IEnumerable<WeaponAsset>)
Tier chain starting at the lowest tier that leads to weapon.
public static List<WeaponAsset> TierChain(WeaponAsset weapon, IEnumerable<WeaponAsset> pool = null)
Parameters
weaponWeaponAssetpoolIEnumerable<WeaponAsset>
Returns
WaveAt(ContentAsset, int)
The authoring asset of 1-based wave wave in the first arena with waves.
public static WaveAsset WaveAt(ContentAsset content, int wave)
Parameters
contentContentAssetwaveint