26 lines
658 B
C++
26 lines
658 B
C++
#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;
|
|
}
|