OpenBarnyard
 
Loading...
Searching...
No Matches
AAnimatableObjectTypeBunch.cpp
Go to the documentation of this file.
1#include "pch.h"
3
4//-----------------------------------------------------------------------------
5// Enables memory debugging.
6// Note: Should be the last include!
7//-----------------------------------------------------------------------------
9
11
12// $Barnyard: FUNCTION 0057f950
17
18// $Barnyard: FUNCTION 0057fca0
19// $Barnyard: FUNCTION 0057f980
24
25// $Barnyard: FUNCTION 0057fa20
26TBOOL AAnimatableObjectTypeBunch::CreateFromProperties( const PBProperties* a_pProperties, const Toshi::TPString8& a_rcName )
27{
28 // Parse base properties
29 AAnimatableObjectType::CreateFromProperties( a_pProperties, a_rcName );
30
31 // Parse bunch properties
32 a_pProperties->GetOptionalPropertyValue( m_iBunchCount, TPS8D( "BunchCount" ) );
33
34 m_eType = TYPE_BUNCH;
35
36 TPString8 strType;
37 a_pProperties->GetOptionalPropertyValue( strType, TPS8D( "Type" ) );
38
39 if ( strType == TPS8D( "Bunch" ) )
40 m_eType = TYPE_BUNCH;
41
42 m_strChildBone = TPString8();
43 a_pProperties->GetOptionalPropertyValue( m_strChildBone, TPS8D( "ChildBone" ) );
44
45 m_strParentBone = TPString8();
46 a_pProperties->GetOptionalPropertyValue( m_strParentBone, TPS8D( "ParentBone" ) );
47
48 a_pProperties->GetOptionalPropertyValue( m_fRange, TPS8D( "range" ) );
49
50 return TTRUE;
51}
52
54{
55 TASSERT( !"Not implemented" );
56}
#define TASSERT(X,...)
Definition Defines.h:138
#define TOSHI_NAMESPACE_USING
Definition Defines.h:46
#define TPS8D(STR)
Definition TPString8.h:17
#define TTRUE
Definition Typedefs.h:25
bool TBOOL
Definition Typedefs.h:6
TBOOL GetOptionalPropertyValue(T &a_rOutValue, const TCHAR *a_szName) const
virtual TBOOL CreateFromProperties(const PBProperties *a_pProperties, const Toshi::TPString8 &a_rcName)
virtual void OnAnimatableObjectCreated(AAnimatableObject *a_pAnimatableObject) override
virtual TBOOL CreateFromProperties(const PBProperties *a_pProperties, const Toshi::TPString8 &a_rcName) override