string to CloudRegionCode

Hey guys, is there any way to convert string to CloudRegionCode?

Comments

  • JohnTubeJohnTube mod
    edited November 1
    Hi @Angel,

    May I know why do you need this?
    Maybe we could suggest something better.

    Otherwise, I got this from stackoverflow answer that showed up as first result on Google.
    CloudRegionCode cloudRegionCode = (CloudRegionCode) Enum.Parse(typeof(CloudRegionCode), cloudRegionString.Trim(), true);
  • Hi @JohnTube , i am working on new update for my game noobhunter.io, in which players can create room directly by writing the room settings in the url , for example www.noobhunter.io/?game=213621&region=us&maxplayers=14...and so on , thank you for the code, that's was exactly what i needed.
Sign In or Register to comment.