Fix build by adding get functions for otherwise inaccessible fields.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
cdaa056810
commit
cfb7663d78
|
@ -5,3 +5,15 @@ CreatureLib::Library::LearnedAttack::LearnedAttack(CreatureLib::Library::AttackD
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
const CreatureLib::Library::AttackData *CreatureLib::Library::LearnedAttack::GetAttack() const {
|
||||
return _attack;
|
||||
}
|
||||
|
||||
uint8_t CreatureLib::Library::LearnedAttack::GetMaxUses() const {
|
||||
return _maxUses;
|
||||
}
|
||||
|
||||
uint8_t CreatureLib::Library::LearnedAttack::GetRemainingUses() const {
|
||||
return _remainingUses;
|
||||
}
|
||||
|
|
|
@ -6,10 +6,14 @@
|
|||
namespace CreatureLib::Library{
|
||||
class LearnedAttack {
|
||||
const AttackData* _attack;
|
||||
const uint8_t _maxUses;
|
||||
const uint8_t _remainingUses;
|
||||
uint8_t _maxUses;
|
||||
uint8_t _remainingUses;
|
||||
public:
|
||||
LearnedAttack(AttackData* attack, uint8_t maxUses);
|
||||
|
||||
const AttackData* GetAttack() const;
|
||||
uint8_t GetMaxUses() const;
|
||||
uint8_t GetRemainingUses() const;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue