ORK Framework  2.22.0
API Documentation
ORKFramework.BattleSettings Class Reference
Inheritance diagram for ORKFramework.BattleSettings:
ORKFramework.BaseSettings ORKFramework.CoreSettings ORKFramework.IBaseData

Public Member Functions

 BattleSettings (ORKProjectAsset project)
override void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
override void SetRealIDs ()
 Sets the RealID values (indexes). More...
override string GetName (int index)
 Gets the name of a data. More...
override string[] GetNames (bool addIndex)
 Gets a list of names of all data. More...
override int Add ()
 Adds new data. More...
override int Copy (int index)
 Creates a copy of the data with the specified index. More...
override void Remove (int index)
 Removes the data with the specified index. More...
override void Move (int index, bool down)
 Moves the data with the specified index. More...
void ShowTargetInformation (Combatant user, List< Combatant > targets, IShortcut shortcut)
void CursorOverTargetInformation (Combatant combatant, bool changed)
void CloseTargetInformation ()
- Public Member Functions inherited from ORKFramework.BaseSettings
override void DataAdded (ORKDataType type, int index)
 Automatic data updated function when adding new data. More...
override void DataRemoved (ORKDataType type, int index, int index2)
 Automatic data update function when removing data. More...
override void DataMoved (ORKDataType type, bool down, int index, int index2)
 Automatic data update function when moving data. More...
override void DataLoaded ()
 Called after loading the project data of all settings. Handles final data checks. More...
- Public Member Functions inherited from ORKFramework.CoreSettings
virtual void LoadProject (ORKProjectAsset project)
 Loads the settings found in the ORK Project asset. More...
virtual void GetSaveData (ref Dictionary< string, ORKDataFile > list, bool encrypt)
 Gets the save data. More...
virtual void GetLoadData (ref Dictionary< string, ORKDataFile > list, ORKProjectAsset project)
 Gets the load data from the ORK Project asset. More...
virtual void GetGameVariables (ref List< string > list)
 Gets the game variables found in this settings. More...
virtual DataObject GetData ()
 Gets a ORKFramework.DataObject representing the class. More...
virtual void EditorAutoSetup (string fieldName)
 Called for all fields using the autoSetup option of the ORKFramework.ORKEditorLayoutAttribute. More...
void SetRealIDs (BaseIndexData[] d)
 Sets the RealID values (indexes) of the data. More...

Public Attributes

EnemyCounting enemyCounter = EnemyCounting.None
bool playDamageAnim = false
bool playVictoryAnimation = true
FloatValue defendRate = new FloatValue(50)
FloatValue counterChance = new FloatValue()
FloatValue blockChance = new FloatValue()
FloatValue escapeChance = new FloatValue(50)
FloatValue experienceFactor = new FloatValue(1)
FloatValue randomBattleFactor = new FloatValue(100)
bool useBattleRange = true
Range battleRange = new Range(20.0f)
bool useAIRange = true
float aiRecheckTime = 4.0f
Range aiRange = new Range(100.0f)
bool useMoveAIRange = true
Range moveAIRange = new Range(100.0f)
AutoJoinBattle autoJoin = new AutoJoinBattle()
UseRangeSettings useRange = new UseRangeSettings()
LevelUpBonus lvlUp = new LevelUpBonus()
LevelUpBonus cLvlUp = new LevelUpBonus()
BattleAdvantage playerAdvantage = new BattleAdvantage()
BattleAdvantage enemyAdvantage = new BattleAdvantage()
BattleCamera camera = new BattleCamera()
int menuID = 0
bool useTurnBasedMenu = false
int turnBasedMenuID = 0
bool useActiveTimeMenu = false
int activeTimeMenuID = 0
bool useRealTimeMenu = false
int realTimeMenuID = 0
bool usePhaseMenu = false
int phaseMenuID = 0
bool bmDrag = false
bool bmClick = false
int bmClickCount = 2
bool bmTooltip = false
bool useTargetMenu = true
bool rotateToTarget = false
bool rotateToTargetGridRotation = false
bool rotateToTargetCursorOver = false
int targetNextKey = 0
int targetPreviousKey = 0
int targetNearestKey = 0
int targetRangeKey = 0
bool useTargetCursor = false
GameObject cursorPrefab
MountSettings cursorMount = new MountSettings()
bool useBlink = false
bool blinkChildren = true
FadeColorSettings blink
bool useBlinkHUD = false
FadeColorSettings blinkHUD
LayerMask targetLayerMask = -1
float targetRayDistance = 100.0f
bool targetAcceptOnlySelected = false
bool targetUseGridCell = false
bool targetCursorOverSelection = false
bool targetCursorOverMouseMoveOnly = false
MouseTouchControl targetMouseTouch = new MouseTouchControl()
TargetInformationChoice[] targetInformation = new TargetInformationChoice[0]
bool showTargetConfirmation = false
TargetConfirmationChoice targetConfirmation
TargetSelection[] groupTargetSelection = new TargetSelection[0]
TargetSelection[] individualTargetSelection = new TargetSelection[0]
FactionEventSetting turnStartEvents = new FactionEventSetting()
FactionEventSetting turnEndEvents = new FactionEventSetting()
int[] defaultActionCombo = new int[0]
CastTimeSettings abilityCastTime = new CastTimeSettings()
CastTimeSettings itemCastTime = new CastTimeSettings()
CastTimeSettings defendCastTime = new CastTimeSettings()
CastTimeSettings escapeCastTime = new CastTimeSettings()
CastTimeSettings noneCastTime = new CastTimeSettings()
CastTimeSettings gridMoveCastTime = new CastTimeSettings()
DefaultBattleAnimations battleAnimations = new DefaultBattleAnimations()


override string FILENAME [get]
override int Count [get]
- Properties inherited from ORKFramework.CoreSettings
abstract string FILENAME [get]
 Gets the filename used for saving the settings. More...
abstract int Count [get]

Member Function Documentation

override int ORKFramework.BattleSettings.Add ( )

Adds new data.

Implements ORKFramework.CoreSettings.

override int ORKFramework.BattleSettings.Copy ( int  index)

Creates a copy of the data with the specified index.

indexThe data index.

Implements ORKFramework.CoreSettings.

override string ORKFramework.BattleSettings.GetName ( int  index)

Gets the name of a data.

The name.
indexThe data index.

Implements ORKFramework.CoreSettings.

override string [] ORKFramework.BattleSettings.GetNames ( bool  addIndex)

Gets a list of names of all data.

The list of names.
addIndexIf true, the index of the data will be added to the names.

Implements ORKFramework.CoreSettings.

override void ORKFramework.BattleSettings.Move ( int  index,
bool  down 

Moves the data with the specified index.

indexThe data index.
downIf true, the data will be moved down.

Implements ORKFramework.CoreSettings.

override void ORKFramework.BattleSettings.Remove ( int  index)

Removes the data with the specified index.

indexThe data index.

Implements ORKFramework.CoreSettings.

override void ORKFramework.BattleSettings.SetData ( DataObject  data)

Sets the variables of the class using a ORKFramework.DataObject.

dataORKFramework.DataObject containing the data.

Reimplemented from ORKFramework.CoreSettings.

override void ORKFramework.BattleSettings.SetRealIDs ( )

Sets the RealID values (indexes).

Implements ORKFramework.CoreSettings.