PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
pixelbullet::Scene Class Reference

Public Member Functions

 Scene (SceneComponentDefaults defaults=SceneComponentDefaults::Engine)
EntityId CreateEntity ()
void DestroyEntity (EntityId entity_id)
bool IsAlive (EntityId entity_id) const
std::vector< EntityIdGetEntities () const
template<typename T, typename... Args>
T & AddComponent (EntityId entity_id, Args &&... args)
template<typename T>
void RemoveComponent (EntityId entity_id)
template<typename T>
bool HasComponent (EntityId entity_id) const
template<typename T>
void RegisterComponent (std::string_view serialization_name)
void RegisterComponentTypesFrom (const Scene &source)
std::vector< std::string > GetRegisteredComponentNames () const
template<typename T>
T & GetComponent (EntityId entity_id)
template<typename T>
const T & GetComponent (EntityId entity_id) const
template<typename T>
const SparseSet< T > & GetComponentSet () const
template<typename T, typename Func>
void Each (Func &&func)
template<typename T, typename Func>
void Each (Func &&func) const
SceneEnvironmentSettingsGetEnvironmentSettings () noexcept
const SceneEnvironmentSettingsGetEnvironmentSettings () const noexcept
void SetEnvironmentSettings (SceneEnvironmentSettings settings) noexcept
uint64_t GetMutationGeneration () const noexcept
template<typename T, typename U, typename Func>
void Each (Func &&func)
template<typename T, typename U, typename Func>
void Each (Func &&func) const

Friends

class SceneSerializer
Nodeoperator<< (Node &node, const Scene &scene)
const Nodeoperator>> (const Node &node, Scene &scene)

The documentation for this class was generated from the following files: