mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-04-19 21:33:15 +02:00
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:
parent
572c5531ba
commit
49db594f4a
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user