Implement basic type library.
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:
@@ -6,6 +6,7 @@
|
||||
#include "ItemLibrary.hpp"
|
||||
#include "GrowthRates/GrowthRateLibrary.hpp"
|
||||
#include "LibrarySettings.hpp"
|
||||
#include "TypeLibrary.hpp"
|
||||
|
||||
namespace CreatureLib::Library {
|
||||
/*!
|
||||
@@ -18,12 +19,14 @@ namespace CreatureLib::Library {
|
||||
const AttackLibrary* _attacks;
|
||||
const ItemLibrary* _items;
|
||||
const GrowthRateLibrary* _growthRates;
|
||||
const TypeLibrary* _typeLibrary;
|
||||
public:
|
||||
DataLibrary(LibrarySettings settings,
|
||||
CreatureLib::Library::SpeciesLibrary *species,
|
||||
CreatureLib::Library::AttackLibrary *attacks,
|
||||
CreatureLib::Library::ItemLibrary *items,
|
||||
CreatureLib::Library::GrowthRateLibrary *growthRates
|
||||
CreatureLib::Library::GrowthRateLibrary *growthRates,
|
||||
TypeLibrary* typeLibrary
|
||||
);
|
||||
|
||||
~DataLibrary(){
|
||||
@@ -31,6 +34,7 @@ namespace CreatureLib::Library {
|
||||
delete _attacks;
|
||||
delete _items;
|
||||
delete _growthRates;
|
||||
delete _typeLibrary;
|
||||
}
|
||||
|
||||
[[nodiscard]] const LibrarySettings& GetSettings() const;
|
||||
@@ -38,6 +42,7 @@ namespace CreatureLib::Library {
|
||||
[[nodiscard]] const AttackLibrary* GetAttackLibrary() const;
|
||||
[[nodiscard]] const ItemLibrary* GetItemLibrary() const;
|
||||
[[nodiscard]] const GrowthRateLibrary* GetGrowthRates() const;
|
||||
[[nodiscard]] const TypeLibrary* GetTypeLibrary() const;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user