UNPKG

typed-adventureland

Version:
34 lines (33 loc) 711 B
import type { MapKey } from "./types/GTypes/maps"; export interface ICoord { x: number; y: number; } export interface ICoordReal { real_x: number; real_y: number; } export type IPosition = { map?: MapKey; /** Instance ID (if different than `map`) */ in?: string; x: number; y: number; }; export type PositionReal = IPosition & { map: MapKey; real_x: number; real_y: number; }; export type PositionMovable = PositionReal & { from_x?: number; from_y?: number; going_x: number; going_y: number; }; export type PositionSmart = IPosition & { map: MapKey; transport?: boolean; i?: number; s?: number; };