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:
parent
ce26eb74bc
commit
118eed485e
751 changed files with 8046 additions and 7810 deletions
|
|
@ -222,7 +222,7 @@ Error ResourceSaverPNG::save_image(const String &p_path, Image &p_img) {
|
|||
|
||||
bool ResourceSaverPNG::recognize(const RES& p_resource) const {
|
||||
|
||||
return (p_resource.is_valid() && p_resource->is_type("ImageTexture"));
|
||||
return (p_resource.is_valid() && p_resource->is_class("ImageTexture"));
|
||||
}
|
||||
void ResourceSaverPNG::get_recognized_extensions(const RES& p_resource,List<String> *p_extensions) const{
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
#if defined(UNIX_ENABLED) || defined(WINDOWS_ENABLED)
|
||||
|
||||
class IP_Unix : public IP {
|
||||
OBJ_TYPE(IP_Unix, IP);
|
||||
GDCLASS(IP_Unix, IP);
|
||||
|
||||
virtual IP_Address _resolve_hostname(const String& p_hostname, IP::Type p_type);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue