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.)

This commit is contained in:
Relintai 2020-04-23 18:48:49 +02:00
parent 572c5531ba
commit 49db594f4a
2 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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();