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:
marauder2k7 2026-05-03 17:00:19 +01:00
parent e635344fba
commit e97e7521f3
2 changed files with 164 additions and 118 deletions

View file

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