summaryrefslogtreecommitdiff
path: root/modules/webm
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 /modules/webm
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 'modules/webm')
-rw-r--r--modules/webm/register_types.cpp2
-rw-r--r--modules/webm/video_stream_webm.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/webm/register_types.cpp b/modules/webm/register_types.cpp
index 97794941cc..e50eb337ae 100644
--- a/modules/webm/register_types.cpp
+++ b/modules/webm/register_types.cpp
@@ -36,7 +36,7 @@ void register_webm_types() {
webm_stream_loader = memnew(ResourceFormatLoaderVideoStreamWebm);
ResourceLoader::add_resource_format_loader(webm_stream_loader);
- ObjectTypeDB::register_type<VideoStreamWebm>();
+ ClassDB::register_class<VideoStreamWebm>();
}
void unregister_webm_types() {
diff --git a/modules/webm/video_stream_webm.h b/modules/webm/video_stream_webm.h
index 83f0b6af09..a34591d9b9 100644
--- a/modules/webm/video_stream_webm.h
+++ b/modules/webm/video_stream_webm.h
@@ -36,7 +36,7 @@ class OpusVorbisDecoder;
class VideoStreamPlaybackWebm : public VideoStreamPlayback {
- OBJ_TYPE(VideoStreamPlaybackWebm, VideoStreamPlayback)
+ GDCLASS(VideoStreamPlaybackWebm, VideoStreamPlayback)
String file_name;
int audio_track;
@@ -102,7 +102,7 @@ private:
class VideoStreamWebm : public VideoStream {
- OBJ_TYPE(VideoStreamWebm, VideoStream)
+ GDCLASS(VideoStreamWebm, VideoStream)
String file;
int audio_track;