Пригарин Олег Юрьевич c8b6287b76 Economy ECS API base
2025-07-03 21:51:21 +03:00

28 lines
746 B
C++

#pragma once
#include <entt/entt.hpp>
#include "defines.h"
#include "enterprise_defaults.h"
namespace ee_ecs
{
class world
{
private:
entt::registry registry;
public:
/// <summary>
/// Run every registered system
/// </summary>
void update();
/// <summary>
/// Register new enterprise entity in specified state
/// </summary>
/// <param name="action">represents type of activity that enterprise do every tick</param>
/// <param name="state">is ID of state entity where enterprise will be placed</param>
/// <param name="defaults">is initial properties of enterprise</param>
void spawn_enterprise(const bool is_building, const ACTION_TYPE action, const entt::entity state, const enterprise_defaults defaults);
};
}