28{
30
31
32 TString8 startupLibFileName;
33 startupLibFileName.
Format(
"Data/%s.trb",
"lib_startup" );
34
35 TTRB startupLibTrb;
36 startupLibTrb.
Load( startupLibFileName );
37 auto pProperties = PBProperties::LoadFromTRB( startupLibTrb );
38 auto pKeylibProperty = pProperties->GetProperty( "keylib" );
39
40 if ( pKeylibProperty )
41 {
42 AKeyFrameLibraryManager::GetSingleton()->LoadLibrariesFromProperties(
43 pKeylibProperty,
44 &startupLibTrb
45 );
46 }
47
49
51 pScheduler->
CreateTask<AAnimatableObjectManager>( this )->Create();
52
53 AAnimatableObjectManager::GetSingleton()->LoadAnimSoundBreakpoints( "Data/Sound/AnimSoundBP.trb" );
54
55
56 ASkinLightingManager::CreateSingleton();
57
58
59 pScheduler->CreateTask<ACameraManager>( this )->Create();
60 pScheduler->CreateTask<AMusicManager>( this )->Create();
61
62
63 AAnimatableObjectManager::GetSingleton()->LoadTypesFromLibrary( "lib_startup" );
64
65 pScheduler->CreateTask<ASimAnimModelHelperManager>( this )->Create();
66
67 AAssetStreaming::CreateSingleton()->SetFlag(
TFALSE );
68
69
70 ATreeManager::CreateSingleton()->Initialise();
71
73}
TSystemManager g_oSystemManager
ERROR Load(const TCHAR *a_szFilePath, TUINT32 a_uiUnknown=0)
TTask * CreateTask(TClass *a_pClass, TTask *a_pParent=nullptr)
TString8 & Format(const TCHAR *a_pcFormat,...)
TScheduler * GetScheduler() const