Renamed get_stat, and set_stat in Entity. It's just a smell c++ side helper method, they aren't bound. Should not require any changes like the rest.

This commit is contained in:
Relintai 2023-06-16 23:26:49 +02:00
parent a0b908874d
commit b1de21dd58
2 changed files with 5 additions and 4 deletions

View File

@ -2032,13 +2032,13 @@ void Entity::scraft_recipes_set(const Vector<Variant> &resources) {
//// Stat System ////
EntityStat Entity::get_stat(const int stat_id) const {
EntityStat Entity::stat_get(const int stat_id) const {
ERR_FAIL_INDEX_V(stat_id, _stats.size(), EntityStat());
return _stats[stat_id];
}
void Entity::set_stat(const int stat_id, const EntityStat &entry) {
void Entity::stat_set(const int stat_id, const EntityStat &entry) {
ERR_FAIL_INDEX(stat_id, _stats.size());
_stats.set(stat_id, entry);

View File

@ -350,8 +350,9 @@ public:
void setc_seed(int value);
//// Stats ////
EntityStat get_stat(const int stat_id) const;
void set_stat(const int stat_id, const EntityStat &entry);
EntityStat stat_get(const int stat_id) const;
void stat_set(const int stat_id, const EntityStat &entry);
bool stat_get_dirty(const int stat_id) const;
void stat_set_dirty(const int stat_id, const bool value);