summaryrefslogtreecommitdiff
path: root/bin/tests
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-01-02 23:03:46 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-01-02 23:03:46 -0300
commit118eed485e8f928a5a0dab530ae93211afa10525 (patch)
tree83efb5cbcebb7046e5b64dfe1712475a7d3b7f14 /bin/tests
parentce26eb74bca48f16e9a34b4eb1c34e50dfc5daae (diff)
ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant.
All usages of "type" to refer to classes were renamed to "class" ClassDB has been exposed to GDScript. OBJ_TYPE() macro is now GDCLASS()
Diffstat (limited to 'bin/tests')
-rw-r--r--bin/tests/test_math.cpp2
-rw-r--r--bin/tests/test_physics.cpp4
-rw-r--r--bin/tests/test_physics_2d.cpp6
3 files changed, 6 insertions, 6 deletions
diff --git a/bin/tests/test_math.cpp b/bin/tests/test_math.cpp
index 9329002f76..2ffef83f79 100644
--- a/bin/tests/test_math.cpp
+++ b/bin/tests/test_math.cpp
@@ -518,7 +518,7 @@ MainLoop* test() {
Vector<int> hashes;
List<StringName> tl;
- ObjectTypeDB::get_type_list(&tl);
+ ClassDB::get_class_list(&tl);
for (List<StringName>::Element *E=tl.front();E;E=E->next()) {
diff --git a/bin/tests/test_physics.cpp b/bin/tests/test_physics.cpp
index 3a8ca65734..8a270f721f 100644
--- a/bin/tests/test_physics.cpp
+++ b/bin/tests/test_physics.cpp
@@ -40,7 +40,7 @@
class TestPhysicsMainLoop : public MainLoop {
- OBJ_TYPE( TestPhysicsMainLoop, MainLoop );
+ GDCLASS( TestPhysicsMainLoop, MainLoop );
enum {
LINK_COUNT = 20,
@@ -81,7 +81,7 @@ protected:
static void _bind_methods() {
- ObjectTypeDB::bind_method("body_changed_transform",&TestPhysicsMainLoop::body_changed_transform);
+ ClassDB::bind_method("body_changed_transform",&TestPhysicsMainLoop::body_changed_transform);
}
RID create_body(PhysicsServer::ShapeType p_shape, PhysicsServer::BodyMode p_body,const Transform p_location,bool p_active_default=true,const Transform&p_shape_xform=Transform()) {
diff --git a/bin/tests/test_physics_2d.cpp b/bin/tests/test_physics_2d.cpp
index f369c361d3..93d707b26a 100644
--- a/bin/tests/test_physics_2d.cpp
+++ b/bin/tests/test_physics_2d.cpp
@@ -42,7 +42,7 @@ static const unsigned char convex_png[]={
class TestPhysics2DMainLoop : public MainLoop {
- OBJ_TYPE( TestPhysics2DMainLoop, MainLoop );
+ GDCLASS( TestPhysics2DMainLoop, MainLoop );
RID circle_img;
@@ -354,8 +354,8 @@ protected:
static void _bind_methods() {
- ObjectTypeDB::bind_method(_MD("_body_moved"),&TestPhysics2DMainLoop::_body_moved);
- ObjectTypeDB::bind_method(_MD("_ray_query_callback"),&TestPhysics2DMainLoop::_ray_query_callback);
+ ClassDB::bind_method(_MD("_body_moved"),&TestPhysics2DMainLoop::_body_moved);
+ ClassDB::bind_method(_MD("_ray_query_callback"),&TestPhysics2DMainLoop::_ray_query_callback);
}