Module cogs_gamedev::hash[][src]

Functions

hashcode

Get a hash for a value. This is handy for anytime you need a random-ish, but constant, value based on some other value. One good usecase is variagated tilesets: pass in the tile’s ICoord position to this function and use it as a selector on the tile variants.