Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/ICmpSelectable.cpp
/* Copyright (C) 2017 Wildfire Games. | /* Copyright (C) 2018 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 10 Lines | |||||
#include "ICmpSelectable.h" | #include "ICmpSelectable.h" | ||||
#include "simulation2/system/InterfaceScripted.h" | #include "simulation2/system/InterfaceScripted.h" | ||||
#include "ps/Shapes.h" | #include "ps/Shapes.h" | ||||
BEGIN_INTERFACE_WRAPPER(Selectable) | BEGIN_INTERFACE_WRAPPER(Selectable) | ||||
DEFINE_INTERFACE_METHOD_2("SetSelectionHighlight", void, ICmpSelectable, SetSelectionHighlight, CColor, bool) | DEFINE_INTERFACE_METHOD_2("SetSelectionHighlight", void, ICmpSelectable, SetSelectionHighlight, CColor, bool) | ||||
DEFINE_INTERFACE_METHOD_0("UpdateColor", void, 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