package ecs

// removeBatch performs batch-removal of components.
func removeBatch( *World,  *Batch,  []ID,  func( Entity)) {
	var  func( tableID, ,  uint32)
	if  != nil {
		 = func( tableID, ,  uint32) {
			 := .storage.tables[]

			for  := range  {
				 := uintptr( + )
				(.GetEntity())
			}
		}
	}
	.exchangeBatch(, nil, , nil, )
}

// setRelationsBatch performs batch relation changes.
func setRelationsBatch( *World,  *Batch,  func( Entity),  []relationID) {
	var  func( tableID, ,  int)
	if  != nil {
		 = func( tableID, ,  int) {
			 := .storage.tables[]

			for  := range  {
				 := uintptr( + )
				(.GetEntity())
			}
		}
	}
	.setRelationsBatch(, , )
}