Adds getter for UniqueIdentifier
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
2020-08-09 11:48:40 +02:00
parent fb56d0920d
commit 48660f3a4c
4 changed files with 32 additions and 1 deletions

View 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