PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
prefab_asset.h
1#pragma once
2
3#include "pixelbullet/scene/entity_id.h"
4#include "pixelbullet/scene/scene.h"
5
6namespace pixelbullet
7{
9{
10 Scene scene;
11 EntityId root_entity = EntityId::Invalid();
12
13 [[nodiscard]] bool IsValid() const noexcept
14 {
15 return root_entity && scene.IsAlive(root_entity);
16 }
17};
18} // namespace pixelbullet
Definition entity_id.h:11
Definition scene.h:23
Definition prefab_asset.h:9