Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–842 unchanged (842 lines)
843 source.value->remove_terrain(p_terrain_set, p_index);
844 }
845 notify_property_list_changed();
846 terrains_cache_dirty = true;
847 emit_changed();
848}
849
850void TileSet::set_terrain_name(int p_terrain_set, int p_terrain_index, String p_name) {
851 ERR_FAIL_INDEX(p_terrain_set, terrain_sets.size());
852 ERR_FAIL_INDEX(p_terrain_index, terrain_sets[p_terrain_set].terrains.size());
853 terrain_sets.write[p_terrain_set].terrains.write[p_terrain_index].name = p_name;
854 emit_changed();
855}
…lines 856–4310 unchanged (3455 lines)
4311 ClassDB::bind_method(D_METHOD("get_terrain_set_mode", "terrain_set"), &TileSet::get_terrain_set_mode);
4312
4313 ClassDB::bind_method(D_METHOD("get_terrains_count", "terrain_set"), &TileSet::get_terrains_count);
4314 ClassDB::bind_method(D_METHOD("add_terrain", "terrain_set", "to_position"), &TileSet::add_terrain, DEFVAL(-1));
4315 ClassDB::bind_method(D_METHOD("move_terrain", "terrain_set", "terrain_index", "to_position"), &TileSet::move_terrain);
4316 ClassDB::bind_method(D_METHOD("remove_terrain", "terrain_set", "terrain_index"), &TileSet::remove_terrain);
4317 ClassDB::bind_method(D_METHOD("set_terrain_name", "terrain_set", "terrain_index", "name"), &TileSet::set_terrain_name);
4318 ClassDB::bind_method(D_METHOD("get_terrain_name", "terrain_set", "terrain_index"), &TileSet::get_terrain_name);
4319 ClassDB::bind_method(D_METHOD("set_terrain_color", "terrain_set", "terrain_index", "color"), &TileSet::set_terrain_color);
4320 ClassDB::bind_method(D_METHOD("get_terrain_color", "terrain_set", "terrain_index"), &TileSet::get_terrain_color);
4321
4322#ifndef NAVIGATION_2D_DISABLED
4323 // Navigation
…lines 4324–7193 unchanged (2870 lines)

After

