public override void Open(Uri connectionPath) { if (connectionPath.IsFile) { if (File.Exists(connectionPath.LocalPath)) { string jsonDataString = File.ReadAllText(connectionPath.LocalPath); Treasuremap treasuremap = JsonConvert.DeserializeObject <Treasuremap>(jsonDataString); _tressureMapTable = new ProPluginTreasuremapTable(treasuremap); } } }
public override void Close() { // Clear the data _tressureMapTable = null; }