import { Coordinates, Location, MaterialItem, XYCoordinates } from '@gamepark/rules-api'; import { LocationDescription } from '../components'; import { ItemContext, Locator, MaterialContext } from './Locator'; /** * This Locator places items at regular intervals. */ export declare class ListLocator
extends Locator
{
constructor(clone?: Partial , _context: MaterialContext ): Partial , _context: MaterialContext ): number | undefined;
/**
* The maximum gap between the first and the last items. See {@link maxCount} to get a maxGap based on a max number of items.
*/
maxGap?: Partial , context: MaterialContext ): Partial , context: MaterialContext ): unknown;
/**
* The number of items displayed in the list
* @param location Location area of the items
* @param context Context of the game
* @returns number of items in the location area
*/
countListItems(location: Location , context: MaterialContext ): number;
protected getAreaCoordinates(location: Location , context: MaterialContext ): Partial , context: MaterialContext ): XYCoordinates;
getLocationCoordinates(location: Location , context: MaterialContext , index?: number | undefined): Partial , context: ItemContext ): Partial , context: ItemContext ): LocationDescription | undefined;
}