예제 #1
0
    public void Initialize()
    {
        randomizer            = new Random();
        timer                 = new Stopwatch();
        chillingTimer         = new Stopwatch();
        isRunning             = true;
        MeHumanBehaviorsActiv = false;
        nextHumanBehavior     = 0;

        MeHumanSettings.Load();
        Start();
    }
예제 #2
0
 public static bool Load()
 {
     try
     {
         if (File.Exists(AdviserFilePathAndName("MeHuman", ObjectManager.Me.Name + "." + Usefuls.RealmName)))
         {
             CurrentSetting =
                 Load <MeHumanSettings>(AdviserFilePathAndName("MeHuman",
                                                               ObjectManager.Me.Name + "." + Usefuls.RealmName));
             return(true);
         }
         CurrentSetting = new MeHumanSettings();
     }
     catch (Exception e)
     {
         Logging.WriteDebug("MeHumans => Load(): " + e);
     }
     return(false);
 }
예제 #3
0
 public void Settings()
 {
     MeHumanSettings.Load();
     MeHumanSettings.CurrentSetting.ToForm();
     MeHumanSettings.CurrentSetting.Save();
 }