| 304 | } |
| 305 | |
| 306 | void 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 | |
| 335 | void EveSOF::SetupEffects( EveSpaceObject2Ptr obj, IEveEffectChildrenOwnerPtr childContainer, const EveSOFDNAPtr dna, const std::vector<Matrix>& offsets, uint32_t buildFlags ) const |
| 336 | { |