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