mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-23 17:47:17 +01:00
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:
parent
a0b908874d
commit
b1de21dd58
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user