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

Method SetupAttachments

trinity/Eve/SpaceObjectFactory/EveSOF.cpp:306–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306void EveSOF::SetupAttachments( IEveSpaceObjectAttachmentOwnerPtr newObj, const EveSOFDNAPtr dna, const std::vector<Matrix>& offsets, uint32_t buildFlags ) const
307{
308 // Add all the fluff!
309 SetupSpriteSets( newObj, dna, offsets, buildFlags );
310 SetupSpotlightSets( newObj, dna, offsets, buildFlags );
311 SetupPlaneSets( newObj, dna, offsets, buildFlags );
312 SetupSpriteLineSets( newObj, dna, offsets, buildFlags );
313 SetupHazeSets( newObj, dna, offsets, buildFlags );
314
315 // Banners need to have external parameters, which we don't have for anything except for EveSpaceObject2Ptr...
316 // So no banners for layouts... yet
317 if( EveSpaceObject2Ptr spaceObject = BlueCastPtr( newObj->GetRootObject() ) )
318 {
319 if( !dna->UsingSof6() )
320 {
321 SetupBanners( spaceObject, dna, offsets );
322 }
323 else
324 {
325 SetupBannerSets( spaceObject, dna, offsets );
326 }
327 }
328
329 if( ITr2LightOwnerPtr lightOwner = BlueCastPtr( newObj->GetRootObject() ) )
330 {
331 SetupLights( lightOwner, dna, offsets );
332 }
333}
334
335void EveSOF::SetupEffects( EveSpaceObject2Ptr obj, IEveEffectChildrenOwnerPtr childContainer, const EveSOFDNAPtr dna, const std::vector<Matrix>& offsets, uint32_t buildFlags ) const
336{

Callers

nothing calls this directly

Calls 1

UsingSof6Method · 0.80

Tested by

no test coverage detected