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()
This commit is contained in:
Juan Linietsky
2017-01-02 23:03:46 -03:00
parent ce26eb74bc
commit 118eed485e
751 changed files with 8046 additions and 7810 deletions

View File

@ -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() {

View File

@ -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;