forked from lua9520/source-engine-2018-cstrike15_src
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdmesheetsequence.cpp
More file actions
77 lines (60 loc) · 2.03 KB
/
dmesheetsequence.cpp
File metadata and controls
77 lines (60 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
//===== Copyright © 2005-2006, Valve Corporation, All rights reserved. ======//
//
// Purpose: build a sheet data file and a large image out of multiple images
//
//===========================================================================//
#include "materialobjects/dmesheetsequence.h"
#include "datamodel/dmelementfactoryhelper.h"
#include "tier0/dbg.h"
// CDmeSheetImage
//-----------------------------------------------------------------------------
// Expose this class to the scene database
//-----------------------------------------------------------------------------
IMPLEMENT_ELEMENT_FACTORY( DmeSheetImage, CDmeSheetImage );
void CDmeSheetImage::OnConstruction()
{
m_XCoord.Init( this, "xcoord" );
m_YCoord.Init( this, "ycoord" );
m_mapSequences.Init( this, "mapsequences" );
}
void CDmeSheetImage::OnDestruction()
{
}
CDmeSheetSequence *CDmeSheetImage::FindSequence( int index )
{
if ( index < m_mapSequences.Count() )
{
return m_mapSequences[index];
}
return NULL;
}
// CDmeSheetSequenceFrame
//-----------------------------------------------------------------------------
// Expose this class to the scene database
//-----------------------------------------------------------------------------
IMPLEMENT_ELEMENT_FACTORY( DmeSheetSequenceFrame, CDmeSheetSequenceFrame );
void CDmeSheetSequenceFrame::OnConstruction()
{
m_pSheetImages.Init( this, "sheetimages" );
m_fDisplayTime.Init( this, "displaytime" );
}
void CDmeSheetSequenceFrame::OnDestruction()
{
}
// CDmeSheetSequence
//-----------------------------------------------------------------------------
// Expose this class to the scene database
//-----------------------------------------------------------------------------
IMPLEMENT_ELEMENT_FACTORY( DmeSheetSequence, CDmeSheetSequence );
void CDmeSheetSequence::OnConstruction()
{
m_nSequenceNumber.Init( this, "sequencenumber" );
m_Clamp.Init( this, "clamp" );
m_eMode.Init( this, "mode" );
m_Frames.Init( this, "frames" );
m_Clamp = true;
m_eMode = SQM_RGBA;
}
void CDmeSheetSequence::OnDestruction()
{
}