cleanGid

Clear the TiledFlag portion of a GID, leaving just the tile id.

Parameters

gid TiledGid

GID to clean

Return Value

Type: TiledGid

A GID with the flag bits zeroed out

Examples

// normal tile, no flags
TiledGid gid = 0x00000002;
assert(gid.cleanGid == gid);

// normal tile, no flags
gid = 0x80000002; // tile with id 2 flipped horizontally
assert(gid.cleanGid == 0x2);
assert(gid & TiledFlag.flipHorizontal);

Meta