Get Gametype from name.
The Gametype to get the ID of.
The Gametype ID.
Thrown if the Gametype is invalid.
const gametype = getGametypeId('survival');console.log(gametype); // 0 Copy
const gametype = getGametypeId('survival');console.log(gametype); // 0
Get Gametype from name.