|
1 | | -#ifndef NATIVE_ROPE_WIND_PARAMETERS_HPP |
2 | | -#define NATIVE_ROPE_WIND_PARAMETERS_HPP |
| 1 | +#pragma once |
3 | 2 |
|
4 | 3 | #include <godot_cpp/classes/fast_noise_lite.hpp> |
5 | 4 | #include <godot_cpp/classes/resource.hpp> |
6 | 5 |
|
7 | | -namespace godot |
| 6 | +namespace godot { |
| 7 | + |
| 8 | +class RopeWindParameters : public Resource // NOLINT(cppcoreguidelines-special-member-functions) |
8 | 9 | { |
9 | | - class RopeWindParameters : public Resource // NOLINT(cppcoreguidelines-special-member-functions) |
10 | | - { |
11 | | - GDCLASS(RopeWindParameters, Resource) // NOLINT |
| 10 | + GDCLASS(RopeWindParameters, Resource) // NOLINT |
12 | 11 |
|
13 | | - public: |
14 | | - void set_direction(float angle); |
15 | | - float get_direction() const; |
16 | | - Vector2 get_direction_vector() const; |
17 | | - void set_wind_strength(float strength); |
18 | | - float get_wind_strength() const; |
19 | | - void set_oscillation_strength(float strength); |
20 | | - float get_oscillation_strength() const; |
21 | | - void set_noise(Ref<FastNoiseLite> noise); |
22 | | - Ref<FastNoiseLite> get_noise() const; |
23 | | - void set_enable_wind(bool wind_enabled); |
24 | | - bool get_enable_wind() const; |
| 12 | +public: |
| 13 | + void set_direction(float angle); |
| 14 | + float get_direction() const; |
| 15 | + Vector2 get_direction_vector() const; |
| 16 | + void set_wind_strength(float strength); |
| 17 | + float get_wind_strength() const; |
| 18 | + void set_oscillation_strength(float strength); |
| 19 | + float get_oscillation_strength() const; |
| 20 | + void set_noise(Ref<FastNoiseLite> noise); |
| 21 | + Ref<FastNoiseLite> get_noise() const; |
| 22 | + void set_enable_wind(bool wind_enabled); |
| 23 | + bool get_enable_wind() const; |
25 | 24 |
|
26 | | - protected: |
27 | | - static void _bind_methods(); |
| 25 | +protected: |
| 26 | + static void _bind_methods(); |
28 | 27 |
|
29 | | - private: |
30 | | - Vector2 _wind_direction = {1.0f, 0.0f}; |
31 | | - float _angle = 0.0f; |
32 | | - float _wind_strength = 0.0f; |
33 | | - float _oscillation_strength = 0.0f; |
34 | | - Ref<FastNoiseLite> _noise = nullptr; |
35 | | - bool _enable_wind = true; |
36 | | - }; |
37 | | -} |
| 28 | +private: |
| 29 | + Vector2 _wind_direction = { 1.0f, 0.0f }; |
| 30 | + float _angle = 0.0f; |
| 31 | + float _wind_strength = 0.0f; |
| 32 | + float _oscillation_strength = 0.0f; |
| 33 | + Ref<FastNoiseLite> _noise = nullptr; |
| 34 | + bool _enable_wind = true; |
| 35 | +}; |
38 | 36 |
|
39 | | -#endif |
| 37 | +} |
0 commit comments