Update to new Arbutils
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -9,28 +9,27 @@
|
||||
namespace CreatureLib::Battling {
|
||||
class CreateCreature {
|
||||
ArbUt::BorrowedPtr<const BattleLibrary> _library;
|
||||
ArbUt::CaseInsensitiveConstString _species;
|
||||
ArbUt::CaseInsensitiveConstString _variant = "default"_cnc;
|
||||
ArbUt::StringView _species;
|
||||
ArbUt::StringView _variant = "default"_cnc;
|
||||
uint8_t _level;
|
||||
std::string _nickname = "";
|
||||
|
||||
ArbUt::CaseInsensitiveConstString _talent = ""_cnc;
|
||||
ArbUt::StringView _talent = ""_cnc;
|
||||
Library::Gender _gender = static_cast<Library::Gender>(-1);
|
||||
uint8_t _coloring = 0;
|
||||
ArbUt::CaseInsensitiveConstString _heldItem = ""_cnc;
|
||||
ArbUt::StringView _heldItem = ""_cnc;
|
||||
uint32_t _identifier = 0;
|
||||
ArbUt::List<std::tuple<ArbUt::BorrowedPtr<const Library::AttackData>, AttackLearnMethod>> _attacks;
|
||||
|
||||
public:
|
||||
CreateCreature(ArbUt::BorrowedPtr<const BattleLibrary> library,
|
||||
const ArbUt::CaseInsensitiveConstString& species, uint8_t level)
|
||||
CreateCreature(ArbUt::BorrowedPtr<const BattleLibrary> library, const ArbUt::StringView& species, uint8_t level)
|
||||
: _library(library), _species(species), _level(level), _attacks(library->GetSettings()->GetMaximalMoves()) {
|
||||
}
|
||||
|
||||
CreateCreature WithVariant(const ArbUt::CaseInsensitiveConstString& variant);
|
||||
CreateCreature WithVariant(const ArbUt::StringView& variant);
|
||||
CreateCreature WithNickname(std::string nickname);
|
||||
CreateCreature WithGender(Library::Gender gender);
|
||||
CreateCreature WithAttack(const ArbUt::CaseInsensitiveConstString& attackName, AttackLearnMethod learnMethod);
|
||||
CreateCreature WithAttack(const ArbUt::StringView& attackName, AttackLearnMethod learnMethod);
|
||||
|
||||
Creature* Create();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user