示例#1
0
 private void onLevelLoaded(int level)
 {
     if (!AnimalsDataManager.load())
     {
         Logger.LogWarning("Animals couldn't be loaded.");
         UnloadPlugin();
     }
 }
示例#2
0
 private void FixedUpdate()
 {
     if (this.Configuration.Instance.InitiateOnTimeEvent && U.Settings.Instance.AutomaticSave.Enabled)
     {
         if (nextSaveTime.HasValue && nextSaveTime.Value < DateTime.Now)
         {
             AnimalsDataManager.save();
             restartTimer();
         }
     }
 }
示例#3
0
 protected override void execute(CSteamID executorID, string parameter)
 {
     AnimalsDataManager.save();
     commandSave.check(executorID, commandSave.command, parameter);
 }
示例#4
0
 public void ExecutSaveCommand(IRocketPlayer caller, string[] parameters)
 {
     AnimalsDataManager.save();
 }
示例#5
0
 private void onServerShutdown()
 {
     AnimalsDataManager.save();
 }