Exemplo n.º 1
0
 public static void OnLoad()
 {
     PUtil.InitLibrary();
     POptions.RegisterOptions(typeof(ClaustrophobiaOptions));
     PLocalization.Register();
     Options = new ClaustrophobiaOptions();
 }
Exemplo n.º 2
0
 public ClaustrophobiaChecker()
 {
     checkNextFrame = new List <GameObject>(8);
     minionCache    = new List <GameObject>(64);
     minionPacer    = 0;
     // PooledDictionary is useless since this dictionary is created once per load
     statusCache = new Dictionary <GameObject, EntrapmentStatus>(64);
     // Read config
     options = POptions.ReadSettings <ClaustrophobiaOptions>();
     if (options == null)
     {
         options = new ClaustrophobiaOptions();
     }
     PUtil.LogDebug("Claustrophobia Options: Strict Mode = {0}".F(options.
                                                                  StrictConfined));
 }