Adds getter for UniqueIdentifier
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
15
tests/LibraryTests/SpeciesTest.cpp
Normal file
15
tests/LibraryTests/SpeciesTest.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifdef TESTS_BUILD
|
||||
|
||||
#include "../../extern/catch.hpp"
|
||||
#include "../../src/Library/CreatureData/CreatureSpecies.hpp"
|
||||
|
||||
using namespace CreatureLib::Library;
|
||||
|
||||
TEST_CASE("Set Variant", "[Library]") {
|
||||
auto defaultVariant = new SpeciesVariant("default", 0, 0, 0, {0, 1}, StatisticSet<uint16_t>(), {}, {}, nullptr);
|
||||
auto c = CreatureSpecies(0, "foo", defaultVariant, 0, "", 0);
|
||||
auto secondVariant = new SpeciesVariant("second", 0, 0, 0, {0, 1}, StatisticSet<uint16_t>(), {}, {}, nullptr);
|
||||
c.SetVariant("second"_cnc, secondVariant);
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user