mirror of
https://github.com/libAthena/athena.git
synced 2025-12-09 13:38:03 +00:00
* Start to fill in save related classes
* Fix silly bug in WiiSave * Fix typos in Utilitiy.*
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#if !defined(ATHENA_NO_SAVES) && !defined(ATHENA_NO_ZQUEST)
|
||||
#if !defined(ATHENA_NO_SAVES) && !defined(ATHENA_NO_ZQUEST)
|
||||
// This file is part of libAthena.
|
||||
//
|
||||
// libAthena is free software: you can redistribute it and/or modify
|
||||
@@ -27,17 +27,47 @@ namespace Athena
|
||||
class SkywardSwordQuest : public ZQuestFile
|
||||
{
|
||||
public:
|
||||
enum AmmoType
|
||||
{
|
||||
Arrows,
|
||||
Bombs,
|
||||
Seeds
|
||||
};
|
||||
|
||||
SkywardSwordQuest(atUint8* data, atUint32 len);
|
||||
|
||||
// TODO: Is len really needed?
|
||||
void setSkipData(const atUint8* data, atUint32 len = 0x24);
|
||||
void setPlayerName(const std::string& name);
|
||||
std::string playerName() const;
|
||||
|
||||
void setRupeeCount(atUint16 value);
|
||||
atUint16 rupeeCount();
|
||||
void setAmmoCount(AmmoType type, atUint32 count);
|
||||
atUint32 ammoCount(AmmoType type);
|
||||
void setMaxHP(atUint16 val);
|
||||
atUint16 maxHP();
|
||||
float maxHearts();
|
||||
void setSpawnHP(atUint16 val);
|
||||
atUint16 spawnHP();
|
||||
float spawnHearts();
|
||||
void setCurrentHP(atUint16 val);
|
||||
atUint16 currentHP();
|
||||
float currentHearts();
|
||||
std::string currentLocation();
|
||||
std::string currentArea();
|
||||
std::string currentLocationCopy();
|
||||
|
||||
void setSkipData(const atUint8* data);
|
||||
atUint8* skipData() const;
|
||||
|
||||
atUint32 skipLength() const;
|
||||
|
||||
atUint32 slotChecksum();
|
||||
atUint32 skipChecksum();
|
||||
void fixChecksums();
|
||||
|
||||
void setNew(bool isNew);
|
||||
bool isNew() const;
|
||||
private:
|
||||
atUint8* m_skipData;
|
||||
atUint32 m_skipLength;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user