Class CharacterGroupRegistry
- Namespace
- BlazerTech.CharacterManagement.Characters
- Assembly
- Assembly-CSharp.dll
Holds a collection of three different types of groups. An instance of this class is used for each Layered Character Type.
public sealed class CharacterGroupRegistry
- Inheritance
-
CharacterGroupRegistry
Constructors
CharacterGroupRegistry(CharacterTypeGroups_DTO, LayeredCharacterTypeSO)
public CharacterGroupRegistry(CharacterTypeGroups_DTO DTO, LayeredCharacterTypeSO characterType)
Parameters
DTO
CharacterTypeGroups_DTOcharacterType
LayeredCharacterTypeSO
CharacterGroupRegistry(LayeredCharacterTypeSO)
public CharacterGroupRegistry(LayeredCharacterTypeSO type)
Parameters
Fields
SuccessfullyInitialized
public readonly bool SuccessfullyInitialized
Field Value
Properties
CharacterType
public LayeredCharacterTypeSO CharacterType { get; }
Property Value
FixedGroups
public Dictionary<string, FixedCharacterGroup> FixedGroups { get; }
Property Value
FlexibleGroups
public Dictionary<string, FlexibleCharacterGroup> FlexibleGroups { get; }
Property Value
PrimaryCharacterSlot
public SingleSlotCharacterGroup PrimaryCharacterSlot { get; }
Property Value
Methods
CreateFixedGroup(string, IList<LayeredCharacter>)
public FixedCharacterGroup CreateFixedGroup(string name, IList<LayeredCharacter> characters)
Parameters
name
stringcharacters
IList<LayeredCharacter>
Returns
CreateFixedGroup(string, int)
public FixedCharacterGroup CreateFixedGroup(string name, int size)
Parameters
Returns
CreateFlexibleGroup(string)
public FlexibleCharacterGroup CreateFlexibleGroup(string name)
Parameters
name
string
Returns
GetDataTransferObject()
public CharacterTypeGroups_DTO GetDataTransferObject()
Returns
GetFixedGroup(string)
public FixedCharacterGroup GetFixedGroup(string name)
Parameters
name
string
Returns
GetFlexibleGroup(string)
public FlexibleCharacterGroup GetFlexibleGroup(string name)
Parameters
name
string
Returns
GetOrCreateFixedGroup(string, int)
public FixedCharacterGroup GetOrCreateFixedGroup(string name, int size)
Parameters
Returns
GetOrCreateFlexibleGroup(string)
public FlexibleCharacterGroup GetOrCreateFlexibleGroup(string name)
Parameters
name
string