internal static Entity RegisterEntity(int index, Entity entity) { entityDictionary[index] = entity; return entity; }