Table of Contents

Class FixedCharacterGroup

Namespace
BlazerTech.CharacterManagement.Characters
Assembly
Assembly-CSharp.dll
[Serializable]
public sealed class FixedCharacterGroup : CharacterGroupBase
Inheritance
FixedCharacterGroup
Inherited Members

Constructors

FixedCharacterGroup(FixedCharacterGroup_DTO, LayeredCharacterTypeSO)

public FixedCharacterGroup(FixedCharacterGroup.FixedCharacterGroup_DTO DTO, LayeredCharacterTypeSO characterType)

Parameters

DTO FixedCharacterGroup.FixedCharacterGroup_DTO
characterType LayeredCharacterTypeSO

FixedCharacterGroup(string, IList<LayeredCharacter>, LayeredCharacterTypeSO)

public FixedCharacterGroup(string groupName, IList<LayeredCharacter> characters, LayeredCharacterTypeSO characterType)

Parameters

groupName string
characters IList<LayeredCharacter>
characterType LayeredCharacterTypeSO

FixedCharacterGroup(string, int, LayeredCharacterTypeSO)

public FixedCharacterGroup(string groupName, int size, LayeredCharacterTypeSO characterType)

Parameters

groupName string
size int
characterType LayeredCharacterTypeSO

Fields

Characters

public readonly LayeredCharacter[] Characters

Field Value

LayeredCharacter[]

Methods

AddCharacter(LayeredCharacter)

Unsupported in Fixed Groups.

public override bool AddCharacter(LayeredCharacter character)

Parameters

character LayeredCharacter

Returns

bool

ContainsCharacter(LayeredCharacter)

public override bool ContainsCharacter(LayeredCharacter character)

Parameters

character LayeredCharacter

Returns

bool

ContainsCharacterWithGUID(Guid)

public override bool ContainsCharacterWithGUID(Guid guid)

Parameters

guid Guid

Returns

bool

ContainsCharacterWithName(string)

public override bool ContainsCharacterWithName(string name)

Parameters

name string

Returns

bool

ReplaceAt(int, LayeredCharacter)

Replace a character at a specified index with another character.

public bool ReplaceAt(int index, LayeredCharacter character)

Parameters

index int
character LayeredCharacter

Returns

bool

SwapCharacters(int, int)

Swaps two characters at the specified indexes.

public void SwapCharacters(int indexA, int indexB)

Parameters

indexA int

The index of the first character to swap.

indexB int

The index of the second character to swap.

Exceptions

ArgumentOutOfRangeException

Thrown if indexA or indexB is outside the bounds of the list.