ScummVM API documentation
SaveTypes.h
1
/* ScummVM - Graphic Adventure Engine
2
*
3
* ScummVM is the legal property of its developers, whose names
4
* are too numerous to list here. Please refer to the COPYRIGHT
5
* file distributed with this source distribution.
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*
20
*/
21
22
/*
23
* Copyright (C) 2006-2010 - Frictional Games
24
*
25
* This file is part of Penumbra Overture.
26
*/
27
28
#ifndef GAME_SAVE_TYPES_H
29
#define GAME_SAVE_TYPES_H
30
31
#include "hpl1/engine/engine.h"
32
33
using namespace
hpl
;
34
35
//------------------------------------------
36
37
class
cEngineBody_SaveData
:
public
iSerializable
{
38
kSerializableClassInit(
cEngineBody_SaveData
) public :
void
FromBody(
iPhysicsBody
*pBody);
39
void
ToBody(
iPhysicsBody
*pBody);
40
41
float
mfMass;
42
bool
mbActive;
43
bool
mbCollideCharacter;
44
cVector3f
mvLinearVelocity;
45
cVector3f
mvAngularVelocity;
46
cMatrixf
m_mtxTransform;
47
};
48
49
//------------------------------------------
50
51
class
cEngineJointController_SaveData
:
public
iSerializable
{
52
kSerializableClassInit(
cEngineJointController_SaveData
) public :
tString
msName;
53
54
float
mfDestValue;
55
bool
mbActive;
56
};
57
58
//------------------------------------------
59
60
class
cEngineJoint_SaveData
:
public
iSerializable
{
61
kSerializableClassInit(
cEngineJoint_SaveData
) public :
void
FromJoint(
iPhysicsJoint
*apJoint);
62
void
ToJoint(
iPhysicsJoint
*apJoint);
63
64
tString
msName;
65
float
mfMinLimit;
66
float
mfMaxLimit;
67
68
tString
msOnMinCallback;
69
tString
msOnMaxCallback;
70
71
cContainerVec<cEngineJointController_SaveData>
mvControllers;
72
};
73
74
//------------------------------------------
75
76
class
cEnginePSEmitter_SaveData
:
public
iSerializable
{
77
kSerializableClassInit(
cEnginePSEmitter_SaveData
) public :
bool
mbActive;
78
};
79
80
class
cEnginePS_SaveData
:
public
iSerializable
{
81
kSerializableClassInit(
cEnginePS_SaveData
) public :
void
FromPS(
cParticleSystem3D
*apPS);
82
void
ToPS(
cParticleSystem3D
*apPS);
83
84
tString
msName;
85
tString
msType;
86
cVector3f
mvSize;
87
cMatrixf
m_mtxTransform;
88
89
cContainerVec<cEnginePSEmitter_SaveData>
mvEmitterActive;
90
};
91
92
//------------------------------------------
93
94
class
cEngineBeam_SaveData
:
public
iSerializable
{
95
kSerializableClassInit(
cEngineBeam_SaveData
) public :
void
FromBeam(
cBeam
*apBeam);
96
void
ToBeam(
cBeam
*apBeam);
97
98
tString
msName;
99
tString
msFile;
100
101
cVector3f
mvStartPos;
102
cVector3f
mvEndPos;
103
};
104
105
//------------------------------------------
106
107
class
cEngineSound_SaveData
:
public
iSerializable
{
108
kSerializableClassInit(
cEngineSound_SaveData
) public :
void
FromSound(
cSoundEntity
*apSound);
109
void
ToSound(
cSoundEntity
*apSound);
110
111
tString
msName;
112
bool
mbActive;
113
bool
mbStopped;
114
bool
_fading;
115
float
_fadeSpeed;
116
};
117
118
//------------------------------------------
119
120
class
cEngineLightAttachBB_SaveData
:
public
iSerializable
{
121
kSerializableClassInit(
cEngineLightAttachBB_SaveData
) public :
tString
msName;
122
};
123
124
class
cEngineLight_SaveData
:
public
iSerializable
{
125
kSerializableClassInit(
cEngineLight_SaveData
) public :
void
FromLight(
iLight3D
*apLight);
126
void
ToLight(
iLight3D
*apLight);
127
128
tString
msName;
129
bool
mbActive;
130
bool
mbVisible;
131
132
cColor
mDiffuseColor;
133
float
mfFarAttenuation;
134
135
cContainerVec<cEngineLightAttachBB_SaveData>
mvBillboards;
136
137
bool
mbFlickering;
138
tString
msFlickerOffSound;
139
tString
msFlickerOnSound;
140
tString
msFlickerOffPS;
141
tString
msFlickerOnPS;
142
float
mfFlickerOnMinLength;
143
float
mfFlickerOffMinLength;
144
float
mfFlickerOnMaxLength;
145
float
mfFlickerOffMaxLength;
146
cColor
mFlickerOffColor;
147
float
mfFlickerOffRadius;
148
bool
mbFlickerFade;
149
float
mfFlickerOnFadeLength;
150
float
mfFlickerOffFadeLength;
151
};
152
153
//------------------------------------------
154
155
#endif // GAME_SAVE_TYPES_H
hpl
Definition:
AI.h:36
Common::String
Definition:
str.h:59
cEnginePS_SaveData
Definition:
SaveTypes.h:80
cEngineSound_SaveData
Definition:
SaveTypes.h:107
hpl::iLight3D
Definition:
Light3D.h:117
cEngineLight_SaveData
Definition:
SaveTypes.h:124
cEngineBeam_SaveData
Definition:
SaveTypes.h:94
hpl::iSerializable
Definition:
SerializeClass.h:230
cEngineJointController_SaveData
Definition:
SaveTypes.h:51
hpl::cVector3< float >
cEngineLightAttachBB_SaveData
Definition:
SaveTypes.h:120
hpl::cContainerVec< cEngineJointController_SaveData >
hpl::iPhysicsBody
Definition:
PhysicsBody.h:117
cEngineBody_SaveData
Definition:
SaveTypes.h:37
hpl::cParticleSystem3D
Definition:
ParticleSystem3D.h:90
hpl::cColor
Definition:
Color.h:37
hpl::cMatrix< float >
cEngineJoint_SaveData
Definition:
SaveTypes.h:60
hpl::cSoundEntity
Definition:
SoundEntity.h:86
hpl::iPhysicsJoint
Definition:
PhysicsJoint.h:135
hpl::cBeam
Definition:
Beam.h:80
cEnginePSEmitter_SaveData
Definition:
SaveTypes.h:76
engines
hpl1
penumbra-overture
SaveTypes.h
Generated on Mon Dec 23 2024 09:14:26 for ScummVM API documentation by
1.8.13