Skip to content

Instantly share code, notes, and snippets.

@MrBluePotato
Created January 11, 2014 05:08
Show Gist options
  • Save MrBluePotato/8367359 to your computer and use it in GitHub Desktop.
Save MrBluePotato/8367359 to your computer and use it in GitHub Desktop.
if ((tempAttr = el.Attribute("prop-hunt")) != null)
{
bool isPropHunt;
if (Boolean.TryParse(tempAttr.Value, out isPropHunt))
{
world.IsPropHunt = isPropHunt;
PropHuntWorlds.Add(world);
}
else
{
Logger.Log(LogType.Warning,
"WorldManager: Could not parse \"prop-hunt\" attribute of world \"{0}\", assuming NOT playable for PropHunt.",
worldName);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment