aboutsummaryrefslogtreecommitdiff
path: root/modules/mpc
diff options
context:
space:
mode:
authorJuan Linietsky2017-01-02 23:03:46 -0300
committerJuan Linietsky2017-01-02 23:03:46 -0300
commit118eed485e8f928a5a0dab530ae93211afa10525 (patch)
tree83efb5cbcebb7046e5b64dfe1712475a7d3b7f14 /modules/mpc
parentce26eb74bca48f16e9a34b4eb1c34e50dfc5daae (diff)
downloadgodot-118eed485e8f928a5a0dab530ae93211afa10525.tar.gz
godot-118eed485e8f928a5a0dab530ae93211afa10525.tar.zst
godot-118eed485e8f928a5a0dab530ae93211afa10525.zip
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 'modules/mpc')
-rw-r--r--modules/mpc/audio_stream_mpc.cpp4
-rw-r--r--modules/mpc/audio_stream_mpc.h4
-rw-r--r--modules/mpc/register_types.cpp2
3 files changed, 5 insertions, 5 deletions
diff --git a/modules/mpc/audio_stream_mpc.cpp b/modules/mpc/audio_stream_mpc.cpp
index befb8ea29..d8572d3b5 100644
--- a/modules/mpc/audio_stream_mpc.cpp
+++ b/modules/mpc/audio_stream_mpc.cpp
@@ -351,8 +351,8 @@ void AudioStreamPlaybackMPC::seek_pos(float p_time) {
void AudioStreamPlaybackMPC::_bind_methods() {
- ObjectTypeDB::bind_method(_MD("set_file","name"),&AudioStreamPlaybackMPC::set_file);
- ObjectTypeDB::bind_method(_MD("get_file"),&AudioStreamPlaybackMPC::get_file);
+ ClassDB::bind_method(_MD("set_file","name"),&AudioStreamPlaybackMPC::set_file);
+ ClassDB::bind_method(_MD("get_file"),&AudioStreamPlaybackMPC::get_file);
ADD_PROPERTYNZ( PropertyInfo(Variant::STRING,"file",PROPERTY_HINT_FILE,"mpc"), _SCS("set_file"), _SCS("get_file"));
diff --git a/modules/mpc/audio_stream_mpc.h b/modules/mpc/audio_stream_mpc.h
index 9430f752f..e7d677aa8 100644
--- a/modules/mpc/audio_stream_mpc.h
+++ b/modules/mpc/audio_stream_mpc.h
@@ -38,7 +38,7 @@
class AudioStreamPlaybackMPC : public AudioStreamPlayback {
- OBJ_TYPE( AudioStreamPlaybackMPC, AudioStreamPlayback );
+ GDCLASS( AudioStreamPlaybackMPC, AudioStreamPlayback );
bool preload;
FileAccess *f;
@@ -118,7 +118,7 @@ public:
class AudioStreamMPC : public AudioStream {
- OBJ_TYPE( AudioStreamMPC, AudioStream );
+ GDCLASS( AudioStreamMPC, AudioStream );
String file;
public:
diff --git a/modules/mpc/register_types.cpp b/modules/mpc/register_types.cpp
index 7e962804b..df058916b 100644
--- a/modules/mpc/register_types.cpp
+++ b/modules/mpc/register_types.cpp
@@ -36,7 +36,7 @@ void register_mpc_types() {
mpc_stream_loader=memnew( ResourceFormatLoaderAudioStreamMPC );
ResourceLoader::add_resource_format_loader(mpc_stream_loader);
- ObjectTypeDB::register_type<AudioStreamMPC>();
+ ClassDB::register_class<AudioStreamMPC>();
}
void unregister_mpc_types() {