ORK Framework  2.25.2
API Documentation
ORKFramework.AbilityShortcut Class Reference
Inheritance diagram for ORKFramework.AbilityShortcut:
ORKFramework.IShortcut ORKFramework.IMarkNewContent ORKFramework.ITargetRange ORKFramework.ICastTime ORKFramework.IRenameable ORKFramework.IVariableSource ORKFramework.IUseCostDisplay ORKFramework.IContent ORKFramework.ISaveData ORKFramework.CoreIShortcut ORKFramework.IPreviewable ORKFramework.IPortraitContent ORKFramework.IContentSimple ORKFramework.IContent ORKFramework.IContentSimple ORKFramework.EquipAbilityShortcut

Public Member Functions

 AbilityShortcut (int id, int lvl, AbilityActionType type)
 
IShortcut GetCopy (int quantity)
 
bool IsEqual (IShortcut shortcut)
 
int BuyPrice (Combatant user)
 
int SellPrice (Combatant user)
 
void InitVariables ()
 
void UpdateVariableChanges ()
 
virtual void UsesExperience (Combatant combatant, int points)
 
virtual void CheckLevelUp (Combatant combatant, int points)
 
virtual bool CanLevelUp ()
 
virtual bool CanLevelUpSpend (Combatant combatant)
 
virtual void SpendExperience (Combatant combatant)
 
virtual string GetLevelUpCostString (Combatant combatant)
 
void SetStartEffects (Combatant owner)
 
void RemoveStartEffects (Combatant owner)
 
bool IsUseable (UseableIn useIn)
 
ActiveAbility GetActiveLevel ()
 
PassiveAbility GetPassiveLevel ()
 
bool InRange (Combatant user, Combatant target)
 
float GetAvailableTime ()
 
float GetTimeUse ()
 
float GetCastTime (Combatant user)
 
void PlayCastAudio (Combatant user)
 
bool CanCancelCasting ()
 
bool CanCastMove ()
 
void ShowCastingConsoleText (Combatant user, List< Combatant > target, Dictionary< Combatant, StatusChangeInformation > statusChangesTarget)
 
void ShowCancelCastingConsoleText (Combatant user, List< Combatant > target, Dictionary< Combatant, StatusChangeInformation > statusChangesTarget)
 
bool CanTarget (Combatant user, Combatant target)
 
bool HasPossibleTargets (Combatant user, List< Combatant > available)
 
List< CombatantGetPossibleTargets (Combatant user, List< Combatant > available)
 
bool IsNoneTarget ()
 
bool IsSingleTarget ()
 
bool IsGroupTarget ()
 
bool ToggleTargetRange ()
 
int GetLevel ()
 
void SetUseLevel (int lvl)
 
bool ChangeUseLevel (int change, bool loop)
 
void SetHighestUseLevel (Combatant c)
 
IContentSimple GetTypeContent ()
 
string GetName ()
 
void SetName (string name)
 
string GetDescription ()
 
string GetIconTextCode ()
 
Texture GetIcon ()
 
GUIContent GetContent ()
 
string GetInfo (Combatant combatant)
 
string GetUseCostText (Combatant user)
 
ShortcutHUDWrapper GetDrag (Combatant user)
 
bool IsDropable ()
 
bool CanUse (Combatant c, bool checkTime, bool checkUseCosts)
 
void CallCombatantSelection (BaseMenuPart parent, bool useAction)
 
bool Use (Combatant user, List< Combatant > targets, bool useAction)
 
bool AutoUse (Combatant user)
 
string GetReuseTimeText (Combatant user, int decimals)
 
virtual void RegisterStatusChanges (Combatant c)
 
virtual void UnregisterStatusChanges (Combatant c)
 
virtual void StatusValueChanged (Combatant c, int id, int change)
 
IPortrait GetPortrait (int typeID)
 
void UnmarkID (int id)
 
StatusPreview GetPreview (Combatant combatant, PreviewSelection selectedPreview)
 
DataObject SaveGame ()
 Used to save the data - you need to add the data to a ORKFramework.DataObject. More...
 
void LoadGame (DataObject data)
 Used to load the data - you need to get the data from the ORKFramework.DataObject. More...
 

Protected Attributes

AbilityActionType type
 
int id = 0
 
int level = 1
 
int useLevel = 1
 
int lvlPoints = 0
 
Ability ability
 
bool isTemporary = false
 
VariableHandler variableHandler
 
bool isNewContent = false
 
bool targetRangeToggle = false
 
string name = ""
 

Properties

bool IsTemporary [get, set]
 
int Quantity [get, set]
 
int Level [get, set]
 
int UseLevel [get]
 
virtual int LevelPoints [get]
 
virtual int MinLevelPoints [get]
 
virtual int MaxLevelPoints [get]
 
AbilityActionType Type [get]
 
Ability Setting [get]
 
bool HasVariables [get]
 
VariableHandler Variables [get]
 
CastTimeSettingsCastTimeSettings [get]
 
int ID [get]
 
int TypeID [get]
 
bool OnScreenCombatant [get]
 
bool IsNewContent [get, set]
 
- Properties inherited from ORKFramework.IShortcut
int Quantity [get, set]
 
- Properties inherited from ORKFramework.IContent
int TypeID [get]
 
- Properties inherited from ORKFramework.IContentSimple
int ID [get]
 
- Properties inherited from ORKFramework.IMarkNewContent
bool IsNewContent [get, set]
 
- Properties inherited from ORKFramework.ICastTime
CastTimeSettings CastTimeSettings [get]
 
- Properties inherited from ORKFramework.IVariableSource
bool HasVariables [get]
 
VariableHandler Variables [get]
 

Member Function Documentation

◆ LoadGame()

void ORKFramework.AbilityShortcut.LoadGame ( DataObject  data)

Used to load the data - you need to get the data from the ORKFramework.DataObject.

Parameters
dataA ORKFramework.DataObject containing the data.

Implements ORKFramework.ISaveData.

◆ SaveGame()

DataObject ORKFramework.AbilityShortcut.SaveGame ( )

Used to save the data - you need to add the data to a ORKFramework.DataObject.

Returns
A ORKFramework.DataObject containing the data.

Implements ORKFramework.ISaveData.