Fixed disrepancies between a few getter and setters.

This commit is contained in:
Relintai 2023-06-01 13:06:24 +02:00
parent 61ccfb443f
commit dbc5b1df35
8 changed files with 8 additions and 8 deletions

View File

@ -27,7 +27,7 @@ SOFTWARE.
int LootDataBase::get_loot_db_size() const {
return _loot_dbs.size();
}
void LootDataBase::set_loot_db_size(const float value) {
void LootDataBase::set_loot_db_size(const int value) {
_loot_dbs.resize(value);
}

View File

@ -32,7 +32,7 @@ class LootDataBase : public Resource {
public:
int get_loot_db_size() const;
void set_loot_db_size(const float value);
void set_loot_db_size(const int value);
int get_items_size() const;
void set_items_size(const int value);

View File

@ -29,7 +29,7 @@ SOFTWARE.
#include "../../defines.h"
float AuraData::damage_get_count() {
int AuraData::damage_get_count() {
return _damage_already_taken;
}

View File

@ -67,7 +67,7 @@ public:
int damage_get();
void damage_set(int value);
float damage_get_count();
int damage_get_count();
void damage_set_count(int damageTaken);
float get_tick();

View File

@ -59,7 +59,7 @@ void TiledWall::set_data(const Ref<TiledWallData> &data) {
bool TiledWall::get_collision() const {
return _collision;
}
void TiledWall::set_collision(const int value) {
void TiledWall::set_collision(const bool value) {
_collision = value;
/*

View File

@ -46,7 +46,7 @@ public:
void set_data(const Ref<TiledWallData> &data);
bool get_collision() const;
void set_collision(const int value);
void set_collision(const bool value);
uint32_t get_collision_layer() const;
void set_collision_layer(uint32_t p_layer);

View File

@ -51,7 +51,7 @@ void Prop2DDataTiledWall2D::set_data(const Ref<TiledWall2DData> &data) {
bool Prop2DDataTiledWall2D::get_collision() const {
return _collision;
}
void Prop2DDataTiledWall2D::set_collision(const int value) {
void Prop2DDataTiledWall2D::set_collision(const bool value) {
_collision = value;
}

View File

@ -41,7 +41,7 @@ public:
void set_data(const Ref<TiledWall2DData> &data);
bool get_collision() const;
void set_collision(const int value);
void set_collision(const bool value);
bool _processor_handles(Node *node);
void _processor_process(Ref<Prop2DData> prop_data, Node *node, const Transform2D &transform, Ref<Prop2DDataEntry> entry = Ref<Prop2DDataEntry>());