MCPcopy Create free account
hub / github.com/carbonengine/trinity / SetInheritProperties

Method SetInheritProperties

trinity/Eve/SpaceObject/EveSpaceObject2.cpp:3930–3953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3928}
3929
3930void EveSpaceObject2::SetInheritProperties( const Color* colorSet )
3931{
3932 if( !m_inheritProperties )
3933 {
3934 m_inheritProperties.CreateInstance();
3935 }
3936 m_inheritProperties->SetProperties( colorSet );
3937
3938 for( auto it = m_effectChildren.begin(); it != m_effectChildren.end(); it++ )
3939 {
3940 if( IEveInheritPropertiesOwnerPtr cast = BlueCastPtr( *it ) )
3941 {
3942 cast->SetInheritProperties( m_inheritProperties->GetProperties() );
3943 }
3944 }
3945
3946 for( auto it = m_lights.begin(); it != m_lights.end(); it++ )
3947 {
3948 if( IEveInheritPropertiesOwnerPtr light = BlueCastPtr( *it ) )
3949 {
3950 light->SetInheritProperties( m_inheritProperties->GetProperties() );
3951 }
3952 }
3953}
3954
3955void EveSpaceObject2::SetMute( bool isMute )
3956{

Callers 4

BuildFromDNAMethod · 0.45
OnListModifiedMethod · 0.45
AddLightMethod · 0.45

Calls 5

CreateInstanceMethod · 0.80
SetPropertiesMethod · 0.80
GetPropertiesMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected