wServer.realm.World.FromJsonMap C# (CSharp) Method

FromJsonMap() public method

public FromJsonMap ( string file ) : void
file string
return void
        public void FromJsonMap(string file)
        {
            if (File.Exists(file))
            {
                var wmap = Json2Wmap.Convert(File.ReadAllText(file));

                FromWorldMap(new MemoryStream(wmap));
            }
            else
            {
                throw new FileNotFoundException("Json file not found!", file);
            }
        }