Unravel Engine C++ Reference
Loading...
Searching...
No Matches
model_system.h
Go to the documentation of this file.
1#pragma once
2
3#include <base/basetypes.hpp>
4#include <context/context.hpp>
5#include <engine/ecs/scene.h>
6#include <hpp/span.hpp>
7
8namespace unravel
9{
10
12{
13public:
14 auto init(rtti::context& ctx) -> bool;
15 auto deinit(rtti::context& ctx) -> bool;
17 void on_play_begin(hpp::span<const entt::handle> entities, delta_t dt);
18 void on_frame_update(scene& scn, delta_t dt);
20
21private:
22 std::shared_ptr<int> sentinel_ = std::make_shared<int>(0);
23};
24} // namespace unravel
auto deinit(rtti::context &ctx) -> bool
void on_frame_before_render(scene &scn, delta_t dt)
void on_play_begin(rtti::context &ctx)
void on_frame_update(scene &scn, delta_t dt)
auto init(rtti::context &ctx) -> bool
std::chrono::duration< float > delta_t
Represents a scene in the ACE framework, managing entities and their relationships.
Definition scene.h:70