|
@@ -34,8 +34,9 @@
|
|
|
#endif
|
|
|
|
|
|
#include "T3D/assets/ImageAsset.h"
|
|
|
+#include "T3D/assets/SoundAsset.h"
|
|
|
|
|
|
-class SFXTrack;
|
|
|
+//class SFXTrack;
|
|
|
class SFXSource;
|
|
|
|
|
|
//--------------------------------------------------------------------------
|
|
@@ -45,30 +46,32 @@ class PrecipitationData : public GameBaseData
|
|
|
typedef GameBaseData Parent;
|
|
|
|
|
|
public:
|
|
|
- SFXTrack* soundProfile;
|
|
|
+ //SFXTrack* soundProfile;
|
|
|
+ DECLARE_SOUNDASSET(PrecipitationData, Sound);
|
|
|
+ DECLARE_SOUNDASSET_SETGET(PrecipitationData, Sound);
|
|
|
|
|
|
- DECLARE_IMAGEASSET(PrecipitationData, Drop, onDropChanged, GFXStaticTextureSRGBProfile); ///< Texture for drop particles
|
|
|
- DECLARE_IMAGEASSET_SETGET(PrecipitationData, Drop);
|
|
|
+ DECLARE_IMAGEASSET(PrecipitationData, Drop, onDropChanged, GFXStaticTextureSRGBProfile); ///< Texture for drop particles
|
|
|
+ DECLARE_IMAGEASSET_SETGET(PrecipitationData, Drop);
|
|
|
|
|
|
- StringTableEntry mDropShaderName; ///< The name of the shader used for raindrops
|
|
|
+ StringTableEntry mDropShaderName; ///< The name of the shader used for raindrops
|
|
|
|
|
|
- DECLARE_IMAGEASSET(PrecipitationData, Splash, onSplashChanged, GFXStaticTextureSRGBProfile); ///< Texture for splash particles
|
|
|
- DECLARE_IMAGEASSET_SETGET(PrecipitationData, Splash);
|
|
|
+ DECLARE_IMAGEASSET(PrecipitationData, Splash, onSplashChanged, GFXStaticTextureSRGBProfile); ///< Texture for splash particles
|
|
|
+ DECLARE_IMAGEASSET_SETGET(PrecipitationData, Splash);
|
|
|
|
|
|
- StringTableEntry mSplashShaderName; ///< The name of the shader used for raindrops
|
|
|
+ StringTableEntry mSplashShaderName; ///< The name of the shader used for raindrops
|
|
|
|
|
|
- S32 mDropsPerSide; ///< How many drops are on a side of the raindrop texture.
|
|
|
- S32 mSplashesPerSide; ///< How many splash are on a side of the splash texture.
|
|
|
+ S32 mDropsPerSide; ///< How many drops are on a side of the raindrop texture.
|
|
|
+ S32 mSplashesPerSide; ///< How many splash are on a side of the splash texture.
|
|
|
|
|
|
- PrecipitationData();
|
|
|
- DECLARE_CONOBJECT(PrecipitationData);
|
|
|
- bool preload( bool server, String& errorStr );
|
|
|
- static void initPersistFields();
|
|
|
- virtual void packData(BitStream* stream);
|
|
|
- virtual void unpackData(BitStream* stream);
|
|
|
-
|
|
|
- void onDropChanged() {}
|
|
|
- void onSplashChanged() {}
|
|
|
+ PrecipitationData();
|
|
|
+ DECLARE_CONOBJECT(PrecipitationData);
|
|
|
+ bool preload( bool server, String& errorStr );
|
|
|
+ static void initPersistFields();
|
|
|
+ virtual void packData(BitStream* stream);
|
|
|
+ virtual void unpackData(BitStream* stream);
|
|
|
+
|
|
|
+ void onDropChanged() {}
|
|
|
+ void onSplashChanged() {}
|
|
|
};
|
|
|
|
|
|
struct Raindrop
|