OpenBarnyard
 
Loading...
Searching...
No Matches
ATerrainLocator.h
Go to the documentation of this file.
1#pragma once
2#include <File/TTRB.h>
4
6{
7 void GetMatrix( Toshi::TMatrix44& a_rOutMatrix );
8
9 Toshi::TQuaternion quatRotation;
10 Toshi::TVector3 vecPosition;
14};
15
23
30
36
38{
39public:
42
43 // Returns a locator if it's currently visible
44 ATerrainLocator* FindLocator( const TCHAR* a_pszLocatorName );
45
46 // Loads a list of locators from a terrain's skel file that contains them
47 void LoadFromTRB( Toshi::TTRB* a_pTRB );
48
49 Toshi::TTRB* GetTRB() { return m_pTRB; }
50 Toshi::TTransformObject& GetWorldTransform() { return m_oWorldTransform; }
51
52 TINT32 GetNumLocators() const { return m_pLocatorsHeader->iNumLocators; }
53 ATerrainLocatorTRBHeader* GetHeader() const { return m_pLocatorsHeader; }
54
55private:
56 Toshi::TTRB* m_pTRB;
57 ATerrainLocatorTRBHeader* m_pLocatorsHeader;
58 ATerrainLocatorVISTRBHeader* m_pLocatorVISHeader;
59 Toshi::TTransformObject m_oWorldTransform;
60 TBOOL m_bCreatedGrowings;
61};
TRB (Toshi Relocatable Binary) resource system for the Toshi engine.
uint16_t TUINT16
Definition Typedefs.h:15
int32_t TINT32
Definition Typedefs.h:12
char TCHAR
Definition Typedefs.h:20
uint8_t TUINT8
Definition Typedefs.h:17
uint32_t TUINT32
Definition Typedefs.h:13
bool TBOOL
Definition Typedefs.h:6
int8_t TINT8
Definition Typedefs.h:16
Toshi::TQuaternion quatRotation
void GetMatrix(Toshi::TMatrix44 &a_rOutMatrix)
Toshi::TVector3 vecPosition
ATerrainLocator * pLocators
ATerrainLocatorVISSection * pSections
TINT32 GetNumLocators() const
ATerrainLocatorTRBHeader * GetHeader() const
Toshi::TTransformObject & GetWorldTransform()
Toshi::TTRB * GetTRB()
ATerrainLocator * FindLocator(const TCHAR *a_pszLocatorName)
void LoadFromTRB(Toshi::TTRB *a_pTRB)