2022-03-17 22:33:22 +01:00
|
|
|
#ifndef PROP_2D_LIGHT_H
|
|
|
|
#define PROP_2D_LIGHT_H
|
2023-12-17 22:59:50 +01:00
|
|
|
|
2022-03-15 13:29:32 +01:00
|
|
|
|
2022-08-17 11:38:15 +02:00
|
|
|
#include "core/math/color.h"
|
2022-08-17 13:45:14 +02:00
|
|
|
#include "core/object/reference.h"
|
2022-08-17 12:53:49 +02:00
|
|
|
#include "core/containers/vector.h"
|
2022-03-15 13:29:32 +01:00
|
|
|
|
|
|
|
class Prop2DLight : public Reference {
|
|
|
|
GDCLASS(Prop2DLight, Reference);
|
|
|
|
|
|
|
|
public:
|
|
|
|
Vector2 get_position();
|
|
|
|
void set_position(const Vector2 &pos);
|
|
|
|
|
|
|
|
Color get_color() const;
|
|
|
|
void set_color(const Color &color);
|
|
|
|
|
|
|
|
float get_size() const;
|
|
|
|
void set_size(const float strength);
|
|
|
|
|
|
|
|
Prop2DLight();
|
|
|
|
~Prop2DLight();
|
|
|
|
|
|
|
|
private:
|
|
|
|
static void _bind_methods();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Vector2 _position;
|
|
|
|
|
|
|
|
Color _color;
|
|
|
|
int _size;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|