Sound Bakery  v0.1.0
Open-source audio middleware for games
Loading...
Searching...
No Matches
SB::Engine::GameObject Class Reference
Inheritance diagram for SB::Engine::GameObject:
Collaboration diagram for SB::Engine::GameObject:

Public Member Functions

VoiceplayContainer (Container *container)
 
void postEvent (Event *event)
 
void stopVoice (Voice *voice)
 
void stopContainer (Container *container)
 
void stopAll ()
 
void update ()
 
bool isPlaying () const noexcept
 
std::size_t voiceCount () const noexcept
 
VoicegetVoice (std::size_t index) const
 
float getFloatParameterValue (const SB::Core::DatabasePtr< FloatParameter > &parameter) const
 Finds the parameter value on this gameobject.
 
SB_ID getIntParameterValue (const SB::Core::DatabasePtr< NamedParameter > &parameter) const
 Finds the parameter value on this gameobject.
 
void setFloatParameterValue (const FloatParameter::LocalParameterValuePair &parameterValue)
 
void setIntParameterValue (const NamedParameter::LocalParameterValuePair &parameterValue)
 
LocalParameterList getLocalParameters () const
 
- Public Member Functions inherited from SB::Core::Object
template<typename T >
TtryConvertObject () noexcept
 Gets the most derived type of this object and upcasts it to T.
 
template<typename T >
const TtryConvertObject () const noexcept
 
rttr::type getType () const
 
- Public Member Functions inherited from SB::Core::ObjectUtilities
SB::Engine::SystemgetSystem () const
 
sc_systemgetChef () const
 
ma_enginegetMini () const
 

Additional Inherited Members

- Public Attributes inherited from SB::Core::ObjectUtilities
std::string m_debugName
 

Member Function Documentation

◆ getFloatParameterValue()

float SB::Engine::GameObject::getFloatParameterValue ( const SB::Core::DatabasePtr< FloatParameter > &  parameter) const
inline

Finds the parameter value on this gameobject.

If there is no local value, the global parameter value is used.

Parameters
parameterto get the value for.
Returns
value of the parameter.

◆ getIntParameterValue()

SB_ID SB::Engine::GameObject::getIntParameterValue ( const SB::Core::DatabasePtr< NamedParameter > &  parameter) const
inline

Finds the parameter value on this gameobject.

If there is no local value, the global parameter value is used.

Parameters
parameterto get the value for.
Returns
value of the parameter.

The documentation for this class was generated from the following files: