//go:build !ark_debug

package ecs

// Code generated by go generate; DO NOT EDIT.

import 

// Next advances the query's cursor to the next entity.
//
// For alternative, faster iteration over tables, use [Query0.NextTable].
func ( *Query0) () bool {
	if int64(.cursor.index) < .cursor.maxIndex {
		.cursor.index++
		return true
	}
	return .nextTableOrArchetype()
}

// NextTable advances the query's cursor to the next table.
// Use [Query0.GetColumns] to get the current table's component columns.
//
// For alternative iteration over entities, use [Query0.Next].
func ( *Query0) () bool {
	return .nextTableOrArchetype()
}

// Entity returns the current entity.
// Use this with entity iteration using [Query0.Next].
func ( *Query0) () Entity {
	return .table.GetEntity(.cursor.index)
}

// Entities returns the entities of the current table.
// Use this with table-based iteration using [Query0.NextTable].
//
// ⚠️ Do not set/replace any of the slice elements!
func ( *Query0) () []Entity {
	return .table.entities.data.Interface().([]Entity)[:.table.len:.table.len]
}

// Next advances the query's cursor to the next entity.
//
// For alternative, faster iteration over tables, use [Query1.NextTable].
func ( *Query1[]) () bool {
	if int64(.cursor.index) < .cursor.maxIndex {
		.cursor.index++
		return true
	}
	return .nextTableOrArchetype()
}

// NextTable advances the query's cursor to the next table.
// Use [Query1.GetColumns] to get the current table's component columns.
//
// For alternative iteration over entities, use [Query1.Next].
func ( *Query1[]) () bool {
	return .nextTableOrArchetype()
}

// Entity returns the current entity.
// Use this with entity iteration using [Query1.Next].
func ( *Query1[]) () Entity {
	return .table.GetEntity(.cursor.index)
}

// Entities returns the entities of the current table.
// Use this with table-based iteration using [Query1.NextTable].
//
// ⚠️ Do not set/replace any of the slice elements!
func ( *Query1[]) () []Entity {
	return .table.entities.data.Interface().([]Entity)[:.table.len:.table.len]
}

// Get returns the queried components of the current entity.
// Use this with entity iteration using [Query1.Next].
//
// ⚠️ Do not store the obtained pointers outside of the current context (i.e. the query loop)!
func ( *Query1[]) () * {
	 := .cursor.index
	return (*)(unsafe.Add(.columnPtrA, *.itemSizeA))
}

// GetColumns returns the queried component columns of the current table.
// Use this with table-based iteration using [Query1.NextTable].
func ( *Query1[]) () [] {
	return .columnA.data.Interface().([])[:.table.len:.table.len]
}

// Next advances the query's cursor to the next entity.
//
// For alternative, faster iteration over tables, use [Query2.NextTable].
func ( *Query2[, ]) () bool {
	if int64(.cursor.index) < .cursor.maxIndex {
		.cursor.index++
		return true
	}
	return .nextTableOrArchetype()
}

// NextTable advances the query's cursor to the next table.
// Use [Query2.GetColumns] to get the current table's component columns.
//
// For alternative iteration over entities, use [Query2.Next].
func ( *Query2[, ]) () bool {
	return .nextTableOrArchetype()
}

// Entity returns the current entity.
// Use this with entity iteration using [Query2.Next].
func ( *Query2[, ]) () Entity {
	return .table.GetEntity(.cursor.index)
}

// Entities returns the entities of the current table.
// Use this with table-based iteration using [Query2.NextTable].
//
// ⚠️ Do not set/replace any of the slice elements!
func ( *Query2[, ]) () []Entity {
	return .table.entities.data.Interface().([]Entity)[:.table.len:.table.len]
}

// Get returns the queried components of the current entity.
// Use this with entity iteration using [Query2.Next].
//
// ⚠️ Do not store the obtained pointers outside of the current context (i.e. the query loop)!
func ( *Query2[, ]) () (*, *) {
	 := .cursor.index
	return (*)(unsafe.Add(.columnPtrA, *.itemSizeA)),
		(*)(unsafe.Add(.columnPtrB, *.itemSizeB))
}

// GetColumns returns the queried component columns of the current table.
// Use this with table-based iteration using [Query2.NextTable].
func ( *Query2[, ]) () ([], []) {
	return .columnA.data.Interface().([])[:.table.len:.table.len],
		.columnB.data.Interface().([])[:.table.len:.table.len]
}

// Next advances the query's cursor to the next entity.
//
// For alternative, faster iteration over tables, use [Query3.NextTable].
func ( *Query3[, , ]) () bool {
	if int64(.cursor.index) < .cursor.maxIndex {
		.cursor.index++
		return true
	}
	return .nextTableOrArchetype()
}

// NextTable advances the query's cursor to the next table.
// Use [Query3.GetColumns] to get the current table's component columns.
//
// For alternative iteration over entities, use [Query3.Next].
func ( *Query3[, , ]) () bool {
	return .nextTableOrArchetype()
}

// Entity returns the current entity.
// Use this with entity iteration using [Query3.Next].
func ( *Query3[, , ]) () Entity {
	return .table.GetEntity(.cursor.index)
}

// Entities returns the entities of the current table.
// Use this with table-based iteration using [Query3.NextTable].
//
// ⚠️ Do not set/replace any of the slice elements!
func ( *Query3[, , ]) () []Entity {
	return .table.entities.data.Interface().([]Entity)[:.table.len:.table.len]
}

// Get returns the queried components of the current entity.
// Use this with entity iteration using [Query3.Next].
//
// ⚠️ Do not store the obtained pointers outside of the current context (i.e. the query loop)!
func ( *Query3[, , ]) () (*, *, *) {
	 := .cursor.index
	return (*)(unsafe.Add(.columnPtrA, *.itemSizeA)),
		(*)(unsafe.Add(.columnPtrB, *.itemSizeB)),
		(*)(unsafe.Add(.columnPtrC, *.itemSizeC))
}

// GetColumns returns the queried component columns of the current table.
// Use this with table-based iteration using [Query3.NextTable].
func ( *Query3[, , ]) () ([], [], []) {
	return .columnA.data.Interface().([])[:.table.len:.table.len],
		.columnB.data.Interface().([])[:.table.len:.table.len],
		.columnC.data.Interface().([])[:.table.len:.table.len]
}

// Next advances the query's cursor to the next entity.
//
// For alternative, faster iteration over tables, use [Query4.NextTable].
func ( *Query4[, , , ]) () bool {
	if int64(.cursor.index) < .cursor.maxIndex {
		.cursor.index++
		return true
	}
	return .nextTableOrArchetype()
}

// NextTable advances the query's cursor to the next table.
// Use [Query4.GetColumns] to get the current table's component columns.
//
// For alternative iteration over entities, use [Query4.Next].
func ( *Query4[, , , ]) () bool {
	return .nextTableOrArchetype()
}

// Entity returns the current entity.
// Use this with entity iteration using [Query4.Next].
func ( *Query4[, , , ]) () Entity {
	return .table.GetEntity(.cursor.index)
}

// Entities returns the entities of the current table.
// Use this with table-based iteration using [Query4.NextTable].
//
// ⚠️ Do not set/replace any of the slice elements!
func ( *Query4[, , , ]) () []Entity {
	return .table.entities.data.Interface().([]Entity)[:.table.len:.table.len]
}

// Get returns the queried components of the current entity.
// Use this with entity iteration using [Query4.Next].
//
// ⚠️ Do not store the obtained pointers outside of the current context (i.e. the query loop)!
func ( *Query4[, , , ]) () (*, *, *, *) {
	 := .cursor.index
	return (*)(unsafe.Add(.columnPtrA, *.itemSizeA)),
		(*)(unsafe.Add(.columnPtrB, *.itemSizeB)),
		(*)(unsafe.Add(.columnPtrC, *.itemSizeC)),
		(*)(unsafe.Add(.columnPtrD, *.itemSizeD))
}

// GetColumns returns the queried component columns of the current table.
// Use this with table-based iteration using [Query4.NextTable].
func ( *Query4[, , , ]) () ([], [], [], []) {
	return .columnA.data.Interface().([])[:.table.len:.table.len],
		.columnB.data.Interface().([])[:.table.len:.table.len],
		.columnC.data.Interface().([])[:.table.len:.table.len],
		.columnD.data.Interface().([])[:.table.len:.table.len]
}

// Next advances the query's cursor to the next entity.
//
// For alternative, faster iteration over tables, use [Query5.NextTable].
func ( *Query5[, , , , ]) () bool {
	if int64(.cursor.index) < .cursor.maxIndex {
		.cursor.index++
		return true
	}
	return .nextTableOrArchetype()
}

// NextTable advances the query's cursor to the next table.
// Use [Query5.GetColumns] to get the current table's component columns.
//
// For alternative iteration over entities, use [Query5.Next].
func ( *Query5[, , , , ]) () bool {
	return .nextTableOrArchetype()
}

// Entity returns the current entity.
// Use this with entity iteration using [Query5.Next].
func ( *Query5[, , , , ]) () Entity {
	return .table.GetEntity(.cursor.index)
}

