OpenBarnyard
Loading...
Searching...
No Matches
AKeyLibLoaderJob.cpp
Go to the documentation of this file.
1
#include "
pch.h
"
2
#include "
AKeyLibLoaderJob.h
"
3
#include "
AAssetStreaming.h
"
4
5
//-----------------------------------------------------------------------------
6
// Enables memory debugging.
7
// Note: Should be the last include!
8
//-----------------------------------------------------------------------------
9
#include <
Core/TMemoryDebugOn.h
>
10
11
void
AKeyLibLoaderJob::BeginJob
()
12
{
13
AAssetStreaming::GetSingleton()->GetFileStream().AddStream(
14
&
m_oStreamJob
15
);
16
}
17
18
TBOOL
AKeyLibLoaderJob::RunJob
()
19
{
20
if
(
m_oStreamJob
.IsProcessed() )
21
{
22
if
(
m_ppOutKeyframeLib
)
23
{
24
*
m_ppOutKeyframeLib
=
m_oStreamJob
.GetLibrary();
25
}
26
27
return
TTRUE
;
28
}
29
30
return
TFALSE
;
31
}
32
33
void
AKeyLibLoaderJob::InitJob
(
const
TCHAR
* a_szFileName )
34
{
35
m_oStreamJob
.Init( a_szFileName );
36
}
pch.h
TMemoryDebugOn.h
TCHAR
char TCHAR
Definition
Typedefs.h:20
TFALSE
#define TFALSE
Definition
Typedefs.h:24
TTRUE
#define TTRUE
Definition
Typedefs.h:25
TBOOL
bool TBOOL
Definition
Typedefs.h:6
AAssetStreaming.h
AKeyLibLoaderJob.h
AKeyLibLoaderJob::InitJob
void InitJob(const TCHAR *a_szFileName)
Definition
AKeyLibLoaderJob.cpp:33
AKeyLibLoaderJob::m_ppOutKeyframeLib
Toshi::TKeyframeLibrary ** m_ppOutKeyframeLib
Definition
AKeyLibLoaderJob.h:16
AKeyLibLoaderJob::BeginJob
virtual void BeginJob() override
Definition
AKeyLibLoaderJob.cpp:11
AKeyLibLoaderJob::m_oStreamJob
AKeyframeLibStreamJob m_oStreamJob
Definition
AKeyLibLoaderJob.h:15
AKeyLibLoaderJob::RunJob
virtual TBOOL RunJob() override
Definition
AKeyLibLoaderJob.cpp:18
D:
_dev
OpenBarnyard
Source
OpenBarnyard
Source
Assets
AKeyLibLoaderJob.cpp
Generated by
1.13.2