/** @return the SoundAsset that this object refers to */
boost::shared_ptr<SoundAsset> asset () {
- return boost::dynamic_pointer_cast<SoundAsset> (_asset_ref.object ());
+ return asset_of_type<SoundAsset> ();
}
/** @return the SoundAsset that this object refers to */
boost::shared_ptr<const SoundAsset> asset () const {
- return boost::dynamic_pointer_cast<const SoundAsset> (_asset_ref.object ());
+ return asset_of_type<const SoundAsset> ();
}
-
+
private:
std::string key_type () const;
std::string cpl_node_name () const;
};
}
-