| 6 | using namespace OpenVic; |
| 7 | |
| 8 | void MapMesh::_bind_methods() { |
| 9 | ClassDB::bind_method(D_METHOD("set_aspect_ratio", "ratio"), &MapMesh::set_aspect_ratio); |
| 10 | ClassDB::bind_method(D_METHOD("get_aspect_ratio"), &MapMesh::get_aspect_ratio); |
| 11 | |
| 12 | ClassDB::bind_method(D_METHOD("set_repeat_proportion", "proportion"), &MapMesh::set_repeat_proportion); |
| 13 | ClassDB::bind_method(D_METHOD("get_repeat_proportion"), &MapMesh::get_repeat_proportion); |
| 14 | |
| 15 | ClassDB::bind_method(D_METHOD("set_subdivide_width", "divisions"), &MapMesh::set_subdivide_width); |
| 16 | ClassDB::bind_method(D_METHOD("get_subdivide_width"), &MapMesh::get_subdivide_width); |
| 17 | |
| 18 | ClassDB::bind_method(D_METHOD("set_subdivide_depth", "divisions"), &MapMesh::set_subdivide_depth); |
| 19 | ClassDB::bind_method(D_METHOD("get_subdivide_depth"), &MapMesh::get_subdivide_depth); |
| 20 | |
| 21 | ClassDB::bind_method(D_METHOD("get_core_aabb"), &MapMesh::get_core_aabb); |
| 22 | ClassDB::bind_method(D_METHOD("is_valid_uv_coord"), &MapMesh::is_valid_uv_coord); |
| 23 | |
| 24 | ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "aspect_ratio", PROPERTY_HINT_NONE, "suffix:m"), "set_aspect_ratio", "get_aspect_ratio"); |
| 25 | ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "repeat_proportion", PROPERTY_HINT_NONE, "suffix:m"), "set_repeat_proportion", "get_repeat_proportion"); |
| 26 | ADD_PROPERTY(PropertyInfo(Variant::INT, "subdivide_width", PROPERTY_HINT_RANGE, "0,100,1,or_greater"), "set_subdivide_width", "get_subdivide_width"); |
| 27 | ADD_PROPERTY(PropertyInfo(Variant::INT, "subdivide_depth", PROPERTY_HINT_RANGE, "0,100,1,or_greater"), "set_subdivide_depth", "get_subdivide_depth"); |
| 28 | } |
| 29 | |
| 30 | void MapMesh::_request_update() { |
| 31 | // Hack to trigger _update_lightmap_size and _request_update in PrimitiveMesh |
nothing calls this directly
no outgoing calls
no test coverage detected