예제 #1
0
            public void OnQueueChanged()
            {
                InteractionInstance current = mSim.CurrentInteraction;

                if (!object.ReferenceEquals(mCurrentInteraction, current))
                {
                    mCurrentInteraction = current;
                    SkewerEx.QueueChanged();
                }
            }
예제 #2
0
        public void OnWorldQuit()
        {
            try
            {
                SkewerEx.Unload();

                ShutdownWatchers();
            }
            catch (Exception exception)
            {
                Common.Exception("OnWorldQuit", exception);
            }
        }
예제 #3
0
        protected static void OnInitialize()
        {
            if (SkewerEx.Instance != null)
            {
                return;
            }

            try
            {
                while ((Skewer.Instance == null) || (Skewer.Instance.mDoubleClickTimer == null))
                {
                    SpeedTrap.Sleep();
                }

                while (!GameStates.IsLiveState)
                {
                    SpeedTrap.Sleep();
                }

                SkewerEx.Load();

                while (Skewer.Instance != null)
                {
                    if (Skewer.Instance.mHouseholdItems.Length == 0)
                    {
                        break;
                    }

                    if (Skewer.Instance.mHouseholdItems[0].mContainer == null)
                    {
                        break;
                    }

                    if (Skewer.Instance.mHouseholdItems[0].mContainer.Visible)
                    {
                        SkewerEx.HideSkewer(ref Skewer.Instance.mHouseholdItems);
                    }

                    SpeedTrap.Sleep();
                }
            }
            catch (Exception exception)
            {
                Common.Exception("Simulate", exception);
            }
        }