mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
tsforestitem and forestitem
This commit is contained in:
parent
08f52cfa16
commit
9208cdfcd6
3 changed files with 19 additions and 18 deletions
|
|
@ -48,7 +48,7 @@ struct RayInfo;
|
|||
class AbstractPolyList;
|
||||
|
||||
|
||||
class ForestItemData : public SimDataBlock
|
||||
class ForestItemData : public SimDataBlock, protected AssetPtrCallback
|
||||
{
|
||||
protected:
|
||||
|
||||
|
|
@ -62,8 +62,7 @@ protected:
|
|||
|
||||
public:
|
||||
|
||||
DECLARE_SHAPEASSET(ForestItemData, Shape, onShapeChanged);
|
||||
DECLARE_ASSET_SETGET(ForestItemData, Shape);
|
||||
DECLARE_SHAPEASSET_REFACTOR(ForestItemData, Shape)
|
||||
|
||||
/// This is the radius used during placement to ensure
|
||||
/// the element isn't crowded up against other trees.
|
||||
|
|
@ -144,7 +143,10 @@ public:
|
|||
return theSignal;
|
||||
}
|
||||
|
||||
void onShapeChanged()
|
||||
Resource<TSShape> mShape;
|
||||
|
||||
protected:
|
||||
void onAssetRefreshed(AssetPtrBase* pAssetPtrBase) override
|
||||
{
|
||||
reloadOnLocalClient();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue