tsforestitem and forestitem

This commit is contained in:
marauder2k7 2025-06-19 17:24:43 +01:00
parent 08f52cfa16
commit 9208cdfcd6
3 changed files with 19 additions and 18 deletions

View file

@ -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();
}