…lines 1–843 unchanged (843 lines)
844 }
845 notify_property_list_changed();
846 terrains_cache_dirty = true;
847 emit_changed();
848}
849
850void TileSet::clear_terrains(int p_terrain_set) {
851 ERR_FAIL_INDEX(p_terrain_set, terrain_sets.size());
852 Vector<Terrain> &terrains = terrain_sets.write[p_terrain_set].terrains;
853
854 int terrain_count = terrains.size();
855 for (KeyValue<int, Ref<TileSetSource>> source : sources) {
856 for (int i = terrain_count - 1; i >= 0; i--) {
857 source.value->remove_terrain(p_terrain_set, i);
858 }
859 }
860 terrains.clear();
861 notify_property_list_changed();
862 terrains_cache_dirty = true;
863 emit_changed();
864}
865
866void TileSet::set_terrain_name(int p_terrain_set, int p_terrain_index, String p_name) {
867 ERR_FAIL_INDEX(p_terrain_set, terrain_sets.size());
868 ERR_FAIL_INDEX(p_terrain_index, terrain_sets[p_terrain_set].terrains.size());
869 terrain_sets.write[p_terrain_set].terrains.write[p_terrain_index].name = p_name;
870 emit_changed();
…lines 871–4326 unchanged (3456 lines)
4327 ClassDB::bind_method(D_METHOD("get_terrain_set_mode", "terrain_set"), &TileSet::get_terrain_set_mode);
4328
4329 ClassDB::bind_method(D_METHOD("get_terrains_count", "terrain_set"), &TileSet::get_terrains_count);
4330 ClassDB::bind_method(D_METHOD("add_terrain", "terrain_set", "to_position"), &TileSet::add_terrain, DEFVAL(-1));
4331 ClassDB::bind_method(D_METHOD("move_terrain", "terrain_set", "terrain_index", "to_position"), &TileSet::move_terrain);
4332 ClassDB::bind_method(D_METHOD("remove_terrain", "terrain_set", "terrain_index"), &TileSet::remove_terrain);
4333 ClassDB::bind_method(D_METHOD("clear_terrains", "terrain_set"), &TileSet::clear_terrains);
4334 ClassDB::bind_method(D_METHOD("set_terrain_name", "terrain_set", "terrain_index", "name"), &TileSet::set_terrain_name);
4335 ClassDB::bind_method(D_METHOD("get_terrain_name", "terrain_set", "terrain_index"), &TileSet::get_terrain_name);
4336 ClassDB::bind_method(D_METHOD("set_terrain_color", "terrain_set", "terrain_index", "color"), &TileSet::set_terrain_color);
4337 ClassDB::bind_method(D_METHOD("get_terrain_color", "terrain_set", "terrain_index"), &TileSet::get_terrain_color);
4338
4339#ifndef NAVIGATION_2D_DISABLED
…lines 4340–7210 unchanged (2871 lines)

Before

translation_unit
comment "/***********************************************************"...
comment "/* tile_set.cpp "...
comment "/***********************************************************"...
comment "/* This file is part of: "...
comment "/* GODOT ENGINE "...
comment "/* https://godotengine.org "...
comment "/***********************************************************"...
comment "/* Copyright (c) 2014-present Godot Engine contributors (see"...
comment "/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. "...
comment "/* "...
comment "/* Permission is hereby granted, free of charge, to any pers"...
comment "/* a copy of this software and associated documentation file"...
comment "/* \"Software\"), to deal in the Software without restriction,"...
comment "/* without limitation the rights to use, copy, modify, merge"...
comment "/* distribute, sublicense, and/or sell copies of the Softwar"...
comment "/* permit persons to whom the Software is furnished to do so"...
comment "/* the following conditions: "...
comment "/* "...
comment "/* The above copyright notice and this permission notice sha"...
comment "/* included in all copies or substantial portions of the Sof"...
comment "/* "...
comment "/* THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY"...
comment "/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARR"...
comment "/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON"...
comment "/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIA"...
comment "/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION O"...
comment "/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION "...
comment "/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. "...
comment "/***********************************************************"...
preproc_include
#include "#include"
string_literal
" "\""
string_content "tile_set.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "tile_set.compat.inc"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "core/config/engine.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "core/io/marshalls.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "core/math/geometry_2d.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "core/object/callable_mp.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "core/object/class_db.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "core/templates/local_vector.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "core/templates/rb_set.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "scene/gui/control.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "scene/resources/image_texture.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "scene/resources/mesh.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "servers/rendering/rendering_server.h"
" "\""
comment "/////////////////////////////// TileMapPattern /////////////"...
function_definition (+466 nodes collapsed)
function_definition (+288 nodes collapsed)
function_definition (+120 nodes collapsed)
function_definition (+34 nodes collapsed)
function_definition (+130 nodes collapsed)
function_definition (+57 nodes collapsed)
function_definition (+61 nodes collapsed)
function_definition (+57 nodes collapsed)
function_definition (+121 nodes collapsed)
function_definition
type_identifier "Size2i"
function_declarator
qualified_identifier
namespace_identifier "TileMapPattern"
:: "::"
identifier "get_size"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "size"
; ";"
} "}"
function_definition (+119 nodes collapsed)
function_definition (+26 nodes collapsed)
function_definition (+40 nodes collapsed)
function_definition (+79 nodes collapsed)
function_definition (+61 nodes collapsed)
function_definition (+61 nodes collapsed)
function_definition (+358 nodes collapsed)
comment "/////////////////////////////// TileSet ////////////////////"...
function_definition (+22 nodes collapsed)
function_definition (+25 nodes collapsed)
function_definition (+204 nodes collapsed)
function_definition (+141 nodes collapsed)
function_definition (+36 nodes collapsed)
function_definition (+22 nodes collapsed)
function_definition (+136 nodes collapsed)
function_definition (+66 nodes collapsed)
function_definition (+123 nodes collapsed)
function_definition (+91 nodes collapsed)
function_definition (+111 nodes collapsed)
declaration
type_qualifier
const "const"
primitive_type "int"
init_declarator
qualified_identifier
namespace_identifier "TileSet"
:: "::"
identifier "INVALID_SOURCE"
= "="
number_literal "-1"
; ";"
declaration (+179 nodes collapsed)
comment "// -- Shape and layout --"
function_definition (+92 nodes collapsed)
function_definition (+22 nodes collapsed)
function_definition (+32 nodes collapsed)
function_definition (+22 nodes collapsed)
function_definition (+85 nodes collapsed)
function_definition (+22 nodes collapsed)
function_definition (+64 nodes collapsed)
function_definition
type_identifier "Size2i"
function_declarator
qualified_identifier
namespace_identifier "TileSet"
:: "::"
identifier "get_tile_size"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "tile_size"
; ";"
} "}"
function_definition
primitive_type "int"
function_declarator
qualified_identifier
namespace_identifier "TileSet"
:: "::"
identifier "get_next_source_id"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "next_source_id"
; ";"
} "}"
function_definition (+603 nodes collapsed)
function_definition (+48 nodes collapsed)
comment "// Sources management"
function_definition (+289 nodes collapsed)
function_definition (+136 nodes collapsed)
function_definition (+102 nodes collapsed)
function_definition (+183 nodes collapsed)
function_definition (+30 nodes collapsed)
function_definition (+66 nodes collapsed)
function_definition (+26 nodes collapsed)
function_definition (+49 nodes collapsed)
comment "// Rendering"
function_definition (+44 nodes collapsed)
function_definition
primitive_type "bool"
function_declarator
qualified_identifier
namespace_identifier "TileSet"
:: "::"
identifier "is_uv_clipping"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "uv_clipping"
; ";"
} "}"
function_definition (+26 nodes collapsed)
function_definition (+132 nodes collapsed)
function_definition (+153 nodes collapsed)
function_definition (+98 nodes collapsed)
function_definition (+61 nodes collapsed)
function_definition (+49 nodes collapsed)
function_definition (+61 nodes collapsed)
function_definition (+49 nodes collapsed)
preproc_ifdef (+868 nodes collapsed)
comment "// PHYSICS_2D_DISABLED"
comment "// Terrains"
function_definition (+26 nodes collapsed)
function_definition (+138 nodes collapsed)
function_definition (+159 nodes collapsed)
function_definition (+104 nodes collapsed)
function_definition (+115 nodes collapsed)
function_definition (+55 nodes collapsed)
function_definition (+56 nodes collapsed)
function_definition (+299 nodes collapsed)
function_definition (+208 nodes collapsed)
function_definition (+153 nodes collapsed)
function_definition (+101 nodes collapsed)
function_definition (+96 nodes collapsed)
function_definition (+136 nodes collapsed)
function_definition (+96 nodes collapsed)
function_definition (+725 nodes collapsed)
function_definition (+77 nodes collapsed)
preproc_ifdef (+733 nodes collapsed)
comment "// NAVIGATION_2D_DISABLED"
comment "// Custom data."
function_definition (+26 nodes collapsed)
function_definition (+132 nodes collapsed)
function_definition (+153 nodes collapsed)
function_definition (+184 nodes collapsed)
function_definition (+53 nodes collapsed)
function_definition (+201 nodes collapsed)
function_definition (+34 nodes collapsed)
function_definition (+51 nodes collapsed)
function_definition (+105 nodes collapsed)
function_definition (+55 nodes collapsed)
function_definition (+61 nodes collapsed)
function_definition (+48 nodes collapsed)
function_definition (+28 nodes collapsed)
function_definition (+52 nodes collapsed)
function_definition (+116 nodes collapsed)
function_definition (+65 nodes collapsed)
function_definition (+44 nodes collapsed)
function_definition (+68 nodes collapsed)
function_definition (+128 nodes collapsed)
function_definition (+71 nodes collapsed)
function_definition (+50 nodes collapsed)
function_definition (+74 nodes collapsed)
function_definition (+90 nodes collapsed)
function_definition (+90 nodes collapsed)
function_definition (+90 nodes collapsed)
function_definition (+252 nodes collapsed)
function_definition (+485 nodes collapsed)
function_definition (+50 nodes collapsed)
function_definition (+178 nodes collapsed)
function_definition (+65 nodes collapsed)
function_definition (+56 nodes collapsed)
function_definition (+24 nodes collapsed)
function_definition (+129 nodes collapsed)
function_definition (+87 nodes collapsed)
function_definition (+427 nodes collapsed)
function_definition (+475 nodes collapsed)
function_definition (+523 nodes collapsed)
function_definition (+829 nodes collapsed)
function_definition (+1955 nodes collapsed)
function_definition (+334 nodes collapsed)
function_definition (+4762 nodes collapsed)
function_definition (+519 nodes collapsed)
function_definition (+358 nodes collapsed)
function_definition (+458 nodes collapsed)
function_definition (+144 nodes collapsed)
function_definition (+393 nodes collapsed)
preproc_def
#define "#define"
identifier "TERRAIN_ALPHA"
preproc_arg "0.6"
function_definition (+1414 nodes collapsed)
function_definition (+1325 nodes collapsed)
function_definition (+26 nodes collapsed)
function_definition (+120 nodes collapsed)
function_definition (+372 nodes collapsed)
function_definition (+617 nodes collapsed)
function_definition (+449 nodes collapsed)
function_definition (+91 nodes collapsed)
function_definition (+825 nodes collapsed)
function_definition (+617 nodes collapsed)
function_definition (+449 nodes collapsed)
function_definition (+272 nodes collapsed)
function_definition (+1918 nodes collapsed)
function_definition (+1254 nodes collapsed)
function_definition (+920 nodes collapsed)
function_definition (+289 nodes collapsed)
function_definition (+1430 nodes collapsed)
declaration
type_qualifier
const "const"
type_identifier "Vector2i"
init_declarator
qualified_identifier
namespace_identifier "TileSetSource"
:: "::"
identifier "INVALID_ATLAS_COORDS"
= "="
call_expression
identifier "Vector2i"
argument_list
( "("
number_literal "-1"
, ","
number_literal "-1"
) ")"
; ";"
declaration
type_qualifier
const "const"
primitive_type "int"
init_declarator
qualified_identifier
namespace_identifier "TileSetSource"
:: "::"
identifier "INVALID_TILE_ALTERNATIVE"
= "="
number_literal "-1"
; ";"
preproc_ifdef (+3381 nodes collapsed)
comment "// DISABLE_DEPRECATED"
ERROR
primitive_type "bool"
function_declarator (+23 nodes collapsed)
{ "{"
declaration (+33 nodes collapsed)
#ifndef "#ifndef"
identifier "DISABLE_DEPRECATED"
comment "// TODO: This should be moved to a dedicated conversion syst"...
if_statement (+4038 nodes collapsed)
function_definition (+1828 nodes collapsed)
function_definition (+1386 nodes collapsed)
function_definition (+128 nodes collapsed)
function_definition
primitive_type "void"
function_declarator
qualified_identifier
namespace_identifier "TileSet"
:: "::"
identifier "_bind_methods"
parameter_list
( "("
) ")"
compound_statement
{ "{"
comment "// Sources management."
expression_statement (+26 nodes collapsed)
expression_statement (+46 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+26 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+31 nodes collapsed)
comment "// Shape and layout."
expression_statement (+31 nodes collapsed)
expression_statement (+26 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+26 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+26 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+26 nodes collapsed)
expression_statement (+38 nodes collapsed)
expression_statement (+38 nodes collapsed)
expression_statement (+38 nodes collapsed)
expression_statement (+38 nodes collapsed)
comment "// Rendering."
expression_statement (+31 nodes collapsed)
expression_statement (+26 nodes collapsed)
expression_statement (+26 nodes collapsed)
expression_statement (+38 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+31 nodes collapsed)
preproc_ifdef (+404 nodes collapsed)
comment "// PHYSICS_2D_DISABLED"
comment "// Terrains"
expression_statement (+26 nodes collapsed)
expression_statement (+38 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+43 nodes collapsed)
expression_statement (+41 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+41 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+41 nodes collapsed)
expression_statement (+36 nodes collapsed)
preproc_ifdef (+280 nodes collapsed)
comment "// NAVIGATION_2D_DISABLED"
comment "// Custom data"
expression_statement (+26 nodes collapsed)
expression_statement (+38 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+31 nodes collapsed)
comment "// Tile proxies"
expression_statement (+36 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+46 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+56 nodes collapsed)
expression_statement (+41 nodes collapsed)
expression_statement (+41 nodes collapsed)
expression_statement (+41 nodes collapsed)
expression_statement (+41 nodes collapsed)
expression_statement (+26 nodes collapsed)
expression_statement (+26 nodes collapsed)
comment "// Patterns"
expression_statement (+43 nodes collapsed)
expression_statement (+38 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+26 nodes collapsed)
expression_statement
call_expression
identifier "ADD_GROUP"
argument_list
( "("
string_literal
" "\""
string_content "Rendering"
" "\""
, ","
string_literal
" "\""
" "\""
) ")"
; ";"
expression_statement (+31 nodes collapsed)
expression_statement
call_expression
identifier "ADD_ARRAY"
argument_list
( "("
string_literal
" "\""
string_content "occlusion_layers"
" "\""
, ","
string_literal
" "\""
string_content "occlusion_layer_"
" "\""
) ")"
; ";"
expression_statement
call_expression
identifier "ADD_GROUP"
argument_list
( "("
string_literal
" "\""
" "\""
, ","
string_literal
" "\""
" "\""
) ")"
; ";"
expression_statement
call_expression
identifier "ADD_ARRAY"
argument_list
( "("
string_literal
" "\""
string_content "physics_layers"
" "\""
, ","
string_literal
" "\""
string_content "physics_layer_"
" "\""
) ")"
; ";"
expression_statement
call_expression
identifier "ADD_ARRAY"
argument_list
( "("
string_literal
" "\""
string_content "terrain_sets"
" "\""
, ","
string_literal
" "\""
string_content "terrain_set_"
" "\""
) ")"
; ";"
preproc_ifdef
#ifndef "#ifndef"
identifier "NAVIGATION_2D_DISABLED"
expression_statement
call_expression
identifier "ADD_ARRAY"
argument_list
( "("
string_literal
" "\""
string_content "navigation_layers"
" "\""
, ","
string_literal
" "\""
string_content "navigation_layer_"
" "\""
) ")"
; ";"
#endif "#endif"
comment "// NAVIGATION_2D_DISABLED"
expression_statement
call_expression
identifier "ADD_ARRAY"
argument_list
( "("
string_literal
" "\""
string_content "custom_data_layers"
" "\""
, ","
string_literal
" "\""
string_content "custom_data_layer_"
" "\""
) ")"
; ";"
comment "// -- Enum binding --"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_SHAPE_SQUARE"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_SHAPE_ISOMETRIC"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_SHAPE_HALF_OFFSET_SQUARE"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_SHAPE_HEXAGON"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_LAYOUT_STACKED"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_LAYOUT_STACKED_OFFSET"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_LAYOUT_STAIRS_RIGHT"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_LAYOUT_STAIRS_DOWN"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_LAYOUT_DIAMOND_RIGHT"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_LAYOUT_DIAMOND_DOWN"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_OFFSET_AXIS_HORIZONTAL"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_OFFSET_AXIS_VERTICAL"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_RIGHT_SIDE"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_RIGHT_CORNER"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_BOTTOM_RIGHT_SIDE"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_BOTTOM_RIGHT_CORNER"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_BOTTOM_SIDE"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_BOTTOM_CORNER"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_BOTTOM_LEFT_SIDE"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_BOTTOM_LEFT_CORNER"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_LEFT_SIDE"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_LEFT_CORNER"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_TOP_LEFT_SIDE"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_TOP_LEFT_CORNER"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_TOP_SIDE"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_TOP_CORNER"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_TOP_RIGHT_SIDE"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_TOP_RIGHT_CORNER"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TERRAIN_MODE_MATCH_CORNERS_AND_SIDES"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TERRAIN_MODE_MATCH_CORNERS"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TERRAIN_MODE_MATCH_SIDES"
) ")"
; ";"
} "}"
function_definition (+33 nodes collapsed)
function_definition (+87 nodes collapsed)
comment "/////////////////////////////// TileSetSource //////////////"...
function_definition (+26 nodes collapsed)
function_definition (+28 nodes collapsed)
function_definition
primitive_type "void"
function_declarator
qualified_identifier
namespace_identifier "TileSetSource"
:: "::"
identifier "reset_state"
parameter_list
( "("
) ")"
compound_statement
{ "{"
expression_statement
assignment_expression
identifier "tile_set"
= "="
null
nullptr "nullptr"
; ";"
} "}"
function_definition (+206 nodes collapsed)
comment "/////////////////////////////// TileSetAtlasSource /////////"...
function_definition (+93 nodes collapsed)
function_definition (+23 nodes collapsed)
function_definition (+79 nodes collapsed)
function_definition (+78 nodes collapsed)
function_definition (+84 nodes collapsed)
function_definition (+78 nodes collapsed)
preproc_ifdef (+244 nodes collapsed)
comment "// PHYSICS_2D_DISABLED"
function_definition (+78 nodes collapsed)
function_definition (+84 nodes collapsed)
function_definition (+78 nodes collapsed)
function_definition (+84 nodes collapsed)
function_definition (+90 nodes collapsed)
function_definition (+84 nodes collapsed)
preproc_ifdef (+244 nodes collapsed)
comment "// NAVIGATION_2D_DISABLED"
function_definition (+78 nodes collapsed)
function_definition (+84 nodes collapsed)
function_definition (+78 nodes collapsed)
function_definition (+122 nodes collapsed)
function_definition (+120 nodes collapsed)
function_definition (+25 nodes collapsed)
function_definition (+90 nodes collapsed)
function_definition
type_identifier "Vector2i"
function_declarator
qualified_identifier
namespace_identifier "TileSetAtlasSource"
:: "::"
identifier "get_margins"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "margins"
; ";"
} "}"
function_definition (+90 nodes collapsed)
function_definition
type_identifier "Vector2i"
function_declarator
qualified_identifier
namespace_identifier "TileSetAtlasSource"
:: "::"
identifier "get_separation"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "separation"
; ";"
} "}"
function_definition (+90 nodes collapsed)
function_definition
type_identifier "Vector2i"
function_declarator
qualified_identifier
namespace_identifier "TileSetAtlasSource"
:: "::"
identifier "get_texture_region_size"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "texture_region_size"
; ";"
} "}"
function_definition (+51 nodes collapsed)
function_definition
primitive_type "bool"
function_declarator
qualified_identifier
namespace_identifier "TileSetAtlasSource"
:: "::"
identifier "get_use_texture_padding"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "use_texture_padding"
; ";"
} "}"
function_definition (+172 nodes collapsed)
function_definition (+970 nodes collapsed)
function_definition (+801 nodes collapsed)
function_definition (+975 nodes collapsed)
function_definition (+329 nodes collapsed)
function_definition (+153 nodes collapsed)
function_definition (+30 nodes collapsed)
function_definition (+50 nodes collapsed)
function_definition (+179 nodes collapsed)
function_definition (+69 nodes collapsed)
function_definition (+193 nodes collapsed)
function_definition (+73 nodes collapsed)
function_definition (+89 nodes collapsed)
function_definition (+69 nodes collapsed)
function_definition (+81 nodes collapsed)
function_definition (+72 nodes collapsed)
function_definition (+262 nodes collapsed)
function_definition (+76 nodes collapsed)
function_definition (+128 nodes collapsed)
function_definition (+110 nodes collapsed)
function_definition (+97 nodes collapsed)
function_definition (+74 nodes collapsed)
function_definition (+26 nodes collapsed)
function_definition (+49 nodes collapsed)
function_definition (+333 nodes collapsed)
function_definition (+113 nodes collapsed)
function_definition (+139 nodes collapsed)
function_definition (+150 nodes collapsed)
function_definition (+439 nodes collapsed)
function_definition (+252 nodes collapsed)
function_definition (+135 nodes collapsed)
function_definition (+138 nodes collapsed)
function_definition (+34 nodes collapsed)
comment "// Getters for texture and tile region (padded or not)"
function_definition (+43 nodes collapsed)
function_definition (+262 nodes collapsed)
function_definition (+322 nodes collapsed)
function_definition (+333 nodes collapsed)
function_definition (+213 nodes collapsed)
function_definition (+290 nodes collapsed)
function_definition (+86 nodes collapsed)
function_definition (+72 nodes collapsed)
function_definition (+76 nodes collapsed)
function_definition (+122 nodes collapsed)
function_definition (+140 nodes collapsed)
function_definition (+34 nodes collapsed)
function_definition (+1681 nodes collapsed)
function_definition (+78 nodes collapsed)
function_definition (+136 nodes collapsed)
function_definition (+129 nodes collapsed)
function_definition (+120 nodes collapsed)
function_definition (+331 nodes collapsed)
function_definition (+289 nodes collapsed)
function_definition (+53 nodes collapsed)
function_definition (+1030 nodes collapsed)
function_definition (+454 nodes collapsed)
function_definition (+31 nodes collapsed)
comment "/////////////////////////////// TileSetScenesCollectionSourc"...
function_definition (+48 nodes collapsed)
function_definition (+31 nodes collapsed)
function_definition
primitive_type "int"
function_declarator
qualified_identifier
namespace_identifier "TileSetScenesCollectionSource"
:: "::"
identifier "get_tiles_count"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
number_literal "1"
; ";"
} "}"
function_definition (+42 nodes collapsed)
function_definition (+29 nodes collapsed)
function_definition (+31 nodes collapsed)
function_definition (+75 nodes collapsed)
function_definition (+61 nodes collapsed)
function_definition (+141 nodes collapsed)
function_definition (+147 nodes collapsed)
function_definition (+292 nodes collapsed)
function_definition (+81 nodes collapsed)
function_definition (+59 nodes collapsed)
function_definition (+64 nodes collapsed)
function_definition (+63 nodes collapsed)
function_definition
primitive_type "int"
function_declarator
qualified_identifier
namespace_identifier "TileSetScenesCollectionSource"
:: "::"
identifier "get_next_scene_tile_id"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "next_scene_id"
; ";"
} "}"
function_definition (+293 nodes collapsed)
function_definition (+264 nodes collapsed)
function_definition (+219 nodes collapsed)
function_definition (+34 nodes collapsed)
function_definition (+371 nodes collapsed)
comment "/////////////////////////////// TileData ///////////////////"...
function_definition (+33 nodes collapsed)
function_definition (+403 nodes collapsed)
function_definition (+78 nodes collapsed)
function_definition (+97 nodes collapsed)
function_definition (+44 nodes collapsed)
preproc_ifdef (+223 nodes collapsed)
comment "// PHYSICS_2D_DISABLED"
function_definition (+40 nodes collapsed)
function_definition (+93 nodes collapsed)
function_definition (+87 nodes collapsed)
function_definition (+88 nodes collapsed)
function_definition (+161 nodes collapsed)
function_definition (+150 nodes collapsed)
preproc_ifdef (+223 nodes collapsed)
comment "// NAVIGATION_2D_DISABLED"
function_definition (+78 nodes collapsed)
function_definition (+97 nodes collapsed)
function_definition (+44 nodes collapsed)
function_definition (+22 nodes collapsed)
function_definition
primitive_type "bool"
function_declarator
qualified_identifier
namespace_identifier "TileData"
:: "::"
identifier "is_allowing_transform"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "allow_transform"
; ";"
} "}"
function_definition (+216 nodes collapsed)
comment "// Rendering"
function_definition (+53 nodes collapsed)
function_definition
primitive_type "bool"
function_declarator
qualified_identifier
namespace_identifier "TileData"
:: "::"
identifier "get_flip_h"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "flip_h"
; ";"
} "}"
function_definition (+53 nodes collapsed)
function_definition
primitive_type "bool"
function_declarator
qualified_identifier
namespace_identifier "TileData"
:: "::"
identifier "get_flip_v"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "flip_v"
; ";"
} "}"
function_definition (+53 nodes collapsed)
function_definition
primitive_type "bool"
function_declarator
qualified_identifier
namespace_identifier "TileData"
:: "::"
identifier "get_transpose"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "transpose"
; ";"
} "}"
function_definition (+35 nodes collapsed)
function_definition
type_identifier "Vector2i"
function_declarator
qualified_identifier
namespace_identifier "TileData"
:: "::"
identifier "get_texture_origin"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "texture_origin"
; ";"
} "}"
function_definition (+41 nodes collapsed)
function_definition (+25 nodes collapsed)
function_definition (+35 nodes collapsed)
function_definition
type_identifier "Color"
function_declarator
qualified_identifier
namespace_identifier "TileData"
:: "::"
identifier "get_modulate"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "modulate"
; ";"
} "}"
function_definition (+35 nodes collapsed)
function_definition
primitive_type "int"
function_declarator
qualified_identifier
namespace_identifier "TileData"
:: "::"
identifier "get_z_index"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "z_index"
; ";"
} "}"
function_definition (+35 nodes collapsed)
function_definition
primitive_type "int"
function_declarator
qualified_identifier
namespace_identifier "TileData"
:: "::"
identifier "get_y_sort_origin"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "y_sort_origin"
; ";"
} "}"
preproc_ifdef (+210 nodes collapsed)
comment "// DISABLE_DEPRECATED"
function_definition (+123 nodes collapsed)
function_definition (+56 nodes collapsed)
function_definition (+75 nodes collapsed)
function_definition (+97 nodes collapsed)
function_definition (+142 nodes collapsed)
function_definition (+372 nodes collapsed)
preproc_ifdef (+2080 nodes collapsed)
comment "// PHYSICS_2D_DISABLED"
comment "// Terrain"
function_definition (+134 nodes collapsed)
function_definition
primitive_type "int"
function_declarator
qualified_identifier
namespace_identifier "TileData"
:: "::"
identifier "get_terrain_set"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "terrain_set"
; ";"
} "}"
function_definition (+97 nodes collapsed)
function_definition
primitive_type "int"
function_declarator
qualified_identifier
namespace_identifier "TileData"
:: "::"
identifier "get_terrain"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "terrain"
; ";"
} "}"
function_definition (+140 nodes collapsed)
function_definition (+47 nodes collapsed)
function_definition (+45 nodes collapsed)
function_definition (+152 nodes collapsed)
preproc_ifdef (+621 nodes collapsed)
comment "// NAVIGATION_2D_DISABLED"
comment "// Misc"
function_definition (+46 nodes collapsed)
function_definition
primitive_type "float"
function_declarator
qualified_identifier
namespace_identifier "TileData"
:: "::"
identifier "get_probability"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "probability"
; ";"
} "}"
comment "// Custom data"
function_definition (+76 nodes collapsed)
function_definition (+85 nodes collapsed)
function_definition (+44 nodes collapsed)
function_definition (+64 nodes collapsed)
function_definition (+50 nodes collapsed)
function_definition (+266 nodes collapsed)
function_definition (+1888 nodes collapsed)
function_definition (+1485 nodes collapsed)
function_definition (+1457 nodes collapsed)
function_definition (+2292 nodes collapsed)

