Fix missing include, and missing binds.

This commit is contained in:
Relintai 2021-08-17 12:48:42 +02:00
parent e7e50c0e8a
commit 72e25437bd

View File

@ -41,6 +41,7 @@ SOFTWARE.
#include "../../thread_pool/thread_pool.h" #include "../../thread_pool/thread_pool.h"
#endif #endif
#include "../tiled_wall/tiled_wall_data.h"
#include "../material_cache/prop_material_cache.h" #include "../material_cache/prop_material_cache.h"
#include "core/hashfuncs.h" #include "core/hashfuncs.h"
@ -437,5 +438,14 @@ void PropCache::_bind_methods() {
ClassDB::bind_method(D_METHOD("materials_set"), &PropCache::materials_set); ClassDB::bind_method(D_METHOD("materials_set"), &PropCache::materials_set);
ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "materials", PROPERTY_HINT_NONE, "17/17:Material", PROPERTY_USAGE_DEFAULT, "Material"), "materials_set", "materials_get"); ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "materials", PROPERTY_HINT_NONE, "17/17:Material", PROPERTY_USAGE_DEFAULT, "Material"), "materials_set", "materials_get");
ClassDB::bind_method(D_METHOD("material_cache_get", "prop"), &PropCache::material_cache_get);
ClassDB::bind_method(D_METHOD("material_cache_unref", "prop"), &PropCache::material_cache_unref);
ClassDB::bind_method(D_METHOD("tiled_wall_material_cache_get", "twd"), &PropCache::tiled_wall_material_cache_get);
ClassDB::bind_method(D_METHOD("tiled_wall_material_cache_unref", "twd"), &PropCache::tiled_wall_material_cache_unref);
ClassDB::bind_method(D_METHOD("material_cache_custom_key_get", "key"), &PropCache::material_cache_custom_key_get);
ClassDB::bind_method(D_METHOD("material_cache_custom_key_unref", "key"), &PropCache::material_cache_custom_key_unref);
ClassDB::bind_method(D_METHOD("load_resource", "path", "type_hint"), &PropCache::load_resource, ""); ClassDB::bind_method(D_METHOD("load_resource", "path", "type_hint"), &PropCache::load_resource, "");
} }