OpenBarnyard
 
Loading...
Searching...
No Matches
ABarnSign.cpp
Go to the documentation of this file.
1#include "pch.h"
2#include "ABarnSign.h"
6
7//-----------------------------------------------------------------------------
8// Enables memory debugging.
9// Note: Should be the last include!
10//-----------------------------------------------------------------------------
11#include <Core/TMemoryDebugOn.h>
12
14
15// $Barnyard: FUNCTION 0054c720
17 : m_pModelInstance( TNULL )
18 , m_iUnk1( 0 )
19 , m_iUnk2( 0 )
20 , m_fUnk3( 1.5f )
21 , m_fUnk4( 0.1f )
22{
23}
24
28
29// $Barnyard: FUNCTION 0054d6f0
30void ABarnSign::SpawnAtLocator( const TCHAR* a_pszLocatorName )
31{
32 AAnimatableObjectType* pModelType = AAnimatableObjectManager::GetSingleton()->FindType( TPString8( "barnsign" ) );
33 TASSERT( TNULL != pModelType );
34
35 m_pModelInstance = pModelType->Instantiate();
36
37 // Get locator transform
38 TMatrix44 matLocator;
39 ATerrainInterface::GetSingleton()->GetLocatorTransform( a_pszLocatorName, matLocator );
40
41 // Update model instance
42 m_pModelInstance->SetTransform( matLocator );
43 m_pModelInstance->SetSkeletonUpdating( TTRUE );
44}
#define TASSERT(X,...)
Definition Defines.h:138
#define TOSHI_NAMESPACE_USING
Definition Defines.h:46
char TCHAR
Definition Typedefs.h:20
#define TNULL
Definition Typedefs.h:23
#define TTRUE
Definition Typedefs.h:25
void SpawnAtLocator(const TCHAR *a_pszLocatorName)
Definition ABarnSign.cpp:30