mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
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:
@@ -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:
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user