public void Execute(int index) { var typeHash = TypeHashes[index]; var typeIndex = TypeManager.GetTypeIndexFromStableTypeHash(typeHash.StableTypeHash); var type = TypeManager.GetType(typeIndex); ComponentType componentType; if ((typeHash.Flags & ComponentTypeFlags.ChunkComponent) == ComponentTypeFlags.ChunkComponent) { componentType = ComponentType.ChunkComponent(type); } else { componentType = new ComponentType(type); } PackedTypes[index] = componentType; }