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
DTOFixedCharacterGroup.FixedCharacterGroup_DTOcharacterTypeLayeredCharacterTypeSO
FixedCharacterGroup(string, IList<LayeredCharacter>, LayeredCharacterTypeSO)
public FixedCharacterGroup(string groupName, IList<LayeredCharacter> characters, LayeredCharacterTypeSO characterType)
Parameters
groupNamestringcharactersIList<LayeredCharacter>characterTypeLayeredCharacterTypeSO
FixedCharacterGroup(string, int, LayeredCharacterTypeSO)
public FixedCharacterGroup(string groupName, int size, LayeredCharacterTypeSO characterType)
Parameters
groupNamestringsizeintcharacterTypeLayeredCharacterTypeSO
Fields
Characters
public readonly LayeredCharacter[] Characters
Field Value
Methods
AddCharacter(LayeredCharacter)
Unsupported in Fixed Groups.
public override bool AddCharacter(LayeredCharacter character)
Parameters
characterLayeredCharacter
Returns
ContainsCharacter(LayeredCharacter)
public override bool ContainsCharacter(LayeredCharacter character)
Parameters
characterLayeredCharacter
Returns
ContainsCharacterWithGUID(Guid)
public override bool ContainsCharacterWithGUID(Guid guid)
Parameters
guidGuid
Returns
ContainsCharacterWithName(string)
public override bool ContainsCharacterWithName(string name)
Parameters
namestring
Returns
ReplaceAt(int, LayeredCharacter)
Replace a character at a specified index with another character.
public bool ReplaceAt(int index, LayeredCharacter character)
Parameters
indexintcharacterLayeredCharacter
Returns
SwapCharacters(int, int)
Swaps two characters at the specified indexes.
public void SwapCharacters(int indexA, int indexB)
Parameters
indexAintThe index of the first character to swap.
indexBintThe index of the second character to swap.
Exceptions
- ArgumentOutOfRangeException
Thrown if
indexAorindexBis outside the bounds of the list.