Removes another unused dependency, performance improvements for MoveData
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
4fd8e8a757
commit
f79c4fba04
|
@ -1,11 +1,11 @@
|
||||||
#include "MoveData.hpp"
|
#include "MoveData.hpp"
|
||||||
#include <unitypes.h>
|
#include <utility>
|
||||||
PkmnLib::Library::MoveData::MoveData(std::string name, std::string type, PkmnLib::Library::MoveCategory category,
|
PkmnLib::Library::MoveData::MoveData(const std::string& name, const std::string& type,
|
||||||
uint8_t power, uint8_t accuracy, uint8_t baseUsage,
|
PkmnLib::Library::MoveCategory category, uint8_t power, uint8_t accuracy,
|
||||||
CreatureLib::Library::AttackTarget target, uint8_t priority,
|
uint8_t baseUsage, CreatureLib::Library::AttackTarget target, uint8_t priority,
|
||||||
std::unordered_set<std::string> flags)
|
std::unordered_set<std::string> flags)
|
||||||
: AttackData(name, type, static_cast<CreatureLib::Library::AttackCategory>(category), power, accuracy, baseUsage,
|
: AttackData(name, type, static_cast<CreatureLib::Library::AttackCategory>(category), power, accuracy, baseUsage,
|
||||||
target, priority, flags) {}
|
target, priority, std::move(flags)) {}
|
||||||
|
|
||||||
PkmnLib::Library::MoveCategory PkmnLib::Library::MoveData::GetCategory() const {
|
PkmnLib::Library::MoveCategory PkmnLib::Library::MoveData::GetCategory() const {
|
||||||
return static_cast<PkmnLib::Library::MoveCategory>(AttackData::GetCategory());
|
return static_cast<PkmnLib::Library::MoveCategory>(AttackData::GetCategory());
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace PkmnLib::Library {
|
||||||
private:
|
private:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MoveData(std::string name, std::string type, PkmnLib::Library::MoveCategory category, uint8_t power,
|
MoveData(const std::string& name, const std::string& type, PkmnLib::Library::MoveCategory category, uint8_t power,
|
||||||
uint8_t accuracy, uint8_t baseUsage, CreatureLib::Library::AttackTarget target, uint8_t priority,
|
uint8_t accuracy, uint8_t baseUsage, CreatureLib::Library::AttackTarget target, uint8_t priority,
|
||||||
std::unordered_set<std::string> flags);
|
std::unordered_set<std::string> flags);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue