Skip to content

Instantly share code, notes, and snippets.

View ArnCarveris's full-sized avatar
🎯
R&D

Arn ArnCarveris

🎯
R&D
View GitHub Profile
#pragma once
#include <vector>
#include <entt/entity/registry.hpp>
namespace entt
{
template<typename Entity>
class Animation;
@ArnCarveris
ArnCarveris / main.cpp
Created March 3, 2018 19:21
EnTT entity relationship
#include <entt/entt_traits.hpp>
#include <vector>
namespace entt
{
template<typename Entity> struct relationship
{
using traits_type = entt_traits<Entity>;
using entity_type = typename traits_type::entity_type;
@ArnCarveris
ArnCarveris / main.cpp
Created February 26, 2018 20:03
EnTT scene test
namespace entt
{
template <std::uint64_t Type> class SceneKey
{
public:
static constexpr std::uint64_t type = Type;
std::uint64_t id;
};
@ArnCarveris
ArnCarveris / main.cpp
Created February 26, 2018 01:52
RuntimeFamily Test
#include <gtest/gtest.h>
#include <entt/core/family.hpp>
#include <deque>
#include <vector>
namespace entt {
class RuntimeFamily {
std::size_t value = 0;
@ArnCarveris
ArnCarveris / main.cpp
Last active February 21, 2018 19:26
EnTT grouping

#include <entt/entt.hpp>
#include <cstdint>
#include <deque>
namespace entt
{
template<typename Entity> using Group = Registry<Entity>;
template<typename Entity> class GroupRegistry
{