![]() |
neoGFX
Cross-platform C++ app/game engine
|
#include <component.hpp>
Classes | |
class | scoped_snapshot |
Public Types | |
typedef base_type::data_type | data_type |
typedef base_type::data_meta_type | data_meta_type |
typedef base_type::value_type | value_type |
typedef base_type::component_data_t | component_data_t |
typedef std::vector< entity_id > | component_data_entities_t |
typedef component_data_t::size_type | reverse_index_t |
typedef std::vector< reverse_index_t > | reverse_indices_t |
typedef std::vector< reverse_index_t > | free_indices_t |
typedef std::unique_ptr< self_type > | snapshot_ptr |
![]() | |
typedef detail::crack_component_data< Data >::data_type | data_type |
typedef data_type::meta | data_meta_type |
typedef detail::crack_component_data< Data >::value_type | value_type |
typedef detail::crack_component_data< Data >::container_type | component_data_t |
Public Member Functions | |
static_component (game::i_ecs &aEcs) | |
static_component (const self_type &aOther) | |
self_type & | operator= (const self_type &aRhs) |
entity_id | entity (const data_type &aData) const |
const component_data_entities_t & | entities () const |
component_data_entities_t & | entities () |
const reverse_indices_t & | reverse_indices () const |
reverse_indices_t & | reverse_indices () |
reverse_index_t | reverse_index (entity_id aEntity) const |
bool | has_entity_record (entity_id aEntity) const override |
const data_type & | entity_record (entity_id aEntity) const |
value_type & | entity_record (entity_id aEntity) |
void | destroy_entity_record (entity_id aEntity) override |
value_type & | populate (entity_id aEntity, const value_type &aData) |
value_type & | populate (entity_id aEntity, value_type &&aData) |
void * | populate (entity_id aEntity, const void *aComponentData, std::size_t aComponentDataSize) override |
bool | have_snapshot () const |
void | take_snapshot () |
scoped_snapshot | snapshot () |
template<typename Compare > | |
void | sort (Compare aComparator) |
![]() | |
static_component_base (game::i_ecs &aEcs) | |
static_component_base (const self_type &aOther) | |
self_type & | operator= (const self_type &aRhs) |
game::i_ecs & | ecs () const override |
const component_id & | id () const override |
std::recursive_mutex & | mutex () const |
bool | is_data_optional () const override |
const i_string & | name () const override |
uint32_t | field_count () const override |
component_data_field_type | field_type (uint32_t aFieldIndex) const override |
neolib::uuid | field_type_id (uint32_t aFieldIndex) const override |
const i_string & | field_name (uint32_t aFieldIndex) const override |
const component_data_t & | component_data () const |
component_data_t & | component_data () |
const value_type & | operator[] (typename component_data_t::size_type aIndex) const |
value_type & | operator[] (typename component_data_t::size_type aIndex) |
![]() | |
template<typename ComponentData > | |
void * | populate (entity_id aEntity, ComponentData &&aComponentData) |
![]() | |
virtual | ~i_component_base ()=default |
Definition at line 184 of file component.hpp.
typedef std::vector<entity_id> neogfx::game::static_component< Data >::component_data_entities_t |
Definition at line 196 of file component.hpp.
typedef base_type::component_data_t neogfx::game::static_component< Data >::component_data_t |
Definition at line 195 of file component.hpp.
typedef base_type::data_meta_type neogfx::game::static_component< Data >::data_meta_type |
Definition at line 193 of file component.hpp.
typedef base_type::data_type neogfx::game::static_component< Data >::data_type |
Definition at line 192 of file component.hpp.
typedef std::vector<reverse_index_t> neogfx::game::static_component< Data >::free_indices_t |
Definition at line 199 of file component.hpp.
typedef component_data_t::size_type neogfx::game::static_component< Data >::reverse_index_t |
Definition at line 197 of file component.hpp.
typedef std::vector<reverse_index_t> neogfx::game::static_component< Data >::reverse_indices_t |
Definition at line 198 of file component.hpp.
typedef std::unique_ptr<self_type> neogfx::game::static_component< Data >::snapshot_ptr |
Definition at line 201 of file component.hpp.
typedef base_type::value_type neogfx::game::static_component< Data >::value_type |
Definition at line 194 of file component.hpp.
|
inline |
Definition at line 233 of file component.hpp.
|
inline |
Definition at line 239 of file component.hpp.
|
inlineoverridevirtual |
Implements neogfx::game::i_component.
Definition at line 316 of file component.hpp.
|
inline |
Definition at line 279 of file component.hpp.
|
inline |
Definition at line 283 of file component.hpp.
|
inline |
Definition at line 272 of file component.hpp.
|
inline |
Definition at line 305 of file component.hpp.
|
inline |
Definition at line 312 of file component.hpp.
|
inlineoverridevirtual |
Implements neogfx::game::i_component.
Definition at line 301 of file component.hpp.
|
inline |
Definition at line 356 of file component.hpp.
|
inline |
Definition at line 249 of file component.hpp.
|
inline |
Definition at line 338 of file component.hpp.
|
inline |
Definition at line 342 of file component.hpp.
|
inlineoverridevirtual |
Implements neogfx::game::i_component.
Definition at line 346 of file component.hpp.
|
inline |
Definition at line 295 of file component.hpp.
|
inline |
Definition at line 287 of file component.hpp.
|
inline |
Definition at line 291 of file component.hpp.
|
inline |
Definition at line 372 of file component.hpp.
|
inline |
Definition at line 378 of file component.hpp.
|
inline |
Definition at line 360 of file component.hpp.