mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-10 22:24:33 +00:00
initial commit
change the macro to use the refactor (exact same structure as the imageasset macro)
This commit is contained in:
parent
61a75ada1e
commit
ca1604170d
29 changed files with 700 additions and 457 deletions
|
|
@ -47,7 +47,7 @@ class TSShape;
|
|||
//**************************************************************************
|
||||
// Debris Data
|
||||
//**************************************************************************
|
||||
struct DebrisData : public GameBaseData
|
||||
struct DebrisData : public GameBaseData, protected AssetPtrCallback
|
||||
{
|
||||
typedef GameBaseData Parent;
|
||||
|
||||
|
|
@ -83,8 +83,7 @@ struct DebrisData : public GameBaseData
|
|||
F32 terminalVelocity; // max velocity magnitude
|
||||
bool ignoreWater;
|
||||
|
||||
DECLARE_SHAPEASSET(DebrisData, Shape, onShapeChanged);
|
||||
DECLARE_ASSET_SETGET(DebrisData, Shape);
|
||||
DECLARE_SHAPEASSET_REFACTOR(DebrisData, Shape)
|
||||
|
||||
StringTableEntry textureName;
|
||||
|
||||
|
|
@ -111,7 +110,8 @@ public:
|
|||
void onPerformSubstitutions() override;
|
||||
bool allowSubstitutions() const override { return true; }
|
||||
|
||||
void onShapeChanged()
|
||||
protected:
|
||||
void onAssetRefreshed(AssetPtrBase* pAssetPtrBase) override
|
||||
{
|
||||
reloadOnLocalClient();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue