mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-20 16:19:11 +00:00
23
include/Kyoto/Audio/CSfxHandle.hpp
Normal file
23
include/Kyoto/Audio/CSfxHandle.hpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef _CSFXHANDLE_HPP
|
||||
#define _CSFXHANDLE_HPP
|
||||
|
||||
#include "types.h"
|
||||
|
||||
class CSfxHandle {
|
||||
public:
|
||||
CSfxHandle() : value(0) {}
|
||||
CSfxHandle(u32 value) : value(value) {}
|
||||
|
||||
// GetIndex__10CSfxHandleCFv
|
||||
// NullHandle__10CSfxHandleFv
|
||||
// mRefCount__10CSfxHandle ??
|
||||
|
||||
bool operator==(const CSfxHandle& other) { return value == other.value; }
|
||||
operator bool() const { return value != 0; }
|
||||
|
||||
private:
|
||||
u32 value;
|
||||
};
|
||||
CHECK_SIZEOF(CSfxHandle, 0x4)
|
||||
|
||||
#endif
|
||||
@@ -3,9 +3,12 @@
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#include "Kyoto/Audio/CSfxHandle.hpp"
|
||||
|
||||
class CSfxManager {
|
||||
public:
|
||||
static void Update(f32 dt);
|
||||
static void RemoveEmitter(CSfxHandle handle);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user