예제 #1
0
            public static void Shutdown()
            {
                if (sLotCheckTask == null)
                {
                    return;
                }

                sLotCheckTask.Dispose();
                sLotCheckTask = null;
            }
예제 #2
0
        public static void ShutdownWatchers()
        {
            LotCheckTask.Shutdown();

            if (sLotChangedListener != null)
            {
                sLotChangedListener.Dispose();
                sLotChangedListener = null;
            }
        }
예제 #3
0
            protected static void Startup()
            {
                if (sLotCheckTask != null)
                {
                    return;
                }

                sLotCheckTask = new LotCheckTask();
                sLotCheckTask.AddToSimulator();
            }
예제 #4
0
        public static void InitializeWatchers()
        {
            ShutdownWatchers();

            LotCheckTask.Initialize();

            if ((Settings.InUse(SkewerEx.VisibilityType.ActiveSimLot)) ||
                (Settings.InUse(SkewerEx.VisibilityType.ActiveHomeLot)) ||
                (Settings.InUse(SkewerEx.VisibilityType.ActiveFamilyLot)))
            {
                sLotChangedListener = new Common.DelayedEventListener(EventTypeId.kEventSimMovedFromLot, OnLotChanged);
            }
        }