Skip to content

Commit 04107df

Browse files
committed
Merge pull request #113493 from dsnopek/requiredparam-sync-headers
Synchronize the names for `RequiredParam<T>` arguments in header files
2 parents cc0abde + 308f23f commit 04107df

27 files changed

+84
-84
lines changed

core/input/input.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ class Input : public Object {
321321
bool is_action_pressed(const StringName &p_action, bool p_exact = false) const;
322322
bool is_action_just_pressed(const StringName &p_action, bool p_exact = false) const;
323323
bool is_action_just_released(const StringName &p_action, bool p_exact = false) const;
324-
bool is_action_just_pressed_by_event(const StringName &p_action, RequiredParam<InputEvent> p_event, bool p_exact = false) const;
325-
bool is_action_just_released_by_event(const StringName &p_action, RequiredParam<InputEvent> p_event, bool p_exact = false) const;
324+
bool is_action_just_pressed_by_event(const StringName &p_action, RequiredParam<InputEvent> rp_event, bool p_exact = false) const;
325+
bool is_action_just_released_by_event(const StringName &p_action, RequiredParam<InputEvent> rp_event, bool p_exact = false) const;
326326
float get_action_strength(const StringName &p_action, bool p_exact = false) const;
327327
float get_action_raw_strength(const StringName &p_action, bool p_exact = false) const;
328328

@@ -350,7 +350,7 @@ class Input : public Object {
350350
void warp_mouse(const Vector2 &p_position);
351351
Point2 warp_mouse_motion(const Ref<InputEventMouseMotion> &p_motion, const Rect2 &p_rect);
352352

353-
void parse_input_event(RequiredParam<InputEvent> p_event);
353+
void parse_input_event(RequiredParam<InputEvent> rp_event);
354354

355355
void set_gravity(const Vector3 &p_gravity);
356356
void set_accelerometer(const Vector3 &p_accel);

core/input/input_map.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ class InputMap : public Object {
8787

8888
float action_get_deadzone(const StringName &p_action);
8989
void action_set_deadzone(const StringName &p_action, float p_deadzone);
90-
void action_add_event(const StringName &p_action, RequiredParam<InputEvent> p_event);
91-
bool action_has_event(const StringName &p_action, RequiredParam<InputEvent> p_event);
92-
void action_erase_event(const StringName &p_action, RequiredParam<InputEvent> p_event);
90+
void action_add_event(const StringName &p_action, RequiredParam<InputEvent> rp_event);
91+
bool action_has_event(const StringName &p_action, RequiredParam<InputEvent> rp_event);
92+
void action_erase_event(const StringName &p_action, RequiredParam<InputEvent> rp_event);
9393
void action_erase_events(const StringName &p_action);
9494

9595
const List<Ref<InputEvent>> *action_get_events(const StringName &p_action);
96-
bool event_is_action(RequiredParam<InputEvent> p_event, const StringName &p_action, bool p_exact_match = false) const;
96+
bool event_is_action(RequiredParam<InputEvent> rp_event, const StringName &p_action, bool p_exact_match = false) const;
9797
int event_get_index(const Ref<InputEvent> &p_event, const StringName &p_action, bool p_exact_match = false) const;
9898
bool event_get_action_status(const Ref<InputEvent> &p_event, const StringName &p_action, bool p_exact_match = false, bool *r_pressed = nullptr, float *r_strength = nullptr, float *r_raw_strength = nullptr, int *r_event_index = nullptr) const;
9999

core/io/resource_saver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class ResourceSaver {
8383
FLAG_REPLACE_SUBRESOURCE_PATHS = 64,
8484
};
8585

86-
static Error save(RequiredParam<Resource> p_resource, const String &p_path = "", uint32_t p_flags = (uint32_t)FLAG_NONE);
86+
static Error save(RequiredParam<Resource> rp_resource, const String &p_path = "", uint32_t p_flags = (uint32_t)FLAG_NONE);
8787
static void get_recognized_extensions(const Ref<Resource> &p_resource, List<String> *p_extensions);
8888
static void add_resource_format_saver(Ref<ResourceFormatSaver> p_format_saver, bool p_at_front = false);
8989
static void remove_resource_format_saver(Ref<ResourceFormatSaver> p_format_saver);

modules/godot_physics_3d/godot_physics_server_3d.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ class GodotPhysicsServer3D : public PhysicsServer3D {
263263

264264
virtual RID soft_body_create() override;
265265

266-
virtual void soft_body_update_rendering_server(RID p_body, RequiredParam<PhysicsServer3DRenderingServerHandler> p_rendering_server_handler) override;
266+
virtual void soft_body_update_rendering_server(RID p_body, RequiredParam<PhysicsServer3DRenderingServerHandler> rp_rendering_server_handler) override;
267267

268268
virtual void soft_body_set_space(RID p_body, RID p_space) override;
269269
virtual RID soft_body_get_space(RID p_body) const override;

modules/jolt_physics/jolt_physics_server_3d.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ class JoltPhysicsServer3D final : public PhysicsServer3D {
300300

301301
virtual RID soft_body_create() override;
302302

303-
virtual void soft_body_update_rendering_server(RID p_body, RequiredParam<PhysicsServer3DRenderingServerHandler> p_rendering_server_handler) override;
303+
virtual void soft_body_update_rendering_server(RID p_body, RequiredParam<PhysicsServer3DRenderingServerHandler> rp_rendering_server_handler) override;
304304

305305
virtual void soft_body_set_space(RID p_body, RID p_space) override;
306306
virtual RID soft_body_get_space(RID p_body) const override;

scene/2d/physics/area_2d.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ class Area2D : public CollisionObject2D {
185185
bool has_overlapping_bodies() const;
186186
bool has_overlapping_areas() const;
187187

188-
bool overlaps_area(RequiredParam<Node> p_area) const;
189-
bool overlaps_body(RequiredParam<Node> p_body) const;
188+
bool overlaps_area(RequiredParam<Node> rp_area) const;
189+
bool overlaps_body(RequiredParam<Node> rp_body) const;
190190

191191
void set_audio_bus_override(bool p_override);
192192
bool is_overriding_audio_bus() const;

scene/2d/physics/collision_object_2d.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class CollisionObject2D : public Node2D {
154154
void shape_owner_set_one_way_collision_margin(uint32_t p_owner, real_t p_margin);
155155
real_t get_shape_owner_one_way_collision_margin(uint32_t p_owner) const;
156156

157-
void shape_owner_add_shape(uint32_t p_owner, RequiredParam<Shape2D> p_shape);
157+
void shape_owner_add_shape(uint32_t p_owner, RequiredParam<Shape2D> rp_shape);
158158
int shape_owner_get_shape_count(uint32_t p_owner) const;
159159
Ref<Shape2D> shape_owner_get_shape(uint32_t p_owner, int p_shape) const;
160160
int shape_owner_get_shape_index(uint32_t p_owner, int p_shape) const;

scene/2d/physics/physics_body_2d.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ class PhysicsBody2D : public CollisionObject2D {
5454
Vector2 get_gravity() const;
5555

5656
TypedArray<PhysicsBody2D> get_collision_exceptions();
57-
void add_collision_exception_with(RequiredParam<Node> p_node); //must be physicsbody
58-
void remove_collision_exception_with(RequiredParam<Node> p_node);
57+
void add_collision_exception_with(RequiredParam<Node> rp_node); //must be physicsbody
58+
void remove_collision_exception_with(RequiredParam<Node> rp_node);
5959
};

scene/2d/physics/ray_cast_2d.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ class RayCast2D : public Node2D {
9797
Vector2 get_collision_normal() const;
9898

9999
void add_exception_rid(const RID &p_rid);
100-
void add_exception(RequiredParam<const CollisionObject2D> p_node);
100+
void add_exception(RequiredParam<const CollisionObject2D> rp_node);
101101
void remove_exception_rid(const RID &p_rid);
102-
void remove_exception(RequiredParam<const CollisionObject2D> p_node);
102+
void remove_exception(RequiredParam<const CollisionObject2D> rp_node);
103103
void clear_exceptions();
104104

105105
RayCast2D();

scene/2d/physics/shape_cast_2d.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ class ShapeCast2D : public Node2D {
112112
real_t get_closest_collision_unsafe_fraction() const;
113113

114114
void add_exception_rid(const RID &p_rid);
115-
void add_exception(RequiredParam<const CollisionObject2D> p_node);
115+
void add_exception(RequiredParam<const CollisionObject2D> rp_node);
116116
void remove_exception_rid(const RID &p_rid);
117-
void remove_exception(RequiredParam<const CollisionObject2D> p_node);
117+
void remove_exception(RequiredParam<const CollisionObject2D> rp_node);
118118
void clear_exceptions();
119119

120120
PackedStringArray get_configuration_warnings() const override;

0 commit comments

Comments
 (0)