From 49db594f4af594462634db0a7d9da32fa599a3fc Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 23 Apr 2020 18:48:49 +0200 Subject: [PATCH] Stat and StatModifier are back to being References. I found a better way to go about serializing stats. (Most likely they'll be merged into Entity, this should simplify the background logic aswell, and make it less awkward.) --- entities/stats/stat.h | 6 +++--- entities/stats/stat_modifier.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/entities/stats/stat.h b/entities/stats/stat.h index e128fb1..d4ca012 100644 --- a/entities/stats/stat.h +++ b/entities/stats/stat.h @@ -23,7 +23,7 @@ SOFTWARE. #ifndef STAT_H #define STAT_H -#include "core/resource.h" +#include "core/reference.h" #include "core/ustring.h" #include "core/vector.h" #include "scene/resources/curve.h" @@ -33,8 +33,8 @@ SOFTWARE. class StatDataEntry; class Entity; -class Stat : public Resource { - GDCLASS(Stat, Resource); +class Stat : public Reference { + GDCLASS(Stat, Reference); public: static const String STAT_BINDING_STRING; diff --git a/entities/stats/stat_modifier.h b/entities/stats/stat_modifier.h index 1489568..90a829f 100644 --- a/entities/stats/stat_modifier.h +++ b/entities/stats/stat_modifier.h @@ -23,12 +23,12 @@ SOFTWARE. #ifndef STAT_MODIFIER_H #define STAT_MODIFIER_H -#include "core/resource.h" +#include "core/reference.h" class Stat; -class StatModifier : public Resource { - GDCLASS(StatModifier, Resource); +class StatModifier : public Reference { + GDCLASS(StatModifier, Reference); public: StatModifier();