mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-19 14:53:56 -07:00
25 lines
625 B
C++
25 lines
625 B
C++
#ifndef INCLUDED_LIGHTCONTROL
|
|
#define INCLUDED_LIGHTCONTROL
|
|
|
|
#include "GameInterface/Messages.h"
|
|
#include "GameInterface/Shareable.h"
|
|
#include "General/Observable.h"
|
|
|
|
class LightSphere;
|
|
|
|
class LightControl : public wxPanel
|
|
{
|
|
public:
|
|
LightControl(wxWindow* parent, const wxSize& size, Observable<AtlasMessage::sEnvironmentSettings>& environment);
|
|
|
|
void OnSettingsChange(const AtlasMessage::sEnvironmentSettings& settings);
|
|
|
|
void NotifyOtherObservers();
|
|
|
|
private:
|
|
Observable<AtlasMessage::sEnvironmentSettings>& m_Environment;
|
|
ObservableScopedConnection m_Conn;
|
|
LightSphere* m_Sphere;
|
|
};
|
|
|
|
#endif // INCLUDED_LIGHTCONTROL
|