- Adjusted Material/Texture/Lighting outline.
This commit is contained in:
@@ -35,11 +35,8 @@
|
||||
#include <fennec/containers/list.h>
|
||||
#include <fennec/containers/optional.h>
|
||||
#include <fennec/containers/traversal.h>
|
||||
#include <fennec/math/exponential.h>
|
||||
#include <fennec/memory/allocator.h>
|
||||
|
||||
// TODO: this should probably be refactored to use pointers over tables
|
||||
|
||||
namespace fennec
|
||||
{
|
||||
|
||||
|
||||
@@ -241,15 +241,15 @@ public:
|
||||
/// \param type The type of component
|
||||
/// \param id The id of the component instance
|
||||
/// \return
|
||||
static component* get(uint64_t type, size_t id) {
|
||||
auto& typei = _typelist[type];
|
||||
return typei->get(id);
|
||||
static component* get(const component_t& c) {
|
||||
auto& typei = _typelist[c.type];
|
||||
return typei->get(c.id);
|
||||
}
|
||||
|
||||
template<typename ComponentT>
|
||||
static component* get(size_t comp) {
|
||||
static component* get(size_t id) {
|
||||
auto& typei = _typelist[uuid<ComponentT>()];
|
||||
return typei->get(comp);
|
||||
return typei->get(id);
|
||||
}
|
||||
|
||||
static void destroy(size_t type, size_t comp) {
|
||||
|
||||
Reference in New Issue
Block a user