Пример #1
0
 /// <summary>
 /// Used to load the button and its data
 /// </summary>
 /// <param name="loadToThis">Where the data is loaded too</param>
 /// <param name="btnID">The name of the button the data is loading</param>
 public EnhancementButton load(EnhancementButton loadToThis, string btnID)
 {
     // Loads the data to the matching button name
     loadToThis.enhancement = enhancementData[btnID];
     return(loadToThis);
 }
Пример #2
0
 /// <summary>
 /// Method for adding enhancements to the dictionary
 /// </summary>
 /// <param name="btnID">Name of the button</param>
 /// <param name="data">The buttons data</param>
 public void AddButtonToSave(string btnID, EnhancementButton data)
 {
     enhancementData.Add(btnID, data.enhancement);
 }