aboutsummaryrefslogtreecommitdiff
path: root/modules/vorbis
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/vorbis
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/vorbis')
-rw-r--r--modules/vorbis/audio_stream_ogg_vorbis.h4
-rw-r--r--modules/vorbis/register_types.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/vorbis/audio_stream_ogg_vorbis.h b/modules/vorbis/audio_stream_ogg_vorbis.h
index adeef6cc3..bc2bfa2ae 100644
--- a/modules/vorbis/audio_stream_ogg_vorbis.h
+++ b/modules/vorbis/audio_stream_ogg_vorbis.h
@@ -38,7 +38,7 @@
class AudioStreamPlaybackOGGVorbis : public AudioStreamPlayback {
- OBJ_TYPE(AudioStreamPlaybackOGGVorbis,AudioStreamPlayback);
+ GDCLASS(AudioStreamPlaybackOGGVorbis,AudioStreamPlayback);
enum {
MIN_MIX=1024
@@ -115,7 +115,7 @@ public:
class AudioStreamOGGVorbis : public AudioStream {
- OBJ_TYPE(AudioStreamOGGVorbis,AudioStream);
+ GDCLASS(AudioStreamOGGVorbis,AudioStream);
String file;
public:
diff --git a/modules/vorbis/register_types.cpp b/modules/vorbis/register_types.cpp
index d33946249..de929d935 100644
--- a/modules/vorbis/register_types.cpp
+++ b/modules/vorbis/register_types.cpp
@@ -36,7 +36,7 @@ void register_vorbis_types() {
vorbis_stream_loader = memnew( ResourceFormatLoaderAudioStreamOGGVorbis );
ResourceLoader::add_resource_format_loader(vorbis_stream_loader);
- ObjectTypeDB::register_type<AudioStreamOGGVorbis>();
+ ClassDB::register_class<AudioStreamOGGVorbis>();
}
void unregister_vorbis_types() {