OpenBarnyard
 
Loading...
Searching...
No Matches
AAnimatableObjectTypeBunch Class Reference

#include <AAnimatableObjectTypeBunch.h>

Inheritance diagram for AAnimatableObjectTypeBunch:
AAnimatableObjectType

Public Types

enum  TYPE : TINT { TYPE_BUNCH }
 

Public Member Functions

 AAnimatableObjectTypeBunch ()
 
 ~AAnimatableObjectTypeBunch ()
 
virtual TBOOL CreateFromProperties (const PBProperties *a_pProperties, const Toshi::TPString8 &a_rcName) override
 
virtual void OnAnimatableObjectCreated (AAnimatableObject *a_pAnimatableObject) override
 
- Public Member Functions inherited from AAnimatableObjectType
 AAnimatableObjectType ()
 
virtual ~AAnimatableObjectType ()
 
virtual TBOOL Create (const Toshi::TPString8 &a_rcName)
 
void Destroy ()
 
ANamedAnimationSetRef FindAnimationSet (const Toshi::TPString8 &a_rcName) const
 
ANamedAnimationSetRef GetAnimationSet (TINT a_iIndex) const
 
ANamedAnimationSetRef GetDefaultAnimationSet () const
 
TINT GetNumAnimationSets () const
 
AModelInstanceInstantiate ()
 
const Toshi::TPString8 & GetName () const
 
AModelGetModel () const
 
Toshi::T2DList< AAnimControllerType > & GetAnimControllerTypes ()
 

Additional Inherited Members

- Static Public Attributes inherited from AAnimatableObjectType
static constexpr TSIZE MAX_ANIMATION_SETS = 6
 

Detailed Description

Definition at line 4 of file AAnimatableObjectTypeBunch.h.

Member Enumeration Documentation

◆ TYPE

Enumerator
TYPE_BUNCH 

Definition at line 8 of file AAnimatableObjectTypeBunch.h.

Constructor & Destructor Documentation

◆ AAnimatableObjectTypeBunch()

AAnimatableObjectTypeBunch::AAnimatableObjectTypeBunch ( )

Definition at line 13 of file AAnimatableObjectTypeBunch.cpp.

14 : m_iBunchCount( 1 )
15{
16}

◆ ~AAnimatableObjectTypeBunch()

AAnimatableObjectTypeBunch::~AAnimatableObjectTypeBunch ( )

Member Function Documentation

◆ CreateFromProperties()

TBOOL AAnimatableObjectTypeBunch::CreateFromProperties ( const PBProperties * a_pProperties,
const Toshi::TPString8 & a_rcName )
overridevirtual

Reimplemented from AAnimatableObjectType.

Definition at line 26 of file AAnimatableObjectTypeBunch.cpp.

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}
#define TPS8D(STR)
Definition TPString8.h:17
#define TTRUE
Definition Typedefs.h:25
TBOOL GetOptionalPropertyValue(T &a_rOutValue, const TCHAR *a_szName) const
virtual TBOOL CreateFromProperties(const PBProperties *a_pProperties, const Toshi::TPString8 &a_rcName)

◆ OnAnimatableObjectCreated()

void AAnimatableObjectTypeBunch::OnAnimatableObjectCreated ( AAnimatableObject * a_pAnimatableObject)
overridevirtual

Reimplemented from AAnimatableObjectType.

Definition at line 53 of file AAnimatableObjectTypeBunch.cpp.

54{
55 TASSERT( !"Not implemented" );
56}
#define TASSERT(X,...)
Definition Defines.h:138

The documentation for this class was generated from the following files: