Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/ICmpSoundManager.cpp
/* Copyright (C) 2017 Wildfire Games. | /* Copyright (C) 2020 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
Show All 9 Lines | |||||
#include "ICmpSoundManager.h" | #include "ICmpSoundManager.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_2("PlaySoundGroup", void, ICmpSoundManager, PlaySoundGroup, std::wstring, entity_id_t) | ||||
DEFINE_INTERFACE_METHOD_2("PlaySoundGroupAtPosition", void, ICmpSoundManager, PlaySoundGroupAtPosition, std::wstring, CFixedVector3D) | DEFINE_INTERFACE_METHOD_2("PlaySoundGroupAtPosition", void, ICmpSoundManager, PlaySoundGroupAtPosition, std::wstring, CFixedVector3D) | ||||
DEFINE_INTERFACE_METHOD_2("PlaySoundGroupForPlayer", void, ICmpSoundManager, PlaySoundGroupForPlayer, std::wstring, entity_id_t) | |||||
Freagarach: Why is this `_const`? | |||||
Done Inline ActionsCause it doesn't alter the CCmpSoundComponent Stan: Cause it doesn't alter the CCmpSoundComponent | |||||
DEFINE_INTERFACE_METHOD_0("StopMusic", void, ICmpSoundManager, StopMusic) | DEFINE_INTERFACE_METHOD_0("StopMusic", void, ICmpSoundManager, StopMusic) | ||||
END_INTERFACE_WRAPPER(SoundManager) | END_INTERFACE_WRAPPER(SoundManager) |
Wildfire Games · Phabricator
Why is this _const?