MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / CreateTitleEffectObj

Function CreateTitleEffectObj

engine/Poseidon/Game/TitEffects.cpp:553–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

551 case TitBlackFaded:
552 return new TitleEffectBlack;
553 case TitPlain:
554 return new TitleEffectPlain;
555 case TitPlainDown:
556 return new TitleEffectPlainDown;
557 }
558 return nullptr;
559}
560
561static void SetupEffect(TitEffectName name, TitleEffectBasic* effect)
562{
563 if (!effect)
564 {
565 return;
566 }
567 effect->Simulate(0);
568}
569
570TitleEffect* CreateTitleEffectObj(TitEffectName name, const ParamEntry& entry, float speed)
571{
572 RString shapeName = GetShapeName(entry >> "model");
573 Ref<LODShapeWithShadow> shape = Shapes.New(shapeName, false, false);
574 shape->OrSpecial(IsColored | IsAlphaFog | IsAlpha);

Callers 4

OnActivateMethod · 0.85
ApplyEffectsFunction · 0.85
GameTitleObjFunction · 0.85
CutObjFunction · 0.85

Calls 7

GetShapeNameFunction · 0.85
CreateEffectFunction · 0.85
SetupEffectFunction · 0.85
NewMethod · 0.45
OrSpecialMethod · 0.45
InitMethod · 0.45
SetSpeedMethod · 0.45

Tested by

no test coverage detected