Init
This commit is contained in:
25
test_allocationsDKM.cpp
Normal file
25
test_allocationsDKM.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#include <Tourmaline/Containers/DualkeyMap.hpp>
|
||||
#include <Tourmaline/Systems/ECS.hpp>
|
||||
#include <Tourmaline/Systems/Random.hpp>
|
||||
#include <Tourmaline/Types.hpp>
|
||||
#include <any>
|
||||
#include <cstdint>
|
||||
|
||||
using namespace Tourmaline::Containers;
|
||||
using namespace Tourmaline::Type;
|
||||
using namespace Tourmaline::Systems;
|
||||
|
||||
struct Transform : public ECS::Component {
|
||||
Transform(int64_t x = 10, int64_t y = 0, int64_t z = -10)
|
||||
: x(x), y(y), z(z) {}
|
||||
int64_t x, y, z;
|
||||
};
|
||||
|
||||
int main() {
|
||||
DualkeyMap<UUID, std::type_index, std::any> q;
|
||||
for (int x = 0; x < 100000; x++) {
|
||||
q.Insert(Random::GenerateUUID(), typeid(Transform), std::any(Transform()));
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user