2021-08-16 17:44:28 +02:00
|
|
|
/*
|
|
|
|
Copyright (c) 2019-2021 Péter Magyar
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
|
|
copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "tiled_wall_data.h"
|
|
|
|
|
|
|
|
#if VERSION_MAJOR < 4
|
|
|
|
#include "servers/physics_server.h"
|
|
|
|
#else
|
|
|
|
#include "servers/physics_server_3d.h"
|
|
|
|
|
|
|
|
#define Shape Shape3D
|
|
|
|
#endif
|
|
|
|
|
2021-08-17 12:40:19 +02:00
|
|
|
#if VERSION_MAJOR <= 3
|
|
|
|
|
|
|
|
#define VARIANT_ARRAY_GET(arr) \
|
|
|
|
Vector<Variant> r; \
|
|
|
|
for (int i = 0; i < arr.size(); i++) { \
|
|
|
|
r.push_back(arr[i]); \
|
|
|
|
} \
|
|
|
|
return r;
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define VARIANT_ARRAY_GET(arr) \
|
|
|
|
Vector<Variant> r; \
|
|
|
|
for (int i = 0; i < arr.size(); i++) { \
|
|
|
|
r.push_back(arr[i].get_ref_ptr()); \
|
|
|
|
} \
|
|
|
|
return r;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define VARIANT_ARRAY_SET(arr, arr_into, type) \
|
|
|
|
arr_into.clear(); \
|
|
|
|
for (int i = 0; i < arr.size(); i++) { \
|
|
|
|
Ref<type> e = Ref<type>(arr[i]); \
|
|
|
|
arr_into.push_back(e); \
|
|
|
|
}
|
|
|
|
|
2021-08-17 13:10:37 +02:00
|
|
|
#include "../material_cache/prop_material_cache.h"
|
|
|
|
|
2021-08-17 02:24:32 +02:00
|
|
|
const String TiledWallData::BINDING_STRING_TILED_WALL_TILING_TYPE = "None,Horizontal,Vertical,Both";
|
|
|
|
|
|
|
|
TiledWallData::TiledWallTilingType TiledWallData::get_tiling_type() const {
|
|
|
|
return _tiling_type;
|
|
|
|
}
|
|
|
|
void TiledWallData::set_tiling_type(const TiledWallData::TiledWallTilingType value) {
|
|
|
|
_tiling_type = value;
|
2021-08-18 16:55:30 +02:00
|
|
|
|
|
|
|
emit_changed();
|
2021-08-17 02:24:32 +02:00
|
|
|
}
|
|
|
|
|
2021-08-17 01:04:00 +02:00
|
|
|
Ref<Texture> TiledWallData::get_texture(const int index) const {
|
|
|
|
ERR_FAIL_INDEX_V(index, _textures.size(), Ref<Texture>());
|
2021-08-16 17:44:28 +02:00
|
|
|
|
2021-08-17 01:04:00 +02:00
|
|
|
return _textures.get(index);
|
2021-08-16 17:44:28 +02:00
|
|
|
}
|
2021-08-17 01:15:20 +02:00
|
|
|
void TiledWallData::set_texture(const int index, const Ref<Texture> &texture) {
|
2021-08-17 01:04:00 +02:00
|
|
|
ERR_FAIL_INDEX(index, _textures.size());
|
2021-08-16 17:44:28 +02:00
|
|
|
|
2021-08-17 01:12:56 +02:00
|
|
|
_textures.set(index, texture);
|
2021-08-18 16:55:30 +02:00
|
|
|
|
|
|
|
emit_changed();
|
2021-08-16 17:44:28 +02:00
|
|
|
}
|
2021-08-17 01:15:20 +02:00
|
|
|
void TiledWallData::add_texture(const Ref<Texture> &texture) {
|
2021-08-17 01:12:56 +02:00
|
|
|
_textures.push_back(texture);
|
2021-08-16 17:44:28 +02:00
|
|
|
}
|
2021-08-17 01:04:00 +02:00
|
|
|
void TiledWallData::remove_texture(const int index) {
|
|
|
|
ERR_FAIL_INDEX(index, _textures.size());
|
2021-08-16 17:44:28 +02:00
|
|
|
|
2021-08-17 01:04:00 +02:00
|
|
|
_textures.remove(index);
|
2021-08-18 16:55:30 +02:00
|
|
|
|
|
|
|
emit_changed();
|
2021-08-16 17:44:28 +02:00
|
|
|
}
|
|
|
|
|
2021-08-17 01:04:00 +02:00
|
|
|
int TiledWallData::get_texture_count() const {
|
|
|
|
return _textures.size();
|
2021-08-16 17:44:28 +02:00
|
|
|
}
|
|
|
|
|
2021-08-17 01:04:00 +02:00
|
|
|
Vector<Variant> TiledWallData::get_textures() {
|
2021-08-16 17:44:28 +02:00
|
|
|
Vector<Variant> r;
|
2021-08-17 01:04:00 +02:00
|
|
|
for (int i = 0; i < _textures.size(); i++) {
|
2021-08-16 17:44:28 +02:00
|
|
|
#if VERSION_MAJOR < 4
|
2021-08-17 01:04:00 +02:00
|
|
|
r.push_back(_textures[i].get_ref_ptr());
|
2021-08-16 17:44:28 +02:00
|
|
|
#else
|
2021-08-17 01:04:00 +02:00
|
|
|
r.push_back(_textures[i]);
|
2021-08-16 17:44:28 +02:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
return r;
|
|
|
|
}
|
2021-08-17 01:12:56 +02:00
|
|
|
void TiledWallData::set_textures(const Vector<Variant> &textures) {
|
2021-08-17 01:04:00 +02:00
|
|
|
_textures.clear();
|
2021-08-17 01:12:56 +02:00
|
|
|
for (int i = 0; i < textures.size(); i++) {
|
|
|
|
Ref<Texture> tex = Ref<Texture>(textures[i]);
|
2021-08-16 17:44:28 +02:00
|
|
|
|
2021-08-17 01:04:00 +02:00
|
|
|
_textures.push_back(tex);
|
2021-08-16 17:44:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-17 01:12:56 +02:00
|
|
|
//flavour_textures
|
|
|
|
Ref<Texture> TiledWallData::get_flavour_texture(const int index) const {
|
|
|
|
ERR_FAIL_INDEX_V(index, _flavour_textures.size(), Ref<Texture>());
|
|
|
|
|
|
|
|
return _flavour_textures.get(index);
|
|
|
|
}
|
2021-08-17 01:15:20 +02:00
|
|
|
void TiledWallData::set_flavour_texture(const int index, const Ref<Texture> &texture) {
|
2021-08-17 01:12:56 +02:00
|
|
|
ERR_FAIL_INDEX(index, _flavour_textures.size());
|
|
|
|
|
|
|
|
_flavour_textures.set(index, texture);
|
2021-08-18 16:55:30 +02:00
|
|
|
|
|
|
|
emit_changed();
|
2021-08-17 01:12:56 +02:00
|
|
|
}
|
2021-08-17 01:15:20 +02:00
|
|
|
void TiledWallData::add_flavour_texture(const Ref<Texture> &texture) {
|
2021-08-17 01:12:56 +02:00
|
|
|
_flavour_textures.push_back(texture);
|
|
|
|
}
|
|
|
|
void TiledWallData::remove_flavour_texture(const int index) {
|
|
|
|
ERR_FAIL_INDEX(index, _flavour_textures.size());
|
|
|
|
|
|
|
|
_flavour_textures.remove(index);
|
2021-08-18 16:55:30 +02:00
|
|
|
|
|
|
|
emit_changed();
|
2021-08-17 01:12:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
int TiledWallData::get_flavour_texture_count() const {
|
|
|
|
return _flavour_textures.size();
|
|
|
|
}
|
|
|
|
|
|
|
|
Vector<Variant> TiledWallData::get_flavour_textures() {
|
|
|
|
Vector<Variant> r;
|
|
|
|
for (int i = 0; i < _flavour_textures.size(); i++) {
|
|
|
|
#if VERSION_MAJOR < 4
|
|
|
|
r.push_back(_flavour_textures[i].get_ref_ptr());
|
|
|
|
#else
|
|
|
|
r.push_back(_flavour_textures[i]);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
return r;
|
|
|
|
}
|
|
|
|
void TiledWallData::set_flavour_textures(const Vector<Variant> &textures) {
|
|
|
|
_flavour_textures.clear();
|
|
|
|
for (int i = 0; i < textures.size(); i++) {
|
|
|
|
Ref<Texture> tex = Ref<Texture>(textures[i]);
|
|
|
|
|
|
|
|
_flavour_textures.push_back(tex);
|
|
|
|
}
|
2021-08-18 16:55:30 +02:00
|
|
|
|
|
|
|
emit_changed();
|
2021-08-17 01:12:56 +02:00
|
|
|
}
|
|
|
|
|
2021-08-18 17:10:45 +02:00
|
|
|
float TiledWallData::get_flavour_chance() const {
|
|
|
|
return _flavour_chance;
|
|
|
|
}
|
|
|
|
void TiledWallData::set_flavour_chance(const float value) {
|
|
|
|
_flavour_chance = value;
|
|
|
|
}
|
|
|
|
|
2021-08-17 12:40:19 +02:00
|
|
|
//materials
|
|
|
|
void TiledWallData::material_add(const Ref<Material> &value) {
|
|
|
|
ERR_FAIL_COND(!value.is_valid());
|
|
|
|
|
|
|
|
_materials.push_back(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
void TiledWallData::material_set(const int index, const Ref<Material> &value) {
|
|
|
|
ERR_FAIL_INDEX(index, _materials.size());
|
|
|
|
|
|
|
|
_materials.set(index, value);
|
2021-08-18 16:55:30 +02:00
|
|
|
|
|
|
|
emit_changed();
|
2021-08-17 12:40:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void TiledWallData::material_remove(const int index) {
|
|
|
|
_materials.remove(index);
|
2021-08-18 16:55:30 +02:00
|
|
|
|
|
|
|
emit_changed();
|
2021-08-17 12:40:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
int TiledWallData::material_get_num() const {
|
|
|
|
return _materials.size();
|
|
|
|
}
|
|
|
|
|
|
|
|
void TiledWallData::materials_clear() {
|
|
|
|
_materials.clear();
|
|
|
|
}
|
|
|
|
|
|
|
|
Vector<Variant> TiledWallData::materials_get() {
|
|
|
|
VARIANT_ARRAY_GET(_materials);
|
|
|
|
}
|
|
|
|
|
|
|
|
void TiledWallData::materials_set(const Vector<Variant> &materials) {
|
|
|
|
_materials.clear();
|
|
|
|
|
|
|
|
for (int i = 0; i < materials.size(); i++) {
|
|
|
|
Ref<Material> material = Ref<Material>(materials[i]);
|
|
|
|
|
|
|
|
_materials.push_back(material);
|
|
|
|
}
|
2021-08-18 16:55:30 +02:00
|
|
|
|
|
|
|
emit_changed();
|
2021-08-17 12:40:19 +02:00
|
|
|
}
|
|
|
|
|
2021-08-16 17:44:28 +02:00
|
|
|
#if TEXTURE_PACKER_PRESENT
|
|
|
|
void TiledWallData::add_textures_into(Ref<TexturePacker> texture_packer) {
|
|
|
|
ERR_FAIL_COND(!texture_packer.is_valid());
|
|
|
|
|
2021-08-17 01:04:00 +02:00
|
|
|
for (int i = 0; i < _textures.size(); ++i) {
|
|
|
|
Ref<Texture> entry = _textures.get(i);
|
2021-08-16 17:44:28 +02:00
|
|
|
|
|
|
|
if (entry.is_valid()) {
|
|
|
|
texture_packer->add_texture(entry);
|
|
|
|
}
|
|
|
|
}
|
2021-08-17 01:12:56 +02:00
|
|
|
|
|
|
|
for (int i = 0; i < _flavour_textures.size(); ++i) {
|
|
|
|
Ref<Texture> entry = _flavour_textures.get(i);
|
|
|
|
|
|
|
|
if (entry.is_valid()) {
|
|
|
|
texture_packer->add_texture(entry);
|
|
|
|
}
|
|
|
|
}
|
2021-08-16 17:44:28 +02:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2021-08-17 13:10:37 +02:00
|
|
|
void TiledWallData::setup_cache(Ref<PropMaterialCache> cache) {
|
2021-08-17 14:56:11 +02:00
|
|
|
//Note: the caller should lock and unlock the cache!
|
|
|
|
|
2021-08-17 13:10:37 +02:00
|
|
|
call("_setup_cache", cache);
|
|
|
|
}
|
|
|
|
void TiledWallData::_setup_cache(Ref<PropMaterialCache> cache) {
|
|
|
|
if (cache->material_get_num() == 0) {
|
|
|
|
for (int i = 0; i < _materials.size(); ++i) {
|
|
|
|
const Ref<Material> &m = _materials[i];
|
|
|
|
|
|
|
|
if (m.is_valid()) {
|
2021-08-18 16:57:11 +02:00
|
|
|
Ref<Material> nm = m->duplicate();
|
|
|
|
|
|
|
|
cache->material_add(nm);
|
2021-08-17 13:10:37 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
for (int i = 0; i < _textures.size(); ++i) {
|
|
|
|
const Ref<Texture> &t = _textures[i];
|
|
|
|
|
|
|
|
if (t.is_valid()) {
|
|
|
|
cache->texture_add(t);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
for (int i = 0; i < _flavour_textures.size(); ++i) {
|
|
|
|
const Ref<Texture> &t = _flavour_textures[i];
|
|
|
|
|
|
|
|
if (t.is_valid()) {
|
|
|
|
cache->texture_add(t);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-17 02:24:32 +02:00
|
|
|
void TiledWallData::copy_from(const Ref<TiledWallData> &tiled_wall_data) {
|
2021-08-17 12:30:57 +02:00
|
|
|
ERR_FAIL_COND(!tiled_wall_data.is_valid());
|
|
|
|
|
|
|
|
_tiling_type = tiled_wall_data->_tiling_type;
|
|
|
|
|
2021-08-17 01:04:00 +02:00
|
|
|
_textures.clear();
|
2021-08-16 17:44:28 +02:00
|
|
|
|
2021-08-17 02:24:32 +02:00
|
|
|
for (int i = 0; i < tiled_wall_data->_textures.size(); ++i) {
|
|
|
|
_textures.push_back(tiled_wall_data->_textures[i]);
|
2021-08-16 17:44:28 +02:00
|
|
|
}
|
|
|
|
|
2021-08-17 01:12:56 +02:00
|
|
|
_flavour_textures.clear();
|
|
|
|
|
2021-08-17 02:24:32 +02:00
|
|
|
for (int i = 0; i < tiled_wall_data->_flavour_textures.size(); ++i) {
|
|
|
|
_flavour_textures.push_back(tiled_wall_data->_flavour_textures[i]);
|
2021-08-17 01:12:56 +02:00
|
|
|
}
|
|
|
|
|
2021-08-16 17:44:28 +02:00
|
|
|
emit_changed();
|
|
|
|
}
|
|
|
|
|
|
|
|
TiledWallData::TiledWallData() {
|
2021-08-17 02:24:32 +02:00
|
|
|
_tiling_type = TILED_WALL_TILING_TYPE_NONE;
|
2021-08-18 17:10:45 +02:00
|
|
|
_flavour_chance = 0.15;
|
2021-08-16 17:44:28 +02:00
|
|
|
}
|
|
|
|
TiledWallData::~TiledWallData() {
|
2021-08-17 01:04:00 +02:00
|
|
|
_textures.clear();
|
2021-08-17 01:12:56 +02:00
|
|
|
_flavour_textures.clear();
|
2021-08-17 12:40:19 +02:00
|
|
|
_materials.clear();
|
2021-08-16 17:44:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void TiledWallData::_bind_methods() {
|
2021-08-17 02:24:32 +02:00
|
|
|
ClassDB::bind_method(D_METHOD("get_tiling_type"), &TiledWallData::get_tiling_type);
|
|
|
|
ClassDB::bind_method(D_METHOD("set_tiling_type", "texture"), &TiledWallData::set_tiling_type);
|
2021-08-18 16:06:49 +02:00
|
|
|
ADD_PROPERTY(PropertyInfo(Variant::INT, "tiling_type", PROPERTY_HINT_ENUM, TiledWallData::BINDING_STRING_TILED_WALL_TILING_TYPE), "set_tiling_type", "get_tiling_type");
|
2021-08-17 02:24:32 +02:00
|
|
|
|
2021-08-17 01:12:56 +02:00
|
|
|
//textures
|
2021-08-17 01:04:00 +02:00
|
|
|
ClassDB::bind_method(D_METHOD("get_texture", "index"), &TiledWallData::get_texture);
|
|
|
|
ClassDB::bind_method(D_METHOD("set_texture", "index", "texture"), &TiledWallData::set_texture);
|
|
|
|
ClassDB::bind_method(D_METHOD("add_texture", "texture"), &TiledWallData::add_texture);
|
|
|
|
ClassDB::bind_method(D_METHOD("remove_texture", "index"), &TiledWallData::remove_texture);
|
2021-08-16 17:44:28 +02:00
|
|
|
|
2021-08-17 01:04:00 +02:00
|
|
|
ClassDB::bind_method(D_METHOD("get_texture_count"), &TiledWallData::get_texture_count);
|
2021-08-16 17:44:28 +02:00
|
|
|
|
2021-08-17 01:04:00 +02:00
|
|
|
ClassDB::bind_method(D_METHOD("get_textures"), &TiledWallData::get_textures);
|
|
|
|
ClassDB::bind_method(D_METHOD("set_textures", "textures"), &TiledWallData::set_textures);
|
|
|
|
ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "textures", PROPERTY_HINT_NONE, "17/17:Texture", PROPERTY_USAGE_DEFAULT, "Texture"), "set_textures", "get_textures");
|
2021-08-16 17:44:28 +02:00
|
|
|
|
2021-08-17 01:12:56 +02:00
|
|
|
//flavour_textures
|
|
|
|
ClassDB::bind_method(D_METHOD("get_flavour_texture", "index"), &TiledWallData::get_flavour_texture);
|
|
|
|
ClassDB::bind_method(D_METHOD("set_flavour_texture", "index", "texture"), &TiledWallData::set_flavour_texture);
|
|
|
|
ClassDB::bind_method(D_METHOD("add_tflavour_exture", "texture"), &TiledWallData::add_flavour_texture);
|
|
|
|
ClassDB::bind_method(D_METHOD("remove_flavour_texture", "index"), &TiledWallData::remove_flavour_texture);
|
|
|
|
|
|
|
|
ClassDB::bind_method(D_METHOD("get_flavour_texture_count"), &TiledWallData::get_flavour_texture_count);
|
|
|
|
|
|
|
|
ClassDB::bind_method(D_METHOD("get_flavour_textures"), &TiledWallData::get_flavour_textures);
|
|
|
|
ClassDB::bind_method(D_METHOD("set_flavour_textures", "textures"), &TiledWallData::set_flavour_textures);
|
2021-08-17 02:24:32 +02:00
|
|
|
ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "flavour_textures", PROPERTY_HINT_NONE, "17/17:Texture", PROPERTY_USAGE_DEFAULT, "Texture"), "set_flavour_textures", "get_flavour_textures");
|
2021-08-17 01:12:56 +02:00
|
|
|
|
2021-08-18 17:10:45 +02:00
|
|
|
ClassDB::bind_method(D_METHOD("get_flavour_chance"), &TiledWallData::get_flavour_chance);
|
|
|
|
ClassDB::bind_method(D_METHOD("set_flavour_chance", "texture"), &TiledWallData::set_flavour_chance);
|
|
|
|
ADD_PROPERTY(PropertyInfo(Variant::REAL, "flavour_chance"), "set_flavour_chance", "get_flavour_chance");
|
|
|
|
|
2021-08-17 12:40:19 +02:00
|
|
|
//materials
|
|
|
|
ClassDB::bind_method(D_METHOD("material_add", "value"), &TiledWallData::material_add);
|
|
|
|
ClassDB::bind_method(D_METHOD("material_set", "index", "value"), &TiledWallData::material_set);
|
|
|
|
ClassDB::bind_method(D_METHOD("material_remove", "index"), &TiledWallData::material_remove);
|
|
|
|
ClassDB::bind_method(D_METHOD("material_get_num"), &TiledWallData::material_get_num);
|
|
|
|
ClassDB::bind_method(D_METHOD("materials_clear"), &TiledWallData::materials_clear);
|
|
|
|
|
|
|
|
ClassDB::bind_method(D_METHOD("materials_get"), &TiledWallData::materials_get);
|
|
|
|
ClassDB::bind_method(D_METHOD("materials_set"), &TiledWallData::materials_set);
|
|
|
|
ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "materials", PROPERTY_HINT_NONE, "17/17:Material", PROPERTY_USAGE_DEFAULT, "Material"), "materials_set", "materials_get");
|
|
|
|
|
2021-08-16 17:44:28 +02:00
|
|
|
#if TEXTURE_PACKER_PRESENT
|
|
|
|
ClassDB::bind_method(D_METHOD("add_textures_into", "texture_packer"), &TiledWallData::add_textures_into);
|
|
|
|
#endif
|
|
|
|
|
2021-08-17 13:10:37 +02:00
|
|
|
BIND_VMETHOD(MethodInfo("_setup_cache", PropertyInfo(Variant::OBJECT, "cache", PROPERTY_HINT_RESOURCE_TYPE, "PropMaterialCache")));
|
|
|
|
|
|
|
|
ClassDB::bind_method(D_METHOD("setup_cache", "cache"), &TiledWallData::setup_cache);
|
|
|
|
ClassDB::bind_method(D_METHOD("_setup_cache", "cache"), &TiledWallData::_setup_cache);
|
|
|
|
|
2021-08-16 17:44:28 +02:00
|
|
|
ClassDB::bind_method(D_METHOD("copy_from", "prop_data"), &TiledWallData::copy_from);
|
2021-08-17 02:24:32 +02:00
|
|
|
|
|
|
|
BIND_ENUM_CONSTANT(TILED_WALL_TILING_TYPE_NONE);
|
|
|
|
BIND_ENUM_CONSTANT(TILED_WALL_TILING_TYPE_HORIZONTAL);
|
|
|
|
BIND_ENUM_CONSTANT(TILED_WALL_TILING_TYPE_VERTICAL);
|
|
|
|
BIND_ENUM_CONSTANT(TILED_WALL_TILING_TYPE_BOTH);
|
2021-08-16 17:44:28 +02:00
|
|
|
}
|