Rewrite heal location data reading

This commit is contained in:
GriffinR
2022-09-09 17:41:50 -04:00
committed by Marcus Huderle
parent 551a771798
commit 43d0dc1e7b
5 changed files with 103 additions and 60 deletions

View File

@@ -626,15 +626,15 @@ public:
void setRespawnMap(QString newRespawnMap) { this->respawnMap = newRespawnMap; }
QString getRespawnMap() { return this->respawnMap; }
void setRespawnNPC(uint16_t newRespawnNPC) { this->respawnNPC = newRespawnNPC; }
uint16_t getRespawnNPC() { return this->respawnNPC; }
void setRespawnNPC(uint8_t newRespawnNPC) { this->respawnNPC = newRespawnNPC; }
uint8_t getRespawnNPC() { return this->respawnNPC; }
private:
int index = -1;
QString locationName;
QString idName;
QString respawnMap;
uint16_t respawnNPC = 0;
uint8_t respawnNPC = 0;
};

View File

@@ -11,17 +11,17 @@ class HealLocation {
public:
HealLocation()=default;
HealLocation(QString, QString, int, uint16_t, uint16_t, QString = "", uint16_t = 0);
HealLocation(QString, QString, int, int16_t, int16_t, QString = "", uint8_t = 0);
friend QDebug operator<<(QDebug debug, const HealLocation &hl);
public:
QString idName;
QString mapName;
int index;
uint16_t x;
uint16_t y;
int16_t x;
int16_t y;
QString respawnMap;
uint16_t respawnNPC;
uint8_t respawnNPC;
static HealLocation fromEvent(Event *);
};