Changes

96 bytes added ,  20:09, 19 October 2017
→‎Map properties: + remove property
Line 146: Line 146:  
   Game1.currentLocation.map.Properties.TryGetValue("Music", out string value);
 
   Game1.currentLocation.map.Properties.TryGetValue("Music", out string value);
   −
   // set the 'Music' value
+
   // add or set the 'Music' value
 
   Game1.currentLocation.map.Properties["Music"] = "MarlonsTheme";
 
   Game1.currentLocation.map.Properties["Music"] = "MarlonsTheme";
 +
 +
  // remove the 'Music' value
 +
  Game1.currentLocation.map.Properties.Remove("Music");
 
}
 
}
 
</source>
 
</source>
translators
8,404

edits