// Entities returns the entities of the current table.
// Use this with table-based iteration using [Query5.NextTable].
//
// ⚠️ Do not set/replace any of the slice elements!
func ( *Query5[, , , , ]) () []Entity {
	return .table.entities.data.Interface().([]Entity)[:.table.len:.table.len]
}

// Get returns the queried components of the current entity.
// Use this with entity iteration using [Query5.Next].
//
// ⚠️ Do not store the obtained pointers outside of the current context (i.e. the query loop)!
func ( *Query5[, , , , ]) () (*, *, *, *, *) {
	 := .cursor.index
	return (*)(unsafe.Add(.columnPtrA, *.itemSizeA)),
		(*)(unsafe.Add(.columnPtrB, *.itemSizeB)),
		(*)(unsafe.Add(.columnPtrC, *.itemSizeC)),
		(*)(unsafe.Add(.columnPtrD, *.itemSizeD)),
		(*)(unsafe.Add(.columnPtrE, *.itemSizeE))
}

// GetColumns returns the queried component columns of the current table.
// Use this with table-based iteration using [Query5.NextTable].
func ( *Query5[, , , , ]) () ([], [], [], [], []) {
	return .columnA.data.Interface().([])[:.table.len:.table.len],
		.columnB.data.Interface().([])[:.table.len:.table.len],
		.columnC.data.Interface().([])[:.table.len:.table.len],
		.columnD.data.Interface().([])[:.table.len:.table.len],
		.columnE.data.Interface().([])[:.table.len:.table.len]
}

// Next advances the query's cursor to the next entity.
//
// For alternative, faster iteration over tables, use [Query6.NextTable].
func ( *Query6[, , , , , ]) () bool {
	if int64(.cursor.index) < .cursor.maxIndex {
		.cursor.index++
		return true
	}
	return .nextTableOrArchetype()
}

// NextTable advances the query's cursor to the next table.
// Use [Query6.GetColumns] to get the current table's component columns.
//
// For alternative iteration over entities, use [Query6.Next].
func ( *Query6[, , , , , ]) () bool {
	return .nextTableOrArchetype()
}

// Entity returns the current entity.
// Use this with entity iteration using [Query6.Next].
func ( *Query6[, , , , , ]) () Entity {
	return .table.GetEntity(.cursor.index)
}

// Entities returns the entities of the current table.
// Use this with table-based iteration using [Query6.NextTable].
//
// ⚠️ Do not set/replace any of the slice elements!
func ( *Query6[, , , , , ]) () []Entity {
	return .table.entities.data.Interface().([]Entity)[:.table.len:.table.len]
}

// Get returns the queried components of the current entity.
// Use this with entity iteration using [Query6.Next].
//
// ⚠️ Do not store the obtained pointers outside of the current context (i.e. the query loop)!
func ( *Query6[, , , , , ]) () (*, *, *, *, *, *) {
	 := .cursor.index
	return (*)(unsafe.Add(.columnPtrA, *.itemSizeA)),
		(*)(unsafe.Add(.columnPtrB, *.itemSizeB)),
		(*)(unsafe.Add(.columnPtrC, *.itemSizeC)),
		(*)(unsafe.Add(.columnPtrD, *.itemSizeD)),
		(*)(unsafe.Add(.columnPtrE, *.itemSizeE)),
		(*)(unsafe.Add(.columnPtrF, *.itemSizeF))
}

// GetColumns returns the queried component columns of the current table.
// Use this with table-based iteration using [Query6.NextTable].
func ( *Query6[, , , , , ]) () ([], [], [], [], [], []) {
	return .columnA.data.Interface().([])[:.table.len:.table.len],
		.columnB.data.Interface().([])[:.table.len:.table.len],
		.columnC.data.Interface().([])[:.table.len:.table.len],
		.columnD.data.Interface().([])[:.table.len:.table.len],
		.columnE.data.Interface().([])[:.table.len:.table.len],
		.columnF.data.Interface().([])[:.table.len:.table.len]
}

// Next advances the query's cursor to the next entity.
//
// For alternative, faster iteration over tables, use [Query7.NextTable].
func ( *Query7[, , , , , , ]) () bool {
	if int64(.cursor.index) < .cursor.maxIndex {
		.cursor.index++
		return true
	}
	return .nextTableOrArchetype()
}

// NextTable advances the query's cursor to the next table.
// Use [Query7.GetColumns] to get the current table's component columns.
//
// For alternative iteration over entities, use [Query7.Next].
func ( *Query7[, , , , , , ]) () bool {
	return .nextTableOrArchetype()
}

// Entity returns the current entity.
// Use this with entity iteration using [Query7.Next].
func ( *Query7[, , , , , , ]) () Entity {
	return .table.GetEntity(.cursor.index)
}

