Class LegionActionLibrary

Namespace
PixelUnitStudio
Assembly
PixelUnitStudio.Runtime.dll

Custom actions shared by every hero. The edit screen keeps them in LegionActions.asset in the hero save folder, and saved hero prefabs reference it through their LegionActionPlayer.

public sealed class LegionActionLibrary : ScriptableObject
Inheritance
LegionActionLibrary

Constructors

LegionActionLibrary()

public LegionActionLibrary()

Fields

actions

public List<LegionAction> actions

Field Value

List<LegionAction>

Methods

Find(string)

public LegionAction Find(string actionName)

Parameters

actionName string

Returns

LegionAction

Put(LegionAction)

Adds the action, or replaces the one with the same name.

public void Put(LegionAction action)

Parameters

action LegionAction

Remove(string)

public bool Remove(string actionName)

Parameters

actionName string

Returns

bool