Pixelpart 1.8.2
Godot Plugin
Loading...
Searching...
No Matches
PixelpartStaticPropertyInt.h
1#ifndef PIXELPART_STATIC_PROPERTY_INT_H
2#define PIXELPART_STATIC_PROPERTY_INT_H
3
4#include <godot_cpp/core/binder_common.hpp>
5#include <godot_cpp/classes/ref.hpp>
6#include <pixelpart-runtime/common/Types.h>
7#include <pixelpart-runtime/effect/StaticProperty.h>
8
9namespace godot {
16class PixelpartStaticPropertyInt : public RefCounted {
17 GDCLASS(PixelpartStaticPropertyInt, RefCounted)
18
19public:
20 PixelpartStaticPropertyInt();
21
22#ifdef DOXYGEN
27#endif
28
29 void init(pixelpart::StaticProperty<pixelpart::int_t>* prop);
30
36 int value() const;
37
43 void set_base_value(int value);
44
50 int get_base_value() const;
51
52protected:
53 static void _bind_methods();
54
55private:
56 pixelpart::StaticProperty<pixelpart::int_t>* property = nullptr;
57};
58}
59
60#endif
void set_base_value(int value)
Set value without effect inputs taken into account.
Definition PixelpartStaticPropertyInt.cpp:22
int base_value
Value without effect inputs taken into account.
Definition PixelpartStaticPropertyInt.h:26
int get_base_value() const
Return value without effect inputs taken into account.
Definition PixelpartStaticPropertyInt.cpp:27
int value() const
Return value with effect inputs taken into account.
Definition PixelpartStaticPropertyInt.cpp:14