Instance Utilities
Buff Utils
Component Utils
- class BBComponentUtils
Bases:
objectUtilities for manipulating components.
- classmethod add_component(component_container, component_type, return_type=Component)
Add a component to something.
- Parameters:
component_container (ComponentContainer) – The thing to add a component to.
component_type (BBComponentType) – The type of component being added.
return_type (Type[BBExpectedReturnType], optional) – The type of the return value.
- Returns:
The added component from the object.
- Return type:
BBExpectedReturnType or None
- classmethod get_component(component_container, component_type, return_type=Component)
Get a component from something.
- Parameters:
component_container (ComponentContainer) – The thing to retrieve a component from.
component_type (BBComponentType) – The type of component being retrieved.
return_type (Type[BBExpectedReturnType], optional) – The type of the return value.
- Returns:
The component from the object.
- Return type:
BBExpectedReturnType or None
Interaction Utils
- class BBInteractionUtils
Bases:
objectUtilities for manipulating interactions.
- classmethod get_interaction_short_name(interaction)
Retrieve the Short Name of an Interaction.
- Parameters:
interaction (Interaction) – An instance of an interaction.
- Returns:
The short name of an interaction or None if a problem occurs.
- Return type:
Union[str, None]
- classmethod is_immediate_super_interaction(interaction)
Check if an interaction is an instance of ImmediateSuperInteraction.
- Parameters:
interaction (Interaction) – The interaction to check.
- Returns:
True, if the interaction is an instance of ImmediateSuperInteraction. False, if not.
- Return type:
- classmethod is_mixer_interaction(interaction)
Check if an interaction is an instance of MixerInteraction.
Note
SocialMixerInteraction are also considered to be MixerInteraction.
- Parameters:
interaction (Interaction) – The interaction to check.
- Returns:
True, if the interaction is an instance of MixerInteraction. False, if not.
- Return type:
- classmethod is_social_mixer_interaction(interaction)
Check if an interaction is an instance of SocialMixerInteraction.
- Parameters:
interaction (Interaction) – The interaction to check.
- Returns:
True, if the interaction is an instance of SocialMixerInteraction. False, if not.
- Return type:
- classmethod is_social_super_interaction(interaction)
Check if an interaction is an instance of SocialSuperInteraction.
- Parameters:
interaction (Interaction) – The interaction to check.
- Returns:
True, if the interaction is an instance of SocialSuperInteraction. False, if not.
- Return type:
- classmethod is_super_interaction(interaction)
Check if an interaction is an instance of SuperInteraction.
Note
SocialSuperInteractions and ImmediateSuperInteraction are also considered to be SuperInteraction.
- Parameters:
interaction (Interaction) – The interaction to check.
- Returns:
True, if the interaction is an instance of SuperInteraction. False, if not.
- Return type:
- classmethod load_interaction_by_guid(interaction)
Load an interaction by its GUID
- Parameters:
interaction (int) – The GUID of the interaction to load.
- Returns:
The loaded interaction or None if not found.
- Return type:
Interaction or None
- classmethod to_interaction_guid(interaction_identifier)
Convert an interaction identifier to a GUID.
Instance Utils
Situation Utils
- class BBSituationUtils
Bases:
objectUtilities for managing Situations.
- classmethod get_situation_guid(situation)
Get the GUID of a Situation.
- Parameters:
situation (Situation) – A situation.
- Returns:
The GUID of the Situation or -1 if not found.
- Return type:
- classmethod get_situation_job_name(situation_job)
Get the Tuning name of a Situation Job.
- Parameters:
situation_job (SituationJob) – A situation job.
- Returns:
The tuning name of the situation or “No Situation Job Name” if not found.
- Return type:
- classmethod get_situation_name(situation)
Get the Tuning name of a situation.
- Parameters:
situation (Situation) – A situation.
- Returns:
The tuning name of the situation or “No Situation Name” if not found.
- Return type:
- classmethod get_situation_role_name(situation_role)
Get the Tuning name of a Situation Role.
- Parameters:
situation_role (RoleState) – A situation role.
- Returns:
The tuning name of the situation or “No Situation Role Name” if not found.
- Return type:
Statistic Utils
Trait Utils
- class BBTraitUtils
Bases:
objectUtilities for managing Traits.
- classmethod get_trait_guid(trait)
Get the GUID of a trait.
- Parameters:
trait (Trait) – A Trait.
- Returns:
The GUID of a Trait or -1 if not found.
- Return type:
- classmethod get_trait_name(trait)
Get the name of a Trait.
- Parameters:
trait (Trait) – A Trait.
- Returns:
The name of the trait or ‘No Trait Name’ if not found.
- Return type: