Function cleanGid
Clear the TiledFlag
portion of a GID, leaving just the tile id.
Prototype
uint cleanGid( uint gid );
Parameters
Name | Description |
---|---|
gid | GID to clean |
Returns
A GID with the flag bits zeroed out
Example
// 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);
Authors
Copyright
Copyright © 2015, Ryan Roden-Corrent