Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/ICmpSelectable.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 "ICmpSelectable.h" | #include "ICmpSelectable.h" | ||||
#include "scriptinterface/FunctionWrapper.h" | |||||
#include "scriptinterface/ScriptInterface.h" | |||||
#include "simulation2/system/InterfaceScripted.h" | #include "simulation2/system/InterfaceScripted.h" | ||||
#include "graphics/Color.h" | #include "graphics/Color.h" | ||||
BEGIN_INTERFACE_WRAPPER(Selectable) | BEGIN_INTERFACE_WRAPPER(Selectable) | ||||
DEFINE_INTERFACE_METHOD_2("SetSelectionHighlight", void, ICmpSelectable, SetSelectionHighlight, CColor, bool) | DEFINE_INTERFACE_METHOD("SetSelectionHighlight", ICmpSelectable, SetSelectionHighlight) | ||||
DEFINE_INTERFACE_METHOD_0("UpdateColor", void, ICmpSelectable, UpdateColor) | DEFINE_INTERFACE_METHOD("UpdateColor", ICmpSelectable, UpdateColor) | ||||
END_INTERFACE_WRAPPER(Selectable) | END_INTERFACE_WRAPPER(Selectable) | ||||
bool ICmpSelectable::ms_EnableDebugOverlays = false; | bool ICmpSelectable::ms_EnableDebugOverlays = false; | ||||
bool ICmpSelectable::m_OverrideVisible = true; | bool ICmpSelectable::m_OverrideVisible = true; |
Wildfire Games · Phabricator