Package studio.magemonkey.fabled.manager
Interface IAttributeManager
- All Known Implementing Classes:
AttributeManager
,AttributeManager
,NullAttributeManager
public interface IAttributeManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addByComponent
(String key, FabledAttribute fabledAttribute) void
addByStat
(String key, FabledAttribute fabledAttribute) forComponent
(EffectComponent component, String key) getAttribute
(String key) Retrieves an attribute templategetKeys()
Retrieves the available attribute keys.Retrieves the available attribute keys including both display names and config keys.Normalizes a config key or name into the config key for a unified identifier to store stats under.
-
Method Details
-
getAttributes
Map<String,FabledAttribute> getAttributes() -
getAttribute
Retrieves an attribute template- Parameters:
key
- attribute key- Returns:
- template for the attribute
-
forStat
-
forComponent
-
getKeys
Retrieves the available attribute keys. This does not include display names for attributes.- Returns:
- set of available attribute keys
-
getLookupKeys
Retrieves the available attribute keys including both display names and config keys.- Returns:
- display name and config keys for attributes
-
normalize
Normalizes a config key or name into the config key for a unified identifier to store stats under.- Parameters:
key
- key to normalize- Returns:
- config key
-
addByComponent
-
addByStat
-