Another way of doing shapeBase, this requires fewer changes but will have an empty asset in each stateData until it is filled with an asset.

Both these will need to be tested to see which one is better.
This commit is contained in:
marauder2k7 2021-09-29 12:48:37 +01:00
parent 1c14dc5ec4
commit 656096e016
2 changed files with 8 additions and 11 deletions

View file

@ -264,7 +264,7 @@ struct ShapeBaseImageData: public GameBaseData {
//SFXTrack* sound;
F32 emitterTime; ///<
S32 emitterNode[MaxShapes]; ///< Node ID on the shape to emit from
//DECLARE_SOUNDASSET(StateData, Sound);
SoundAsset* sound;
};
/// @name State Data
/// Individual state data used to initialize struct array
@ -1075,8 +1075,6 @@ protected:
/// @param imageSlot Image slot id
/// @param state State id
/// @param force Force image to state or let it finish then change
U32 prevState = 0;
void setImageState(U32 imageSlot, U32 state, bool force = false);
void updateAnimThread(U32 imageSlot, S32 imageShapeIndex, ShapeBaseImageData::StateData* lastState=NULL);