After

translation_unit
comment "/***********************************************************"...
comment "/* tile_set.cpp "...
comment "/***********************************************************"...
comment "/* This file is part of: "...
comment "/* GODOT ENGINE "...
comment "/* https://godotengine.org "...
comment "/***********************************************************"...
comment "/* Copyright (c) 2014-present Godot Engine contributors (see"...
comment "/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. "...
comment "/* "...
comment "/* Permission is hereby granted, free of charge, to any pers"...
comment "/* a copy of this software and associated documentation file"...
comment "/* \"Software\"), to deal in the Software without restriction,"...
comment "/* without limitation the rights to use, copy, modify, merge"...
comment "/* distribute, sublicense, and/or sell copies of the Softwar"...
comment "/* permit persons to whom the Software is furnished to do so"...
comment "/* the following conditions: "...
comment "/* "...
comment "/* The above copyright notice and this permission notice sha"...
comment "/* included in all copies or substantial portions of the Sof"...
comment "/* "...
comment "/* THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY"...
comment "/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARR"...
comment "/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON"...
comment "/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIA"...
comment "/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION O"...
comment "/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION "...
comment "/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. "...
comment "/***********************************************************"...
preproc_include
#include "#include"
string_literal
" "\""
string_content "tile_set.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "tile_set.compat.inc"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "core/config/engine.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "core/io/marshalls.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "core/math/geometry_2d.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "core/object/callable_mp.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "core/object/class_db.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "core/templates/local_vector.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "core/templates/rb_set.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "scene/gui/control.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "scene/resources/image_texture.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "scene/resources/mesh.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "servers/rendering/rendering_server.h"
" "\""
comment "/////////////////////////////// TileMapPattern /////////////"...
function_definition (+466 nodes collapsed)
function_definition (+288 nodes collapsed)
function_definition (+120 nodes collapsed)
function_definition (+34 nodes collapsed)
function_definition (+130 nodes collapsed)
function_definition (+57 nodes collapsed)
function_definition (+61 nodes collapsed)
function_definition (+57 nodes collapsed)
function_definition (+121 nodes collapsed)
function_definition
type_identifier "Size2i"
function_declarator
qualified_identifier
namespace_identifier "TileMapPattern"
:: "::"
identifier "get_size"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "size"
; ";"
} "}"
function_definition (+119 nodes collapsed)
function_definition (+26 nodes collapsed)
function_definition (+40 nodes collapsed)
function_definition (+79 nodes collapsed)
function_definition (+61 nodes collapsed)
function_definition (+61 nodes collapsed)
function_definition (+358 nodes collapsed)
comment "/////////////////////////////// TileSet ////////////////////"...
function_definition (+22 nodes collapsed)
function_definition (+25 nodes collapsed)
function_definition (+204 nodes collapsed)
function_definition (+141 nodes collapsed)
function_definition (+36 nodes collapsed)
function_definition (+22 nodes collapsed)
function_definition (+136 nodes collapsed)
function_definition (+66 nodes collapsed)
function_definition (+123 nodes collapsed)
function_definition (+91 nodes collapsed)
function_definition (+111 nodes collapsed)
declaration
type_qualifier
const "const"
primitive_type "int"
init_declarator
qualified_identifier
namespace_identifier "TileSet"
:: "::"
identifier "INVALID_SOURCE"
= "="
number_literal "-1"
; ";"
declaration (+179 nodes collapsed)
comment "// -- Shape and layout --"
function_definition (+92 nodes collapsed)
function_definition (+22 nodes collapsed)
function_definition (+32 nodes collapsed)
function_definition (+22 nodes collapsed)
function_definition (+85 nodes collapsed)
function_definition (+22 nodes collapsed)
function_definition (+64 nodes collapsed)
function_definition
type_identifier "Size2i"
function_declarator
qualified_identifier
namespace_identifier "TileSet"
:: "::"
identifier "get_tile_size"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "tile_size"
; ";"
} "}"
function_definition
primitive_type "int"
function_declarator
qualified_identifier
namespace_identifier "TileSet"
:: "::"
identifier "get_next_source_id"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "next_source_id"
; ";"
} "}"
function_definition (+603 nodes collapsed)
function_definition (+48 nodes collapsed)
comment "// Sources management"
function_definition (+289 nodes collapsed)
function_definition (+136 nodes collapsed)
function_definition (+102 nodes collapsed)
function_definition (+183 nodes collapsed)
function_definition (+30 nodes collapsed)
function_definition (+66 nodes collapsed)
function_definition (+26 nodes collapsed)
function_definition (+49 nodes collapsed)
comment "// Rendering"
function_definition (+44 nodes collapsed)
function_definition
primitive_type "bool"
function_declarator
qualified_identifier
namespace_identifier "TileSet"
:: "::"
identifier "is_uv_clipping"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "uv_clipping"
; ";"
} "}"
function_definition (+26 nodes collapsed)
function_definition (+132 nodes collapsed)
function_definition (+153 nodes collapsed)
function_definition (+98 nodes collapsed)
function_definition (+61 nodes collapsed)
function_definition (+49 nodes collapsed)
function_definition (+61 nodes collapsed)
function_definition (+49 nodes collapsed)
preproc_ifdef (+868 nodes collapsed)
comment "// PHYSICS_2D_DISABLED"
comment "// Terrains"
function_definition (+26 nodes collapsed)
function_definition (+138 nodes collapsed)
function_definition (+159 nodes collapsed)
function_definition (+104 nodes collapsed)
function_definition (+115 nodes collapsed)
function_definition (+55 nodes collapsed)
function_definition (+56 nodes collapsed)
function_definition (+299 nodes collapsed)
function_definition (+208 nodes collapsed)
function_definition (+153 nodes collapsed)
function_definition
primitive_type "void"
function_declarator
qualified_identifier
namespace_identifier "TileSet"
:: "::"
identifier "clear_terrains"
parameter_list
( "("
parameter_declaration
primitive_type "int"
identifier "p_terrain_set"
) ")"
compound_statement
{ "{"
expression_statement
call_expression
identifier "ERR_FAIL_INDEX"
argument_list
( "("
identifier "p_terrain_set"
, ","
call_expression
field_expression
identifier "terrain_sets"
. "."
field_identifier "size"
argument_list
( "("
) ")"
) ")"
; ";"
declaration
template_type
type_identifier "Vector"
template_argument_list
< "<"
type_descriptor
type_identifier "Terrain"
> ">"
init_declarator
reference_declarator
& "&"
identifier "terrains"
= "="
field_expression
subscript_expression
field_expression
identifier "terrain_sets"
. "."
field_identifier "write"
subscript_argument_list
[ "["
identifier "p_terrain_set"
] "]"
. "."
field_identifier "terrains"
; ";"
declaration
primitive_type "int"
init_declarator
identifier "terrain_count"
= "="
call_expression
field_expression
identifier "terrains"
. "."
field_identifier "size"
argument_list
( "("
) ")"
; ";"
for_range_loop
for "for"
( "("
template_type
type_identifier "KeyValue"
template_argument_list
< "<"
type_descriptor
primitive_type "int"
, ","
type_descriptor
template_type
type_identifier "Ref"
template_argument_list
< "<"
type_descriptor
type_identifier "TileSetSource"
> ">"
> ">"
identifier "source"
: ":"
identifier "sources"
) ")"
compound_statement
{ "{"
for_statement
for "for"
( "("
declaration
primitive_type "int"
init_declarator
identifier "i"
= "="
binary_expression
identifier "terrain_count"
- "-"
number_literal "1"
; ";"
binary_expression
identifier "i"
>= ">="
number_literal "0"
; ";"
update_expression
identifier "i"
-- "--"
) ")"
compound_statement
{ "{"
expression_statement
call_expression
field_expression
field_expression
identifier "source"
. "."
field_identifier "value"
-> "->"
field_identifier "remove_terrain"
argument_list
( "("
identifier "p_terrain_set"
, ","
identifier "i"
) ")"
; ";"
} "}"
} "}"
expression_statement
call_expression
field_expression
identifier "terrains"
. "."
field_identifier "clear"
argument_list
( "("
) ")"
; ";"
expression_statement
call_expression
identifier "notify_property_list_changed"
argument_list
( "("
) ")"
; ";"
expression_statement
assignment_expression
identifier "terrains_cache_dirty"
= "="
true "true"
; ";"
expression_statement
call_expression
identifier "emit_changed"
argument_list
( "("
) ")"
; ";"
} "}"
function_definition (+101 nodes collapsed)
function_definition (+96 nodes collapsed)
function_definition (+136 nodes collapsed)
function_definition (+96 nodes collapsed)
function_definition (+725 nodes collapsed)
function_definition (+77 nodes collapsed)
preproc_ifdef (+733 nodes collapsed)
comment "// NAVIGATION_2D_DISABLED"
comment "// Custom data."
function_definition (+26 nodes collapsed)
function_definition (+132 nodes collapsed)
function_definition (+153 nodes collapsed)
function_definition (+184 nodes collapsed)
function_definition (+53 nodes collapsed)
function_definition (+201 nodes collapsed)
function_definition (+34 nodes collapsed)
function_definition (+51 nodes collapsed)
function_definition (+105 nodes collapsed)
function_definition (+55 nodes collapsed)
function_definition (+61 nodes collapsed)
function_definition (+48 nodes collapsed)
function_definition (+28 nodes collapsed)
function_definition (+52 nodes collapsed)
function_definition (+116 nodes collapsed)
function_definition (+65 nodes collapsed)
function_definition (+44 nodes collapsed)
function_definition (+68 nodes collapsed)
function_definition (+128 nodes collapsed)
function_definition (+71 nodes collapsed)
function_definition (+50 nodes collapsed)
function_definition (+74 nodes collapsed)
function_definition (+90 nodes collapsed)
function_definition (+90 nodes collapsed)
function_definition (+90 nodes collapsed)
function_definition (+252 nodes collapsed)
function_definition (+485 nodes collapsed)
function_definition (+50 nodes collapsed)
function_definition (+178 nodes collapsed)
function_definition (+65 nodes collapsed)
function_definition (+56 nodes collapsed)
function_definition (+24 nodes collapsed)
function_definition (+129 nodes collapsed)
function_definition (+87 nodes collapsed)
function_definition (+427 nodes collapsed)
function_definition (+475 nodes collapsed)
function_definition (+523 nodes collapsed)
function_definition (+829 nodes collapsed)
function_definition (+1955 nodes collapsed)
function_definition (+334 nodes collapsed)
function_definition (+4762 nodes collapsed)
function_definition (+519 nodes collapsed)
function_definition (+358 nodes collapsed)
function_definition (+458 nodes collapsed)
function_definition (+144 nodes collapsed)
function_definition (+393 nodes collapsed)
preproc_def
#define "#define"
identifier "TERRAIN_ALPHA"
preproc_arg "0.6"
function_definition (+1414 nodes collapsed)
function_definition (+1325 nodes collapsed)
function_definition (+26 nodes collapsed)
function_definition (+120 nodes collapsed)
function_definition (+372 nodes collapsed)
function_definition (+617 nodes collapsed)
function_definition (+449 nodes collapsed)
function_definition (+91 nodes collapsed)
function_definition (+825 nodes collapsed)
function_definition (+617 nodes collapsed)
function_definition (+449 nodes collapsed)
function_definition (+272 nodes collapsed)
function_definition (+1918 nodes collapsed)
function_definition (+1254 nodes collapsed)
function_definition (+920 nodes collapsed)
function_definition (+289 nodes collapsed)
function_definition (+1430 nodes collapsed)
declaration
type_qualifier
const "const"
type_identifier "Vector2i"
init_declarator
qualified_identifier
namespace_identifier "TileSetSource"
:: "::"
identifier "INVALID_ATLAS_COORDS"
= "="
call_expression
identifier "Vector2i"
argument_list
( "("
number_literal "-1"
, ","
number_literal "-1"
) ")"
; ";"
declaration
type_qualifier
const "const"
primitive_type "int"
init_declarator
qualified_identifier
namespace_identifier "TileSetSource"
:: "::"
identifier "INVALID_TILE_ALTERNATIVE"
= "="
number_literal "-1"
; ";"
preproc_ifdef (+3381 nodes collapsed)
comment "// DISABLE_DEPRECATED"
ERROR
primitive_type "bool"
function_declarator (+23 nodes collapsed)
{ "{"
declaration (+33 nodes collapsed)
#ifndef "#ifndef"
identifier "DISABLE_DEPRECATED"
comment "// TODO: This should be moved to a dedicated conversion syst"...
if_statement (+4038 nodes collapsed)
function_definition (+1828 nodes collapsed)
function_definition (+1386 nodes collapsed)
function_definition (+128 nodes collapsed)
function_definition
primitive_type "void"
function_declarator
qualified_identifier
namespace_identifier "TileSet"
:: "::"
identifier "_bind_methods"
parameter_list
( "("
) ")"
compound_statement
{ "{"
comment "// Sources management."
expression_statement (+26 nodes collapsed)
expression_statement (+46 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+26 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+31 nodes collapsed)
comment "// Shape and layout."
expression_statement (+31 nodes collapsed)
expression_statement (+26 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+26 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+26 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+26 nodes collapsed)
expression_statement (+38 nodes collapsed)
expression_statement (+38 nodes collapsed)
expression_statement (+38 nodes collapsed)
expression_statement (+38 nodes collapsed)
comment "// Rendering."
expression_statement (+31 nodes collapsed)
expression_statement (+26 nodes collapsed)
expression_statement (+26 nodes collapsed)
expression_statement (+38 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+31 nodes collapsed)
preproc_ifdef (+404 nodes collapsed)
comment "// PHYSICS_2D_DISABLED"
comment "// Terrains"
expression_statement (+26 nodes collapsed)
expression_statement (+38 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+43 nodes collapsed)
expression_statement (+41 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement
call_expression
qualified_identifier
namespace_identifier "ClassDB"
:: "::"
identifier "bind_method"
argument_list
( "("
call_expression
identifier "D_METHOD"
argument_list
( "("
string_literal
" "\""
string_content "clear_terrains"
" "\""
, ","
string_literal
" "\""
string_content "terrain_set"
" "\""
) ")"
, ","
pointer_expression
& "&"
qualified_identifier
namespace_identifier "TileSet"
:: "::"
identifier "clear_terrains"
) ")"
; ";"
expression_statement (+41 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+41 nodes collapsed)
expression_statement (+36 nodes collapsed)
preproc_ifdef (+280 nodes collapsed)
comment "// NAVIGATION_2D_DISABLED"
comment "// Custom data"
expression_statement (+26 nodes collapsed)
expression_statement (+38 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+31 nodes collapsed)
comment "// Tile proxies"
expression_statement (+36 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+46 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+36 nodes collapsed)
expression_statement (+56 nodes collapsed)
expression_statement (+41 nodes collapsed)
expression_statement (+41 nodes collapsed)
expression_statement (+41 nodes collapsed)
expression_statement (+41 nodes collapsed)
expression_statement (+26 nodes collapsed)
expression_statement (+26 nodes collapsed)
comment "// Patterns"
expression_statement (+43 nodes collapsed)
expression_statement (+38 nodes collapsed)
expression_statement (+31 nodes collapsed)
expression_statement (+26 nodes collapsed)
expression_statement
call_expression
identifier "ADD_GROUP"
argument_list
( "("
string_literal
" "\""
string_content "Rendering"
" "\""
, ","
string_literal
" "\""
" "\""
) ")"
; ";"
expression_statement (+31 nodes collapsed)
expression_statement
call_expression
identifier "ADD_ARRAY"
argument_list
( "("
string_literal
" "\""
string_content "occlusion_layers"
" "\""
, ","
string_literal
" "\""
string_content "occlusion_layer_"
" "\""
) ")"
; ";"
expression_statement
call_expression
identifier "ADD_GROUP"
argument_list
( "("
string_literal
" "\""
" "\""
, ","
string_literal
" "\""
" "\""
) ")"
; ";"
expression_statement
call_expression
identifier "ADD_ARRAY"
argument_list
( "("
string_literal
" "\""
string_content "physics_layers"
" "\""
, ","
string_literal
" "\""
string_content "physics_layer_"
" "\""
) ")"
; ";"
expression_statement
call_expression
identifier "ADD_ARRAY"
argument_list
( "("
string_literal
" "\""
string_content "terrain_sets"
" "\""
, ","
string_literal
" "\""
string_content "terrain_set_"
" "\""
) ")"
; ";"
preproc_ifdef
#ifndef "#ifndef"
identifier "NAVIGATION_2D_DISABLED"
expression_statement
call_expression
identifier "ADD_ARRAY"
argument_list
( "("
string_literal
" "\""
string_content "navigation_layers"
" "\""
, ","
string_literal
" "\""
string_content "navigation_layer_"
" "\""
) ")"
; ";"
#endif "#endif"
comment "// NAVIGATION_2D_DISABLED"
expression_statement
call_expression
identifier "ADD_ARRAY"
argument_list
( "("
string_literal
" "\""
string_content "custom_data_layers"
" "\""
, ","
string_literal
" "\""
string_content "custom_data_layer_"
" "\""
) ")"
; ";"
comment "// -- Enum binding --"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_SHAPE_SQUARE"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_SHAPE_ISOMETRIC"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_SHAPE_HALF_OFFSET_SQUARE"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_SHAPE_HEXAGON"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_LAYOUT_STACKED"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_LAYOUT_STACKED_OFFSET"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_LAYOUT_STAIRS_RIGHT"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_LAYOUT_STAIRS_DOWN"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_LAYOUT_DIAMOND_RIGHT"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_LAYOUT_DIAMOND_DOWN"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_OFFSET_AXIS_HORIZONTAL"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TILE_OFFSET_AXIS_VERTICAL"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_RIGHT_SIDE"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_RIGHT_CORNER"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_BOTTOM_RIGHT_SIDE"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_BOTTOM_RIGHT_CORNER"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_BOTTOM_SIDE"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_BOTTOM_CORNER"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_BOTTOM_LEFT_SIDE"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_BOTTOM_LEFT_CORNER"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_LEFT_SIDE"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_LEFT_CORNER"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_TOP_LEFT_SIDE"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_TOP_LEFT_CORNER"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_TOP_SIDE"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_TOP_CORNER"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_TOP_RIGHT_SIDE"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "CELL_NEIGHBOR_TOP_RIGHT_CORNER"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TERRAIN_MODE_MATCH_CORNERS_AND_SIDES"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TERRAIN_MODE_MATCH_CORNERS"
) ")"
; ";"
expression_statement
call_expression
identifier "BIND_ENUM_CONSTANT"
argument_list
( "("
identifier "TERRAIN_MODE_MATCH_SIDES"
) ")"
; ";"
} "}"
function_definition (+33 nodes collapsed)
function_definition (+87 nodes collapsed)
comment "/////////////////////////////// TileSetSource //////////////"...
function_definition (+26 nodes collapsed)
function_definition (+28 nodes collapsed)
function_definition
primitive_type "void"
function_declarator
qualified_identifier
namespace_identifier "TileSetSource"
:: "::"
identifier "reset_state"
parameter_list
( "("
) ")"
compound_statement
{ "{"
expression_statement
assignment_expression
identifier "tile_set"
= "="
null
nullptr "nullptr"
; ";"
} "}"
function_definition (+206 nodes collapsed)
comment "/////////////////////////////// TileSetAtlasSource /////////"...
function_definition (+93 nodes collapsed)
function_definition (+23 nodes collapsed)
function_definition (+79 nodes collapsed)
function_definition (+78 nodes collapsed)
function_definition (+84 nodes collapsed)
function_definition (+78 nodes collapsed)
preproc_ifdef (+244 nodes collapsed)
comment "// PHYSICS_2D_DISABLED"
function_definition (+78 nodes collapsed)
function_definition (+84 nodes collapsed)
function_definition (+78 nodes collapsed)
function_definition (+84 nodes collapsed)
function_definition (+90 nodes collapsed)
function_definition (+84 nodes collapsed)
preproc_ifdef (+244 nodes collapsed)
comment "// NAVIGATION_2D_DISABLED"
function_definition (+78 nodes collapsed)
function_definition (+84 nodes collapsed)
function_definition (+78 nodes collapsed)
function_definition (+122 nodes collapsed)
function_definition (+120 nodes collapsed)
function_definition (+25 nodes collapsed)
function_definition (+90 nodes collapsed)
function_definition
type_identifier "Vector2i"
function_declarator
qualified_identifier
namespace_identifier "TileSetAtlasSource"
:: "::"
identifier "get_margins"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "margins"
; ";"
} "}"
function_definition (+90 nodes collapsed)
function_definition
type_identifier "Vector2i"
function_declarator
qualified_identifier
namespace_identifier "TileSetAtlasSource"
:: "::"
identifier "get_separation"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "separation"
; ";"
} "}"
function_definition (+90 nodes collapsed)
function_definition
type_identifier "Vector2i"
function_declarator
qualified_identifier
namespace_identifier "TileSetAtlasSource"
:: "::"
identifier "get_texture_region_size"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "texture_region_size"
; ";"
} "}"
function_definition (+51 nodes collapsed)
function_definition
primitive_type "bool"
function_declarator
qualified_identifier
namespace_identifier "TileSetAtlasSource"
:: "::"
identifier "get_use_texture_padding"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "use_texture_padding"
; ";"
} "}"
function_definition (+172 nodes collapsed)
function_definition (+970 nodes collapsed)
function_definition (+801 nodes collapsed)
function_definition (+975 nodes collapsed)
function_definition (+329 nodes collapsed)
function_definition (+153 nodes collapsed)
function_definition (+30 nodes collapsed)
function_definition (+50 nodes collapsed)
function_definition (+179 nodes collapsed)
function_definition (+69 nodes collapsed)
function_definition (+193 nodes collapsed)
function_definition (+73 nodes collapsed)
function_definition (+89 nodes collapsed)
function_definition (+69 nodes collapsed)
function_definition (+81 nodes collapsed)
function_definition (+72 nodes collapsed)
function_definition (+262 nodes collapsed)
function_definition (+76 nodes collapsed)
function_definition (+128 nodes collapsed)
function_definition (+110 nodes collapsed)
function_definition (+97 nodes collapsed)
function_definition (+74 nodes collapsed)
function_definition (+26 nodes collapsed)
function_definition (+49 nodes collapsed)
function_definition (+333 nodes collapsed)
function_definition (+113 nodes collapsed)
function_definition (+139 nodes collapsed)
function_definition (+150 nodes collapsed)
function_definition (+439 nodes collapsed)
function_definition (+252 nodes collapsed)
function_definition (+135 nodes collapsed)
function_definition (+138 nodes collapsed)
function_definition (+34 nodes collapsed)
comment "// Getters for texture and tile region (padded or not)"
function_definition (+43 nodes collapsed)
function_definition (+262 nodes collapsed)
function_definition (+322 nodes collapsed)
function_definition (+333 nodes collapsed)
function_definition (+213 nodes collapsed)
function_definition (+290 nodes collapsed)
function_definition (+86 nodes collapsed)
function_definition (+72 nodes collapsed)
function_definition (+76 nodes collapsed)
function_definition (+122 nodes collapsed)
function_definition (+140 nodes collapsed)
function_definition (+34 nodes collapsed)
function_definition (+1681 nodes collapsed)
function_definition (+78 nodes collapsed)
function_definition (+136 nodes collapsed)
function_definition (+129 nodes collapsed)
function_definition (+120 nodes collapsed)
function_definition (+331 nodes collapsed)
function_definition (+289 nodes collapsed)
function_definition (+53 nodes collapsed)
function_definition (+1030 nodes collapsed)
function_definition (+454 nodes collapsed)
function_definition (+31 nodes collapsed)
comment "/////////////////////////////// TileSetScenesCollectionSourc"...
function_definition (+48 nodes collapsed)
function_definition (+31 nodes collapsed)
function_definition
primitive_type "int"
function_declarator
qualified_identifier
namespace_identifier "TileSetScenesCollectionSource"
:: "::"
identifier "get_tiles_count"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
number_literal "1"
; ";"
} "}"
function_definition (+42 nodes collapsed)
function_definition (+29 nodes collapsed)
function_definition (+31 nodes collapsed)
function_definition (+75 nodes collapsed)
function_definition (+61 nodes collapsed)
function_definition (+141 nodes collapsed)
function_definition (+147 nodes collapsed)
function_definition (+292 nodes collapsed)
function_definition (+81 nodes collapsed)
function_definition (+59 nodes collapsed)
function_definition (+64 nodes collapsed)
function_definition (+63 nodes collapsed)
function_definition
primitive_type "int"
function_declarator
qualified_identifier
namespace_identifier "TileSetScenesCollectionSource"
:: "::"
identifier "get_next_scene_tile_id"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "next_scene_id"
; ";"
} "}"
function_definition (+293 nodes collapsed)
function_definition (+264 nodes collapsed)
function_definition (+219 nodes collapsed)
function_definition (+34 nodes collapsed)
function_definition (+371 nodes collapsed)
comment "/////////////////////////////// TileData ///////////////////"...
function_definition (+33 nodes collapsed)
function_definition (+403 nodes collapsed)
function_definition (+78 nodes collapsed)
function_definition (+97 nodes collapsed)
function_definition (+44 nodes collapsed)
preproc_ifdef (+223 nodes collapsed)
comment "// PHYSICS_2D_DISABLED"
function_definition (+40 nodes collapsed)
function_definition (+93 nodes collapsed)
function_definition (+87 nodes collapsed)
function_definition (+88 nodes collapsed)
function_definition (+161 nodes collapsed)
function_definition (+150 nodes collapsed)
preproc_ifdef (+223 nodes collapsed)
comment "// NAVIGATION_2D_DISABLED"
function_definition (+78 nodes collapsed)
function_definition (+97 nodes collapsed)
function_definition (+44 nodes collapsed)
function_definition (+22 nodes collapsed)
function_definition
primitive_type "bool"
function_declarator
qualified_identifier
namespace_identifier "TileData"
:: "::"
identifier "is_allowing_transform"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "allow_transform"
; ";"
} "}"
function_definition (+216 nodes collapsed)
comment "// Rendering"
function_definition (+53 nodes collapsed)
function_definition
primitive_type "bool"
function_declarator
qualified_identifier
namespace_identifier "TileData"
:: "::"
identifier "get_flip_h"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "flip_h"
; ";"
} "}"
function_definition (+53 nodes collapsed)
function_definition
primitive_type "bool"
function_declarator
qualified_identifier
namespace_identifier "TileData"
:: "::"
identifier "get_flip_v"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "flip_v"
; ";"
} "}"
function_definition (+53 nodes collapsed)
function_definition
primitive_type "bool"
function_declarator
qualified_identifier
namespace_identifier "TileData"
:: "::"
identifier "get_transpose"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "transpose"
; ";"
} "}"
function_definition (+35 nodes collapsed)
function_definition
type_identifier "Vector2i"
function_declarator
qualified_identifier
namespace_identifier "TileData"
:: "::"
identifier "get_texture_origin"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "texture_origin"
; ";"
} "}"
function_definition (+41 nodes collapsed)
function_definition (+25 nodes collapsed)
function_definition (+35 nodes collapsed)
function_definition
type_identifier "Color"
function_declarator
qualified_identifier
namespace_identifier "TileData"
:: "::"
identifier "get_modulate"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "modulate"
; ";"
} "}"
function_definition (+35 nodes collapsed)
function_definition
primitive_type "int"
function_declarator
qualified_identifier
namespace_identifier "TileData"
:: "::"
identifier "get_z_index"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "z_index"
; ";"
} "}"
function_definition (+35 nodes collapsed)
function_definition
primitive_type "int"
function_declarator
qualified_identifier
namespace_identifier "TileData"
:: "::"
identifier "get_y_sort_origin"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "y_sort_origin"
; ";"
} "}"
preproc_ifdef (+210 nodes collapsed)
comment "// DISABLE_DEPRECATED"
function_definition (+123 nodes collapsed)
function_definition (+56 nodes collapsed)
function_definition (+75 nodes collapsed)
function_definition (+97 nodes collapsed)
function_definition (+142 nodes collapsed)
function_definition (+372 nodes collapsed)
preproc_ifdef (+2080 nodes collapsed)
comment "// PHYSICS_2D_DISABLED"
comment "// Terrain"
function_definition (+134 nodes collapsed)
function_definition
primitive_type "int"
function_declarator
qualified_identifier
namespace_identifier "TileData"
:: "::"
identifier "get_terrain_set"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "terrain_set"
; ";"
} "}"
function_definition (+97 nodes collapsed)
function_definition
primitive_type "int"
function_declarator
qualified_identifier
namespace_identifier "TileData"
:: "::"
identifier "get_terrain"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "terrain"
; ";"
} "}"
function_definition (+140 nodes collapsed)
function_definition (+47 nodes collapsed)
function_definition (+45 nodes collapsed)
function_definition (+152 nodes collapsed)
preproc_ifdef (+621 nodes collapsed)
comment "// NAVIGATION_2D_DISABLED"
comment "// Misc"
function_definition (+46 nodes collapsed)
function_definition
primitive_type "float"
function_declarator
qualified_identifier
namespace_identifier "TileData"
:: "::"
identifier "get_probability"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "probability"
; ";"
} "}"
comment "// Custom data"
function_definition (+76 nodes collapsed)
function_definition (+85 nodes collapsed)
function_definition (+44 nodes collapsed)
function_definition (+64 nodes collapsed)
function_definition (+50 nodes collapsed)
function_definition (+266 nodes collapsed)
function_definition (+1888 nodes collapsed)
function_definition (+1485 nodes collapsed)
function_definition (+1457 nodes collapsed)
function_definition (+2292 nodes collapsed)