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
characterTypeLayeredCharacterTypeSOgroupNamestring
SingleSlotCharacterGroup(SingleSlotCharacterGroup_DTO, LayeredCharacterTypeSO)
public SingleSlotCharacterGroup(SingleSlotCharacterGroup.SingleSlotCharacterGroup_DTO DTO, LayeredCharacterTypeSO characterType)
Parameters
DTOSingleSlotCharacterGroup.SingleSlotCharacterGroup_DTOcharacterTypeLayeredCharacterTypeSO
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
characterLayeredCharacter
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
characterLayeredCharacter
Returns
ContainsCharacterWithGUID(Guid)
public override bool ContainsCharacterWithGUID(Guid guid)
Parameters
guidGuid
Returns
ContainsCharacterWithName(string)
public override bool ContainsCharacterWithName(string name)
Parameters
namestring
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.