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_DTOcharacterType
LayeredCharacterTypeSO
FixedCharacterGroup(string, IList<LayeredCharacter>, LayeredCharacterTypeSO)
public FixedCharacterGroup(string groupName, IList<LayeredCharacter> characters, LayeredCharacterTypeSO characterType)
Parameters
groupName
stringcharacters
IList<LayeredCharacter>characterType
LayeredCharacterTypeSO
FixedCharacterGroup(string, int, LayeredCharacterTypeSO)
public FixedCharacterGroup(string groupName, int size, LayeredCharacterTypeSO characterType)
Parameters
groupName
stringsize
intcharacterType
LayeredCharacterTypeSO
Fields
Characters
public readonly LayeredCharacter[] Characters
Field Value
Methods
AddCharacter(LayeredCharacter)
Unsupported in Fixed Groups.
public override bool AddCharacter(LayeredCharacter character)
Parameters
character
LayeredCharacter
Returns
ContainsCharacter(LayeredCharacter)
public override bool ContainsCharacter(LayeredCharacter character)
Parameters
character
LayeredCharacter
Returns
ContainsCharacterWithGUID(Guid)
public override bool ContainsCharacterWithGUID(Guid guid)
Parameters
guid
Guid
Returns
ContainsCharacterWithName(string)
public override bool ContainsCharacterWithName(string name)
Parameters
name
string
Returns
ReplaceAt(int, LayeredCharacter)
Replace a character at a specified index with another character.
public bool ReplaceAt(int index, LayeredCharacter character)
Parameters
index
intcharacter
LayeredCharacter
Returns
SwapCharacters(int, int)
Swaps two characters at the specified indexes.
public void SwapCharacters(int indexA, int indexB)
Parameters
indexA
intThe index of the first character to swap.
indexB
intThe index of the second character to swap.
Exceptions
- ArgumentOutOfRangeException
Thrown if
indexA
orindexB
is outside the bounds of the list.