#include <Registry.h>
|
| | FxEntityRegistry ()=default |
| |
| | FxEntityRegistry (size_t max_size) |
| |
| bool | add (const std::shared_ptr< FxEntity > &entity) override |
| |
| bool | remove (const std::string &name) override |
| |
| void | clear () |
| |
| void | enable_collision (const std::string &entity1_name, const std::string &entity2_name) |
| |
| void | disable_collision (const std::string &entity1_name, const std::string &entity2_name) |
| |
| std::vector< std::pair< size_t, size_t > > | get_broad_phase_pairs (float sweep_dt=0.0f) const |
| |
| void | get_broad_phase_pairs (std::vector< std::pair< size_t, size_t > > &pairs, float sweep_dt=0.0f, bool sweep_all_movers=false, bool skip_sleeping_pairs=true) const |
| |
| bool | sync_broad_phase (float sweep_dt=0.0f, bool sweep_all_movers=false) const |
| |
| void | collect_broad_phase_pairs (std::vector< std::pair< size_t, size_t > > &pairs, bool skip_sleeping_pairs=true) const |
| |
| | FxNamedRegistry ()=default |
| |
| | FxNamedRegistry (size_t max_size) |
| |
| void | reserve (size_t n) |
| |
| size_t | size () const noexcept |
| |
| bool | empty () const noexcept |
| |
| void | set_max_size (size_t n) |
| |
| std::shared_ptr< FxEntity > | get (const std::string &name) const |
| |
| FxEntity * | get_rawptr (const std::string &name) const noexcept |
| |
| std::string | make_unique_name (const std::string &base) const |
| |
| const std::vector< std::shared_ptr< FxEntity > > & | items () const noexcept |
| |
| std::vector< std::shared_ptr< FxEntity > > & | items () noexcept |
| |
| void | clear () |
| |
| void | shrink_to_fit () |
| |
| void | for_each (ExecPolicy &&policy, Func &&func) |
| |
| void | transform (ExecPolicy &&policy, Func &&func, std::vector< std::invoke_result_t< Func, std::shared_ptr< FxEntity > > > &results) |
| |
Definition at line 221 of file Registry.h.
◆ FxEntityRegistry() [1/2]
| FxEntityRegistry::FxEntityRegistry |
( |
| ) |
|
|
default |
◆ FxEntityRegistry() [2/2]
| FxEntityRegistry::FxEntityRegistry |
( |
size_t |
max_size | ) |
|
|
inlineexplicit |
◆ add()
| bool FxEntityRegistry::add |
( |
const std::shared_ptr< FxEntity > & |
entity | ) |
|
|
inlineoverridevirtual |
◆ clear()
| void FxEntityRegistry::clear |
( |
| ) |
|
|
inline |
◆ collect_broad_phase_pairs()
| void FxEntityRegistry::collect_broad_phase_pairs |
( |
std::vector< std::pair< size_t, size_t > > & |
pairs, |
|
|
bool |
skip_sleeping_pairs = true |
|
) |
| const |
|
inline |
◆ disable_collision()
| void FxEntityRegistry::disable_collision |
( |
const std::string & |
entity1_name, |
|
|
const std::string & |
entity2_name |
|
) |
| |
|
inline |
◆ enable_collision()
| void FxEntityRegistry::enable_collision |
( |
const std::string & |
entity1_name, |
|
|
const std::string & |
entity2_name |
|
) |
| |
|
inline |
◆ get_broad_phase_pairs() [1/2]
| std::vector< std::pair< size_t, size_t > > FxEntityRegistry::get_broad_phase_pairs |
( |
float |
sweep_dt = 0.0f | ) |
const |
|
inline |
◆ get_broad_phase_pairs() [2/2]
| void FxEntityRegistry::get_broad_phase_pairs |
( |
std::vector< std::pair< size_t, size_t > > & |
pairs, |
|
|
float |
sweep_dt = 0.0f, |
|
|
bool |
sweep_all_movers = false, |
|
|
bool |
skip_sleeping_pairs = true |
|
) |
| const |
|
inline |
◆ remove()
| bool FxEntityRegistry::remove |
( |
const std::string & |
name | ) |
|
|
inlineoverridevirtual |
◆ sync_broad_phase()
| bool FxEntityRegistry::sync_broad_phase |
( |
float |
sweep_dt = 0.0f, |
|
|
bool |
sweep_all_movers = false |
|
) |
| const |
|
inline |
The documentation for this class was generated from the following file: