--- id: tiled-resolve name: Tiled.resolve category: tiled kind: namespace-method tokens: Tiled.resolve sig: Tiled.resolve(map, gid: int) -> gidinfo tip: Decode a GID into tileset, local id and flip flags. order: 5 ns: Tiled member: resolve --- Decomposes a raw GID: strips the three flip flags (0x80000000 horizontal, 0x40000000 vertical, 0x20000000 anti-diagonal), keeps the low 29 bits as the global tile id, and finds the owning tileset. Returns a value with fields tileset (index, -1 if none), local (id within that tileset), fh/fv/fd (the flip flags) and empty (1 when the GID was 0).