You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Renaming of servers for coherency.
VisualServer -> RenderingServer PhysicsServer -> PhysicsServer3D Physics2DServer -> PhysicsServer2D NavigationServer -> NavigationServer3D Navigation2DServer -> NavigationServer2D Also renamed corresponding files.
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
/*************************************************************************/
|
||||
|
||||
#include "collision_object_2d_sw.h"
|
||||
#include "servers/physics_2d/physics_2d_server_sw.h"
|
||||
#include "servers/physics_2d/physics_server_2d_sw.h"
|
||||
#include "space_2d_sw.h"
|
||||
|
||||
void CollisionObject2DSW::add_shape(Shape2DSW *p_shape, const Transform2D &p_transform, bool p_disabled) {
|
||||
@@ -46,7 +46,7 @@ void CollisionObject2DSW::add_shape(Shape2DSW *p_shape, const Transform2D &p_tra
|
||||
p_shape->add_owner(this);
|
||||
|
||||
if (!pending_shape_update_list.in_list()) {
|
||||
Physics2DServerSW::singletonsw->pending_shape_update_list.add(&pending_shape_update_list);
|
||||
PhysicsServer2DSW::singletonsw->pending_shape_update_list.add(&pending_shape_update_list);
|
||||
}
|
||||
// _update_shapes();
|
||||
// _shapes_changed();
|
||||
@@ -61,7 +61,7 @@ void CollisionObject2DSW::set_shape(int p_index, Shape2DSW *p_shape) {
|
||||
p_shape->add_owner(this);
|
||||
|
||||
if (!pending_shape_update_list.in_list()) {
|
||||
Physics2DServerSW::singletonsw->pending_shape_update_list.add(&pending_shape_update_list);
|
||||
PhysicsServer2DSW::singletonsw->pending_shape_update_list.add(&pending_shape_update_list);
|
||||
}
|
||||
// _update_shapes();
|
||||
// _shapes_changed();
|
||||
@@ -81,7 +81,7 @@ void CollisionObject2DSW::set_shape_transform(int p_index, const Transform2D &p_
|
||||
shapes.write[p_index].xform_inv = p_transform.affine_inverse();
|
||||
|
||||
if (!pending_shape_update_list.in_list()) {
|
||||
Physics2DServerSW::singletonsw->pending_shape_update_list.add(&pending_shape_update_list);
|
||||
PhysicsServer2DSW::singletonsw->pending_shape_update_list.add(&pending_shape_update_list);
|
||||
}
|
||||
// _update_shapes();
|
||||
// _shapes_changed();
|
||||
@@ -103,12 +103,12 @@ void CollisionObject2DSW::set_shape_as_disabled(int p_idx, bool p_disabled) {
|
||||
space->get_broadphase()->remove(shape.bpid);
|
||||
shape.bpid = 0;
|
||||
if (!pending_shape_update_list.in_list()) {
|
||||
Physics2DServerSW::singletonsw->pending_shape_update_list.add(&pending_shape_update_list);
|
||||
PhysicsServer2DSW::singletonsw->pending_shape_update_list.add(&pending_shape_update_list);
|
||||
}
|
||||
//_update_shapes();
|
||||
} else if (!p_disabled && shape.bpid == 0) {
|
||||
if (!pending_shape_update_list.in_list()) {
|
||||
Physics2DServerSW::singletonsw->pending_shape_update_list.add(&pending_shape_update_list);
|
||||
PhysicsServer2DSW::singletonsw->pending_shape_update_list.add(&pending_shape_update_list);
|
||||
}
|
||||
//_update_shapes(); // automatically adds shape with bpid == 0
|
||||
}
|
||||
@@ -142,7 +142,7 @@ void CollisionObject2DSW::remove_shape(int p_index) {
|
||||
shapes.remove(p_index);
|
||||
|
||||
if (!pending_shape_update_list.in_list()) {
|
||||
Physics2DServerSW::singletonsw->pending_shape_update_list.add(&pending_shape_update_list);
|
||||
PhysicsServer2DSW::singletonsw->pending_shape_update_list.add(&pending_shape_update_list);
|
||||
}
|
||||
// _update_shapes();
|
||||
// _shapes_changed();
|
||||
|
||||
Reference in New Issue
Block a user