Skip to content

Instantly share code, notes, and snippets.

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

Arn ArnCarveris

🎯
R&D
View GitHub Profile
@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
{
@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
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 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;
#pragma once
#include <vector>
#include <entt/entity/registry.hpp>
namespace entt
{
template<typename Entity>
class Animation;
@ArnCarveris
ArnCarveris / hierarchy.hpp
Last active May 22, 2024 16:33
EnTT Hierarchy
#pragma once
#include <entt/entity/registry.hpp>
namespace entt
{
/*! @brief TODO */
template<typename Entity>
class Hierarchy final {
using traits_type = entt_traits<Entity>;
@ArnCarveris
ArnCarveris / Saints Row Darkside.xccolortheme
Last active October 5, 2018 11:54
xcode 10 dark theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>1 0.501961 0 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>XcodeDigits - 12.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>1 1 1 1</string>
@ArnCarveris
ArnCarveris / encoded.hpp
Last active March 5, 2020 12:46
EnTT VM
#pragma once
#include "vm.hpp"
namespace entt
{
template<typename Code>
struct vm_encoded
{
memory_buffer opcode;
@ArnCarveris
ArnCarveris / group.hpp
Last active November 13, 2018 22:12
EnTT Core Group
#ifndef ENTT_CORE_GROUP_HPP
#define ENTT_CORE_GROUP_HPP
#include "family.hpp"
#include <vector>
namespace entt {
/*! @brief TODO */
@ArnCarveris
ArnCarveris / property.hpp
Created November 14, 2018 22:13
EnTT Core Property
#ifndef ENTT_CORE_PROPERTY_HPP
#define ENTT_CORE_PROPERTY_HPP
namespace entt {
template<typename, typename, char...>
class Property;
template<typename Registry>