Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/ICmpSoundManager.cpp
Show All 13 Lines | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#include "precompiled.h" | #include "precompiled.h" | ||||
#include "ICmpSoundManager.h" | #include "ICmpSoundManager.h" | ||||
#include "scriptinterface/FunctionWrapper.h" | |||||
#include "scriptinterface/ScriptInterface.h" | |||||
#include "simulation2/system/InterfaceScripted.h" | #include "simulation2/system/InterfaceScripted.h" | ||||
BEGIN_INTERFACE_WRAPPER(SoundManager) | BEGIN_INTERFACE_WRAPPER(SoundManager) | ||||
DEFINE_INTERFACE_METHOD_2("PlaySoundGroup", void, ICmpSoundManager, PlaySoundGroup, std::wstring, entity_id_t) | DEFINE_INTERFACE_METHOD("PlaySoundGroup", ICmpSoundManager, PlaySoundGroup) | ||||
DEFINE_INTERFACE_METHOD_2("PlaySoundGroupAtPosition", void, ICmpSoundManager, PlaySoundGroupAtPosition, std::wstring, CFixedVector3D) | DEFINE_INTERFACE_METHOD("PlaySoundGroupAtPosition", ICmpSoundManager, PlaySoundGroupAtPosition) | ||||
DEFINE_INTERFACE_METHOD_0("StopMusic", void, ICmpSoundManager, StopMusic) | DEFINE_INTERFACE_METHOD("StopMusic", ICmpSoundManager, StopMusic) | ||||
END_INTERFACE_WRAPPER(SoundManager) | END_INTERFACE_WRAPPER(SoundManager) |
Wildfire Games · Phabricator