mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-21 03:16:54 +01:00
21 lines
457 B
C++
21 lines
457 B
C++
|
#include "paint_node.h"
|
||
|
|
||
|
Vector2i PaintNode::get_size() {
|
||
|
return _size;
|
||
|
}
|
||
|
void PaintNode::set_size(const Vector2i &size) {
|
||
|
_size = size;
|
||
|
}
|
||
|
|
||
|
PaintNode::PaintNode() {
|
||
|
}
|
||
|
|
||
|
PaintNode::~PaintNode() {
|
||
|
}
|
||
|
|
||
|
void PaintNode::_bind_methods() {
|
||
|
ClassDB::bind_method(D_METHOD("get_size"), &PaintNode::get_size);
|
||
|
ClassDB::bind_method(D_METHOD("set_size", "size"), &PaintNode::set_size);
|
||
|
ADD_PROPERTY(PropertyInfo(Variant::VECTOR2I, "size"), "set_size", "get_size");
|
||
|
}
|