ORK Framework  2.29.0
API Documentation
ORKFramework.BattleGridCellTypeSingle Class Reference
Inheritance diagram for ORKFramework.BattleGridCellTypeSingle:
ORKFramework.BaseData ORKFramework.IBaseData

Public Member Functions

override void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
 
GameObject CreatePrefabInstance (BattleGridCellComponent cell)
 
bool CanMoveFrom (BattleGridCellComponent fromCell)
 
float GetMoveCost (Combatant user, BattleGridCellComponent cell, BattleGridCellComponent fromCell)
 
float GetActionCost (Combatant user, BattleGridCellComponent cell, BattleGridCellComponent fromCell)
 
- Public Member Functions inherited from ORKFramework.BaseData
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...
 

Public Attributes

GridCellPrefab prefab = new GridCellPrefab()
 
Vector3 highlightPositionOffset = Vector3.zero
 
Vector3 highlightRotationOffset = Vector3.zero
 
Vector3 lineHighlightPositionOffset = Vector3.zero
 
GameObject editorPrefab
 
GridCellPrefab [] randomPrefab = new GridCellPrefab[0]
 
bool usePositionOffset = false
 
Vector3 positionOffset = Vector3.zero
 
LocalSpace localPosition = new LocalSpace(false)
 
bool blocked = false
 
bool passable = false
 
bool blockDiagonalMove = true
 
GridDeploymentCell deployment = new GridDeploymentCell()
 
FloatValue moveCost = new FloatValue(1)
 
FloatValue actionCost = new FloatValue(0)
 
GridCellTypeCost [] cellTypeCost = new GridCellTypeCost[0]
 
bool useObjectVariables = false
 
ObjectVariableSetting objectVariables
 
GridCellEvent [] cellEvent = new GridCellEvent[0]
 

Member Function Documentation

◆ SetData()

override void ORKFramework.BattleGridCellTypeSingle.SetData ( DataObject  data)
virtual

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

Parameters
dataORKFramework.DataObject containing the data.

Reimplemented from ORKFramework.BaseData.