blob: b23f273651d87d039e0c23b24483a36c8cdbacc6 (
plain) (
blame)
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
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================
#ifndef ANIMSETATTRIBUTEVALUE_H
#define ANIMSETATTRIBUTEVALUE_H
#ifdef _WIN32
#pragma once
#endif
#include "tier1/utldict.h"
//-----------------------------------------------------------------------------
// Forward declarations
//-----------------------------------------------------------------------------
class CDmAttribute;
//-----------------------------------------------------------------------------
// AnimationControlType
//-----------------------------------------------------------------------------
enum AnimationControlType_t
{
ANIM_CONTROL_INVALID = -1,
ANIM_CONTROL_VALUE = 0,
ANIM_CONTROL_BALANCE,
ANIM_CONTROL_MULTILEVEL,
ANIM_CONTROL_COUNT,
};
struct AttributeValue_t
{
AttributeValue_t()
{
// Default values
m_pValue[ANIM_CONTROL_VALUE] = 0.0f;
m_pValue[ANIM_CONTROL_BALANCE] = 0.5f;
m_pValue[ANIM_CONTROL_MULTILEVEL] = 0.5f;
}
float m_pValue[ANIM_CONTROL_COUNT];
};
struct AnimationControlAttributes_t : public AttributeValue_t
{
AnimationControlAttributes_t()
{
// Default values
m_pAttribute[ANIM_CONTROL_VALUE] = 0;
m_pAttribute[ANIM_CONTROL_BALANCE] = 0;
m_pAttribute[ANIM_CONTROL_MULTILEVEL] = 0;
}
CDmAttribute* m_pAttribute[ANIM_CONTROL_COUNT];
};
typedef CUtlDict< AnimationControlAttributes_t, unsigned short > AttributeDict_t;
#endif // ANIMSETATTRIBUTEVALUE_H
|