mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
Convert sound asset
Convert sound asset to use the new field constructors Also add a simple example of the visibility control.
This commit is contained in:
parent
e635344fba
commit
e97e7521f3
2 changed files with 164 additions and 118 deletions
|
|
@ -161,7 +161,8 @@ public:
|
|||
/// Declare Console Object.
|
||||
DECLARE_CONOBJECT(SoundAsset);
|
||||
|
||||
// asset Base load
|
||||
static bool _setSoundFile(void* object, const char* index, const char* data);
|
||||
static bool slotVisible(void* object, const char* index);
|
||||
U32 load() override;
|
||||
|
||||
void setSoundFile(StringTableEntry pSoundFile, U32 slot = 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue