godot/modules/gridmap/grid_map.cpp

/**************************************************************************/
/*  grid_map.cpp                                                          */
/**************************************************************************/
/*                         This file is part of:                          */
/*                             GODOT ENGINE                               */
/*                        https://godotengine.org                         */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                  */
/*                                                                        */
/* 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 "grid_map.h"

#include "core/io/marshalls.h"
#include "scene/3d/light_3d.h"
#include "scene/resources/3d/mesh_library.h"
#include "scene/resources/3d/primitive_meshes.h"
#include "scene/resources/physics_material.h"
#include "scene/resources/surface_tool.h"
#include "servers/navigation_server_3d.h"
#include "servers/rendering_server.h"

bool GridMap::_set(const StringName &p_name, const Variant &p_value) {}

bool GridMap::_get(const StringName &p_name, Variant &r_ret) const {}

void GridMap::_get_property_list(List<PropertyInfo> *p_list) const {}

void GridMap::set_collision_layer(uint32_t p_layer) {}

uint32_t GridMap::get_collision_layer() const {}

void GridMap::set_collision_mask(uint32_t p_mask) {}

uint32_t GridMap::get_collision_mask() const {}

void GridMap::set_collision_layer_value(int p_layer_number, bool p_value) {}

bool GridMap::get_collision_layer_value(int p_layer_number) const {}

void GridMap::set_collision_mask_value(int p_layer_number, bool p_value) {}

void GridMap::set_collision_priority(real_t p_priority) {}

real_t GridMap::get_collision_priority() const {}

void GridMap::set_physics_material(Ref<PhysicsMaterial> p_material) {}

Ref<PhysicsMaterial> GridMap::get_physics_material() const {}

bool GridMap::get_collision_mask_value(int p_layer_number) const {}

Array GridMap::get_collision_shapes() const {}

void GridMap::set_bake_navigation(bool p_bake_navigation) {}

bool GridMap::is_baking_navigation() {}

void GridMap::set_navigation_map(RID p_navigation_map) {}

RID GridMap::get_navigation_map() const {}

void GridMap::set_mesh_library(const Ref<MeshLibrary> &p_mesh_library) {}

Ref<MeshLibrary> GridMap::get_mesh_library() const {}

void GridMap::set_cell_size(const Vector3 &p_size) {}

Vector3 GridMap::get_cell_size() const {}

void GridMap::set_octant_size(int p_size) {}

int GridMap::get_octant_size() const {}

void GridMap::set_center_x(bool p_enable) {}

bool GridMap::get_center_x() const {}

void GridMap::set_center_y(bool p_enable) {}

bool GridMap::get_center_y() const {}

void GridMap::set_center_z(bool p_enable) {}

bool GridMap::get_center_z() const {}

void GridMap::set_cell_item(const Vector3i &p_position, int p_item, int p_rot) {}

int GridMap::get_cell_item(const Vector3i &p_position) const {}

int GridMap::get_cell_item_orientation(const Vector3i &p_position) const {}

static const Basis _ortho_bases[24] =;

Basis GridMap::get_cell_item_basis(const Vector3i &p_position) const {}

Basis GridMap::get_basis_with_orthogonal_index(int p_index) const {}

int GridMap::get_orthogonal_index_from_basis(const Basis &p_basis) const {}

Vector3i GridMap::local_to_map(const Vector3 &p_world_position) const {}

Vector3 GridMap::map_to_local(const Vector3i &p_map_position) const {}

void GridMap::_octant_transform(const OctantKey &p_key) {}

bool GridMap::_octant_update(const OctantKey &p_key) {}

void GridMap::_update_physics_bodies_collision_properties() {}

void GridMap::_update_physics_bodies_characteristics() {}

void GridMap::_octant_enter_world(const OctantKey &p_key) {}

void GridMap::_octant_exit_world(const OctantKey &p_key) {}

void GridMap::_octant_clean_up(const OctantKey &p_key) {}

void GridMap::_notification(int p_what) {}

void GridMap::_update_visibility() {}

void GridMap::_queue_octants_dirty() {}

void GridMap::_recreate_octant_data() {}

void GridMap::_clear_internal() {}

void GridMap::clear() {}

#ifndef DISABLE_DEPRECATED
void GridMap::resource_changed(const Ref<Resource> &p_res) {}
#endif

void GridMap::_update_octants_callback() {}

void GridMap::_bind_methods() {}

void GridMap::set_cell_scale(float p_scale) {}

float GridMap::get_cell_scale() const {}

TypedArray<Vector3i> GridMap::get_used_cells() const {}

TypedArray<Vector3i> GridMap::get_used_cells_by_item(int p_item) const {}

Array GridMap::get_meshes() const {}

Vector3 GridMap::_get_offset() const {}

void GridMap::clear_baked_meshes() {}

void GridMap::make_baked_meshes(bool p_gen_lightmap_uv, float p_lightmap_uv_texel_size) {}

Array GridMap::get_bake_meshes() {}

RID GridMap::get_bake_mesh_instance(int p_idx) {}

GridMap::GridMap() {}

#ifdef DEBUG_ENABLED
void GridMap::_update_navigation_debug_edge_connections() {}

void GridMap::_navigation_map_changed(RID p_map) {}
#endif // DEBUG_ENABLED

GridMap::~GridMap() {}

#ifdef DEBUG_ENABLED
void GridMap::_update_octant_navigation_debug_edge_connections_mesh(const OctantKey &p_key) {}
#endif // DEBUG_ENABLED