ECS Implementation
reddit.com·23h·
Discuss: r/cpp

Heyya reddit, i am making a game engine as a hobby and i was wondering if anyone would like to give some feedback on my ECS implementation. (I haven’t measured it so idk about performance.)

What i want to know is that if this is a “correct” way to implement such a thing.

Thank you for the feedback.

#ifndef IKK_ECS_HPP
#define IKK_ECS_HPP


#include <unordered_map>
#include <algorithm>
#include <expected>
#include <vector>


#include "InariKonKon/Utility/NonConstructible.hpp"
#include "InariKonKon/ECS/Entities/Entity.hpp"
#include "InariKonKon/ECS/Systems/System.hpp"
#include "InariKonKon/Utility/Error.hpp"


namespace ikk
{
class ECS final : public NonConstructible
{
public:
template<std::derived_from<Component> T>
static void addComponentToEntity(const Entity& entity, T&& co...

Similar Posts

Loading similar posts...