Merge pull request #10307 from Rubonnek/update-argument-names
Updated function argument names
This commit is contained in:
@@ -1049,21 +1049,21 @@ void GridMap::_update_area_instances() {
|
||||
}
|
||||
}
|
||||
|
||||
Error GridMap::create_area(int p_id, const Rect3 &p_bounds) {
|
||||
Error GridMap::create_area(int p_id, const Rect3 &p_area) {
|
||||
|
||||
ERR_FAIL_COND_V(area_map.has(p_id), ERR_ALREADY_EXISTS);
|
||||
ERR_EXPLAIN("ID 0 is taken as global area, start from 1");
|
||||
ERR_FAIL_COND_V(p_id == 0, ERR_INVALID_PARAMETER);
|
||||
ERR_FAIL_COND_V(p_bounds.has_no_area(), ERR_INVALID_PARAMETER);
|
||||
ERR_FAIL_COND_V(p_area.has_no_area(), ERR_INVALID_PARAMETER);
|
||||
|
||||
// FIRST VALIDATE AREA
|
||||
IndexKey from, to;
|
||||
from.x = p_bounds.position.x;
|
||||
from.y = p_bounds.position.y;
|
||||
from.z = p_bounds.position.z;
|
||||
to.x = p_bounds.position.x + p_bounds.size.x;
|
||||
to.y = p_bounds.position.y + p_bounds.size.y;
|
||||
to.z = p_bounds.position.z + p_bounds.size.z;
|
||||
from.x = p_area.position.x;
|
||||
from.y = p_area.position.y;
|
||||
from.z = p_area.position.z;
|
||||
to.x = p_area.position.x + p_area.size.x;
|
||||
to.y = p_area.position.y + p_area.size.y;
|
||||
to.z = p_area.position.z + p_area.size.z;
|
||||
|
||||
for (Map<int, Area *>::Element *E = area_map.front(); E; E = E->next()) {
|
||||
//this should somehow be faster...
|
||||
|
||||
@@ -242,7 +242,7 @@ public:
|
||||
void set_center_z(bool p_enable);
|
||||
bool get_center_z() const;
|
||||
|
||||
void set_cell_item(int p_x, int p_y, int p_z, int p_item, int p_orientation = 0);
|
||||
void set_cell_item(int p_x, int p_y, int p_z, int p_item, int p_rot = 0);
|
||||
int get_cell_item(int p_x, int p_y, int p_z) const;
|
||||
int get_cell_item_orientation(int p_x, int p_y, int p_z) const;
|
||||
|
||||
|
||||
@@ -239,8 +239,8 @@ public:
|
||||
virtual bool forward_spatial_input_event(Camera *p_camera, const Ref<InputEvent> &p_event) { return gridmap_editor->forward_spatial_input_event(p_camera, p_event); }
|
||||
virtual String get_name() const { return "GridMap"; }
|
||||
bool has_main_screen() const { return false; }
|
||||
virtual void edit(Object *p_node);
|
||||
virtual bool handles(Object *p_node) const;
|
||||
virtual void edit(Object *p_object);
|
||||
virtual bool handles(Object *p_object) const;
|
||||
virtual void make_visible(bool p_visible);
|
||||
|
||||
GridMapEditorPlugin(EditorNode *p_node);
|
||||
|
||||
Reference in New Issue
Block a user