Exemple #1
0
 public override void initData()
 {
     try
     {
         localData = Roboto.Settings.getPluginData <mod_wordcraft_data>();
     }
     catch (InvalidDataException)
     {
         //Data doesnt exist, create, populate with sample data and register for saving
         localData = new mod_wordcraft_data();
         sampleData();
         Roboto.Settings.registerData(localData);
     }
 }
Exemple #2
0
 public override void initData()
 {
     try
     {
         localData = Roboto.Settings.getPluginData<mod_wordcraft_data>();
     }
     catch (InvalidDataException)
     {
         //Data doesnt exist, create, populate with sample data and register for saving
         localData = new mod_wordcraft_data();
         sampleData();
         Roboto.Settings.registerData(localData);
     }
 }