and still not have to use pointers? (i.e.
                  
                  
                  
                  
                  
                  struct Components{
                  
                  
                    Vector<ComponentType> list;
                  
                  
                  };
                  
                  
                  std::unordered_map<ComponentTypeId, Components>
                  
                  
                  
                  
                  
                  it's easier using inheritance/polymorphism with a pointer, but that would kill cache locality
                  
                  
                
I do that with structs and contiguously allocated memory
Обсуждают сегодня