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 
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 
52  kSerializableClassInit(cEngineJointController_SaveData) public : tString msName;
53 
54  float mfDestValue;
55  bool mbActive;
56 };
57 
58 //------------------------------------------
59 
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 
72 };
73 
74 //------------------------------------------
75 
77  kSerializableClassInit(cEnginePSEmitter_SaveData) public : bool mbActive;
78 };
79 
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 
90 };
91 
92 //------------------------------------------
93 
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 
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 
121  kSerializableClassInit(cEngineLightAttachBB_SaveData) public : tString msName;
122 };
123 
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 
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
Definition: AI.h:36
Definition: str.h:59
Definition: SaveTypes.h:80
Definition: SaveTypes.h:107
Definition: Light3D.h:117
Definition: SaveTypes.h:124
Definition: SaveTypes.h:94
Definition: SerializeClass.h:230
Definition: SaveTypes.h:51
Definition: SaveTypes.h:120
Definition: PhysicsBody.h:117
Definition: SaveTypes.h:37
Definition: ParticleSystem3D.h:90
Definition: Color.h:37
Definition: SaveTypes.h:60
Definition: SoundEntity.h:86
Definition: PhysicsJoint.h:135
Definition: Beam.h:80
Definition: SaveTypes.h:76