PixelBullet
0.0.1
A C++ game engine
Loading...
Searching...
No Matches
engine
include
pixelbullet
scene
prefab_asset.h
1
#pragma once
2
3
#include "pixelbullet/scene/entity_id.h"
4
#include "pixelbullet/scene/scene.h"
5
6
namespace
pixelbullet
7
{
8
struct
PrefabAsset
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
pixelbullet::EntityId
Definition
entity_id.h:11
pixelbullet::Scene
Definition
scene.h:23
pixelbullet::PrefabAsset
Definition
prefab_asset.h:9
Generated by
1.16.1