////////////////

        //private bool IsSendingUpdates = true;


        ////////////////

        internal ServerBrowserReporter()
        {
            Promises.AddWorldLoadEachPromise(delegate {
                this.InitializeLoopingServerAnnounce();
            });

            Promises.AddWorldUnloadEachPromise(this.OnWorldExit);
        }
Esempio n. 2
0
        ////////////////

        private void InitializeToggler()
        {
            this.IsTogglerLit = false;

            Promises.AddWorldLoadEachPromise(() => {
                int mod_update_count = this.ModUpdatesAvailable();

                if (mod_update_count > 0)
                {
                    InboxMessages.SetMessage("mod_updates", mod_update_count + " mod updates available. See mod browser.", true);
                }
            });
        }
Esempio n. 3
0
        ////////////////

        internal LoadHelpers()
        {
            Promises.AddWorldLoadEachPromise(() => {
                this.StartupDelay = 0;
            });
            Promises.AddWorldUnloadEachPromise(() => {
                this.StartupDelay            = 0;
                this.IsClientPlaying_Hackish = false;
            });
            Promises.AddPostWorldUnloadEachPromise(() => {              // Redundant?
                this.StartupDelay            = 0;
                this.IsClientPlaying_Hackish = false;
            });
        }
Esempio n. 4
0
        ////////////////

        private void InitializeToggler()
        {
            this.IsTogglerLit = false;

            Promises.AddWorldLoadEachPromise(() => {
                var uiModCtrlPanel = (UIModControlPanelTab)ModHelpersMod.Instance.ControlPanel.DefaultTab;
                int modUpdateCount = uiModCtrlPanel.GetModUpdatesAvailable();

                if (modUpdateCount > 0)
                {
                    InboxMessages.SetMessage("mod_updates", modUpdateCount + " mod updates available. See mod browser.", true);
                }
            });
        }
 public static void AddWorldLoadEachPromise(Action action)
 {
     Promises.AddWorldLoadEachPromise(action);
 }