File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Client/mods/deathmatch/logic/IFP Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -136,9 +136,7 @@ struct IFP_Animation
136
136
{
137
137
SString Name;
138
138
_CAnimBlendHierarchy Hierarchy;
139
- // std::vector <_CAnimBlendSequence> Sequences;
140
139
char * pSequencesMemory;
141
- unsigned char * pFramesMemoryVersion2; // only for IFP version 2;
142
140
};
143
141
144
142
struct Animation
@@ -203,6 +201,24 @@ enum BoneType
203
201
R_TOE_0 = 54
204
202
};
205
203
204
+ struct SIFPAnimations
205
+ {
206
+ // This is set to true when unloadIFP function is called, it means that animations
207
+ // can be unloaded when iReferences reaches zero, if this boolean is set to true
208
+ bool bUnloadOnZeroReferences;
209
+ // incremented when a new CAnimBlendAssociationSAInteface is created and decremented
210
+ // when destructor of that animation is called
211
+ DWORD iReferences;
212
+ std::vector < IFP_Animation > vecAnimations;
213
+
214
+ SIFPAnimations ()
215
+ {
216
+ bUnloadOnZeroReferences = false ;
217
+ iReferences = 0 ;
218
+ }
219
+ };
220
+
221
+
206
222
typedef void *(__cdecl* hCMemoryMgr_Malloc)
207
223
(
208
224
size_t TotalBytesToAllocate
You can’t perform that action at this time.
0 commit comments