mirror of
https://github.com/Relintai/props.git
synced 2024-11-12 10:15:25 +01:00
Renamed the world position property to just position in PropLight.
This commit is contained in:
parent
a5ab7ca180
commit
00536c9596
@ -22,11 +22,11 @@ SOFTWARE.
|
||||
|
||||
#include "prop_light.h"
|
||||
|
||||
Vector3 PropLight::get_world_position() {
|
||||
return _world_position;
|
||||
Vector3 PropLight::get_position() {
|
||||
return _position;
|
||||
}
|
||||
void PropLight::set_world_position(const Vector3 &pos) {
|
||||
_world_position = pos;
|
||||
void PropLight::set_position(const Vector3 &pos) {
|
||||
_position = pos;
|
||||
}
|
||||
|
||||
Color PropLight::get_color() const {
|
||||
@ -51,9 +51,9 @@ PropLight::~PropLight() {
|
||||
}
|
||||
|
||||
void PropLight::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("get_world_position"), &PropLight::get_world_position);
|
||||
ClassDB::bind_method(D_METHOD("set_world_position"), &PropLight::set_color);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "world_position"), "set_world_position", "get_world_position");
|
||||
ClassDB::bind_method(D_METHOD("get_position"), &PropLight::get_position);
|
||||
ClassDB::bind_method(D_METHOD("set_position"), &PropLight::set_position);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "world_position"), "set_position", "get_position");
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_color"), &PropLight::get_color);
|
||||
ClassDB::bind_method(D_METHOD("set_color"), &PropLight::set_color);
|
||||
|
@ -39,8 +39,8 @@ class PropLight : public Reference {
|
||||
GDCLASS(PropLight, Reference);
|
||||
|
||||
public:
|
||||
Vector3 get_world_position();
|
||||
void set_world_position(const Vector3 &pos);
|
||||
Vector3 get_position();
|
||||
void set_position(const Vector3 &pos);
|
||||
|
||||
Color get_color() const;
|
||||
void set_color(const Color &color);
|
||||
@ -55,7 +55,7 @@ private:
|
||||
static void _bind_methods();
|
||||
|
||||
private:
|
||||
Vector3 _world_position;
|
||||
Vector3 _position;
|
||||
|
||||
Color _color;
|
||||
int _size;
|
||||
|
Loading…
Reference in New Issue
Block a user