// Entities returns the entities of the current table.
// Use this with table-based iteration using [Query7.NextTable].
//
// ⚠️ Do not set/replace any of the slice elements!
func ( *Query7[, , , , , , ]) () []Entity {
	return .table.entities.data.Interface().([]Entity)[:.table.len:.table.len]
}

// Get returns the queried components of the current entity.
// Use this with entity iteration using [Query7.Next].
//
// ⚠️ Do not store the obtained pointers outside of the current context (i.e. the query loop)!
func ( *Query7[, , , , , , ]) () (*, *, *, *, *, *, *) {
	 := .cursor.index
	return (*)(unsafe.Add(.columnPtrA, *.itemSizeA)),
		(*)(unsafe.Add(.columnPtrB, *.itemSizeB)),
		(*)(unsafe.Add(.columnPtrC, *.itemSizeC)),
		(*)(unsafe.Add(.columnPtrD, *.itemSizeD)),
		(*)(unsafe.Add(.columnPtrE, *.itemSizeE)),
		(*)(unsafe.Add(.columnPtrF, *.itemSizeF)),
		(*)(unsafe.Add(.columnPtrG, *.itemSizeG))
}

// GetColumns returns the queried component columns of the current table.
// Use this with table-based iteration using [Query7.NextTable].
func ( *Query7[, , , , , , ]) () ([], [], [], [], [], [], []) {
	return .columnA.data.Interface().([])[:.table.len:.table.len],
		.columnB.data.Interface().([])[:.table.len:.table.len],
		.columnC.data.Interface().([])[:.table.len:.table.len],
		.columnD.data.Interface().([])[:.table.len:.table.len],
		.columnE.data.Interface().([])[:.table.len:.table.len],
		.columnF.data.Interface().([])[:.table.len:.table.len],
		.columnG.data.Interface().([])[:.table.len:.table.len]
}

// Next advances the query's cursor to the next entity.
//
// For alternative, faster iteration over tables, use [Query8.NextTable].
func ( *Query8[, , , , , , , ]) () bool {
	if int64(.cursor.index) < .cursor.maxIndex {
		.cursor.index++
		return true
	}
	return .nextTableOrArchetype()
}

// NextTable advances the query's cursor to the next table.
// Use [Query8.GetColumns] to get the current table's component columns.
//
// For alternative iteration over entities, use [Query8.Next].
func ( *Query8[, , , , , , , ]) () bool {
	return .nextTableOrArchetype()
}

// Entity returns the current entity.
// Use this with entity iteration using [Query8.Next].
func ( *Query8[, , , , , , , ]) () Entity {
	return .table.GetEntity(.cursor.index)
}

// Entities returns the entities of the current table.
// Use this with table-based iteration using [Query8.NextTable].
//
// ⚠️ Do not set/replace any of the slice elements!
func ( *Query8[, , , , , , , ]) () []Entity {
	return .table.entities.data.Interface().([]Entity)[:.table.len:.table.len]
}

// Get returns the queried components of the current entity.
// Use this with entity iteration using [Query8.Next].
//
// ⚠️ Do not store the obtained pointers outside of the current context (i.e. the query loop)!
func ( *Query8[, , , , , , , ]) () (*, *, *, *, *, *, *, *) {
	 := .cursor.index
	return (*)(unsafe.Add(.columnPtrA, *.itemSizeA)),
		(*)(unsafe.Add(.columnPtrB, *.itemSizeB)),
		(*)(unsafe.Add(.columnPtrC, *.itemSizeC)),
		(*)(unsafe.Add(.columnPtrD, *.itemSizeD)),
		(*)(unsafe.Add(.columnPtrE, *.itemSizeE)),
		(*)(unsafe.Add(.columnPtrF, *.itemSizeF)),
		(*)(unsafe.Add(.columnPtrG, *.itemSizeG)),
		(*)(unsafe.Add(.columnPtrH, *.itemSizeH))
}

// GetColumns returns the queried component columns of the current table.
// Use this with table-based iteration using [Query8.NextTable].
func ( *Query8[, , , , , , , ]) () ([], [], [], [], [], [], [], []) {
	return .columnA.data.Interface().([])[:.table.len:.table.len],
		.columnB.data.Interface().([])[:.table.len:.table.len],
		.columnC.data.Interface().([])[:.table.len:.table.len],
		.columnD.data.Interface().([])[:.table.len:.table.len],
		.columnE.data.Interface().([])[:.table.len:.table.len],
		.columnF.data.Interface().([])[:.table.len:.table.len],
		.columnG.data.Interface().([])[:.table.len:.table.len],
		.columnH.data.Interface().([])[:.table.len:.table.len]
}