Class SingleSlotCharacterGroup
- Namespace
- BlazerTech.CharacterManagement.Characters
- Assembly
- Assembly-CSharp.dll
[Serializable]
public sealed class SingleSlotCharacterGroup : CharacterGroupBase
- Inheritance
-
SingleSlotCharacterGroup
- Inherited Members
Constructors
SingleSlotCharacterGroup(LayeredCharacterTypeSO, string)
public SingleSlotCharacterGroup(LayeredCharacterTypeSO characterType, string groupName = "Single")
Parameters
characterType
LayeredCharacterTypeSOgroupName
string
SingleSlotCharacterGroup(SingleSlotCharacterGroup_DTO, LayeredCharacterTypeSO)
public SingleSlotCharacterGroup(SingleSlotCharacterGroup.SingleSlotCharacterGroup_DTO DTO, LayeredCharacterTypeSO characterType)
Parameters
DTO
SingleSlotCharacterGroup.SingleSlotCharacterGroup_DTOcharacterType
LayeredCharacterTypeSO
Properties
Character
public LayeredCharacter Character { get; }
Property Value
Methods
AddCharacter(LayeredCharacter)
Set or replace the character in the Single Group.
public override bool AddCharacter(LayeredCharacter character)
Parameters
character
LayeredCharacter
Returns
- bool
True if the new character is successfully added/replaced. False if the new character is null.
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
RemoveCharacter()
Remove the singlular character in the group if there is one.
public bool RemoveCharacter()
Returns
- bool
True if there was a character in the group to remove. Otherwise False.