diff options
| author | Juan Linietsky | 2017-01-02 23:03:46 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-01-02 23:03:46 -0300 |
| commit | 118eed485e8f928a5a0dab530ae93211afa10525 (patch) | |
| tree | 83efb5cbcebb7046e5b64dfe1712475a7d3b7f14 /modules/theora | |
| parent | ce26eb74bca48f16e9a34b4eb1c34e50dfc5daae (diff) | |
| download | godot-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/theora')
| -rw-r--r-- | modules/theora/register_types.cpp | 2 | ||||
| -rw-r--r-- | modules/theora/video_stream_theora.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/theora/register_types.cpp b/modules/theora/register_types.cpp index 043498a23..58f63465c 100644 --- a/modules/theora/register_types.cpp +++ b/modules/theora/register_types.cpp @@ -36,7 +36,7 @@ void register_theora_types() { theora_stream_loader = memnew( ResourceFormatLoaderVideoStreamTheora ); ResourceLoader::add_resource_format_loader(theora_stream_loader); - ObjectTypeDB::register_type<VideoStreamTheora>(); + ClassDB::register_class<VideoStreamTheora>(); } void unregister_theora_types() { diff --git a/modules/theora/video_stream_theora.h b/modules/theora/video_stream_theora.h index afb8fc986..bff9d2538 100644 --- a/modules/theora/video_stream_theora.h +++ b/modules/theora/video_stream_theora.h @@ -43,7 +43,7 @@ class VideoStreamPlaybackTheora : public VideoStreamPlayback { - OBJ_TYPE(VideoStreamPlaybackTheora, VideoStreamPlayback); + GDCLASS(VideoStreamPlaybackTheora, VideoStreamPlayback); enum { MAX_FRAMES = 4, @@ -165,7 +165,7 @@ public: class VideoStreamTheora : public VideoStream { - OBJ_TYPE(VideoStreamTheora,VideoStream); + GDCLASS(VideoStreamTheora,VideoStream); String file; int audio_track; |
