adds index to entities
adds index to entities

since the entity manager class works with entities including details
the index is needed for when delting entities, so it was added to the entity object

since an entity is never really deleted (just set to not used) there is no problem
with having to reindex entities when deleting

GGAlanSmithee/Entities,GGAlanSmithee/Entities