Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using Svelto.ECS.Internal;
-
- namespace Svelto.ECS
- {
- public struct EGIDMapper<T> where T : IEntityStruct
- {
- internal TypeSafeDictionary<T> map;
-
- public ref T entity(EGID id)
- {
- int count;
- var index = map.FindElementIndex(id.entityID);
- return ref map.GetValuesArray(out count)[index];
- }
- }
- }
|