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

Method CameraBuilding

engine/Poseidon/World/Entities/Vehicles/House.cpp:571–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569}
570
571CameraBuilding::CameraBuilding(VehicleType* name, int id, LODShapeWithShadow* shape) : base(name, nullptr)
572{
573 SetSimulationPrecision(0.5);
574 if (shape)
575 {
576 _shape = shape;
577 }
578 PoseidonAssert(_shape);
579 _destrType = GetType()->GetDestructType();
580 if ((DestructType)_destrType == DestructDefault)
581 {
582 _destrType = DestructBuilding;
583 }
584 _static = true;
585 SetType(Primary);
586 SetID(id);
587}
588
589DEFINE_CASTING(Building)
590

Callers

nothing calls this directly

Calls 4

SetTypeFunction · 0.85
SetIDFunction · 0.85
GetDestructTypeMethod · 0.80
GetTypeFunction · 0.50

Tested by

no test coverage detected