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

Public Member Functions

EntityId CreateEntity ()
 
void DestroyEntity (EntityId entityId)
 
bool IsAlive (EntityId entityId) const
 
std::vector< EntityIdGetEntities () const
 
template<typename T , typename... Args>
T & AddComponent (EntityId entityId, Args &&... args)
 
template<typename T >
void RemoveComponent (EntityId entityId)
 
template<typename T >
bool HasComponent (EntityId entityId) const
 
template<typename T >
void RegisterComponent (std::string_view serializationName)
 
template<typename T >
T & GetComponent (EntityId entityId)
 
template<typename T >
const T & GetComponent (EntityId entityId) 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
 
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: