Class ScriptableBattlePosition
It contains the positions of a CharacterGroup, which will serve to spawn a random member of that group. It has a custom inspector to facilitate the positioning of the groups.
Namespace: AutoBattleFramework.BattleBehaviour
Assembly: cs.temp.dll.dll
Syntax
public class ScriptableBattlePosition : ScriptableObject
Fields
battlePositions
Contains the indexes of the groups in characterGroups, so that they coincide with a grid cell.
Declaration
public int[] battlePositions
Field Value
Type | Description |
---|---|
Int32[] |
characterGroups
List of character groups.
Declaration
public List<CharacterGroup> characterGroups
Field Value
Type | Description |
---|---|
List<CharacterGroup> |
GridCellTexture
Texture used in the custom inspector to represent the grid cells.
Declaration
public Texture GridCellTexture
Field Value
Type | Description |
---|---|
Texture |
s
Declaration
public GUIStyle s
Field Value
Type | Description |
---|---|
GUIStyle |
selected
Selected grid cell index.
Declaration
public int selected
Field Value
Type | Description |
---|---|
Int32 |
Methods
GetCharacterGroup(Int32)
Given an index, returns the CharacterGroup from characterGroups.
Declaration
public CharacterGroup GetCharacterGroup(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | Index of character group |
Returns
Type | Description |
---|---|
CharacterGroup |
GetCharacterGroupList(Int32)
Given an index, returns the list of ShopCharacter from a CharacterGroup contained in characterGroups.
Declaration
public List<ShopCharacter> GetCharacterGroupList(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | Index of character group |
Returns
Type | Description |
---|---|
List<ShopCharacter> |