Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/ICmpSelectable.h
Show All 19 Lines | |||||
#include "simulation2/system/Interface.h" | #include "simulation2/system/Interface.h" | ||||
struct CColor; | struct CColor; | ||||
class ICmpSelectable : public IComponent | class ICmpSelectable : public IComponent | ||||
{ | { | ||||
public: | public: | ||||
enum EShape | |||||
Stan: Does it make sense to duplicate that struct? | |||||
Done Inline ActionsI need NONE instead just CIRLCE and SQUARE to know if it was set or not Silier: I need NONE instead just CIRLCE and SQUARE to know if it was set or not | |||||
Not Done Inline ActionsCan't it be added to the other one? Stan: Can't it be added to the other one? | |||||
{ | |||||
NONE, | |||||
CIRCLE, | |||||
SQUARE | |||||
}; | |||||
/** | /** | ||||
* Returns true if the entity is only selectable in Atlas editor, e.g. a decorative visual actor. | * Returns true if the entity is only selectable in Atlas editor, e.g. a decorative visual actor. | ||||
*/ | */ | ||||
virtual bool IsEditorOnly() const = 0; | virtual bool IsEditorOnly() const = 0; | ||||
/** | /** | ||||
* Sets the selection highlight state. | * Sets the selection highlight state. | ||||
* The highlight is typically a circle/square overlay around the unit. | * The highlight is typically a circle/square overlay around the unit. | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
Does it make sense to duplicate that struct?