| 22 | CCP_STATS_DECLARE( wodInteriorPlaceablesAlive, "Trinity/Tr2InteriorPlaceables", false, CST_COUNTER_LOW, "Count of Tr2InteriorPlaceables alive" ); |
| 23 | |
| 24 | Tr2InteriorPlaceable::Tr2InteriorPlaceable( IRoot* lockobj ) : |
| 25 | m_display( true ), |
| 26 | m_isUniqueInstance( false ), |
| 27 | PARENTLOCK( m_transform, IInitialize ), |
| 28 | m_placeableResPath(), |
| 29 | m_placeableRes(), |
| 30 | m_lightSet(), |
| 31 | m_boundingSphere( 0.f, 0.f, 0.f, 0.f ), |
| 32 | m_isBoundingBoxModified( false ), |
| 33 | m_cellReflectionTime( 0.0f ), |
| 34 | m_previousUpdateTime( 0 ), |
| 35 | m_transitionFinished( false ), |
| 36 | m_probeOffset( 0.f, 0.f, 0.f ), |
| 37 | m_depthOffset( 0.f ) |
| 38 | { |
| 39 | static_cast<Matrix&>( m_transform ) = IdentityMatrix(); |
| 40 | |
| 41 | m_currentPosition = Vector3( 0.0f, 0.0f, 0.0f ); |
| 42 | m_currentScaling = Vector3( 1.0f, 1.0f, 1.0f ); |
| 43 | m_currentRotation = Quaternion( 0.0f, 0.0f, 0.0f, 1.0f ); |
| 44 | m_positionSet = false; |
| 45 | m_scalingSet = false; |
| 46 | m_rotationSet = false; |
| 47 | |
| 48 | BoundingBoxInitialize( m_minBounds, m_maxBounds ); |
| 49 | |
| 50 | m_variableStore.CreateInstance(); |
| 51 | |
| 52 | m_variableStore->RegisterVariable( "CellReflectionMap", (TriTextureRes*)NULL ); |
| 53 | m_variableStore->RegisterVariable( "CellReflection2ndMap", (TriTextureRes*)NULL ); |
| 54 | m_variableStore->RegisterVariable( "CellReflectionInterpolation", 0.0f ); |
| 55 | |
| 56 | CCP_STATS_INC( wodInteriorPlaceablesAlive ); |
| 57 | } |
| 58 | |
| 59 | Tr2InteriorPlaceable::~Tr2InteriorPlaceable() |
| 60 | { |
nothing calls this directly
no test coverage detected