Beispiel #1
0
        public MissionBookmarkDestination(DirectAgentMissionBookmark bookmark)
        {
            if (bookmark == null)
            {
                if (!Cache.Instance.MissionBookmarkTimerSet)
                {
                    Cache.Instance.MissionBookmarkTimeout = DateTime.UtcNow.AddSeconds(10);
                }

                if (Cache.Instance.MissionBookmarkTimeout > DateTime.UtcNow)
                {
                    AgentId       = -1;
                    Title         = null;
                    SolarSystemId = Cache.Instance.DirectEve.Session.SolarSystemId ?? -1;

                    Cache.Instance.CloseQuestorCMDLogoff   = false;
                    Cache.Instance.CloseQuestorCMDExitGame = true;
                    Cache.Instance.ReasonToStopQuestor     = "TravelerDestination.MissionBookmarkDestination: Invalid mission bookmark! - Lag?! Closing EVE";
                    Logging.Log("TravelerDestination", Cache.Instance.ReasonToStopQuestor, Logging.Red);
                    Cache.Instance.SessionState = "Quitting";
                }
                else
                {
                    Logging.Log("TravelDestination.MissionBookmarkDestination", "Invalid Mission Bookmark! retrying for another [ " + Math.Round(Cache.Instance.MissionBookmarkTimeout.Subtract(DateTime.UtcNow).TotalSeconds, 0) + " ]sec", Logging.Green);
                }
            }

            if (bookmark != null)
            {
                Logging.Log("TravelerDestination.MissionBookmarkDestination", "Destination set to mission bookmark [" + Logging.Yellow + bookmark.Title + Logging.Green + "]", Logging.Green);
                AgentId       = bookmark.AgentId ?? -1;
                Title         = bookmark.Title;
                SolarSystemId = bookmark.SolarSystemId ?? -1;
            }
        }
Beispiel #2
0
        public MissionBookmarkDestination(DirectAgentMissionBookmark bookmark)
        {
            if (bookmark == null)
            {
                Logging.Log("QuestorManager.MissionBookmarkDestination: Invalid mission bookmark!");

                AgentId       = -1;
                Title         = null;
                SolarSystemId = DirectEve.Instance.Session.SolarSystemId ?? -1;
                return;
            }

            Logging.Log("QuestorManager.MissionBookmarkDestination: Destination set to mission bookmark [" + bookmark.Title + "]");
            AgentId       = bookmark.AgentId ?? -1;
            Title         = bookmark.Title;
            SolarSystemId = bookmark.SolarSystemId ?? -1;
        }
Beispiel #3
0
        public MissionBookmarkDestination2(DirectAgentMissionBookmark bookmark)
        {
            if (bookmark == null)
            {
                Logging.Log("QuestorManager.MissionBookmarkDestination", "Invalid mission bookmark!", Logging.Red);

                AgentId       = -1;
                Title         = null;
                SolarSystemId = Cache.Instance.DirectEve.Session.SolarSystemId ?? -1;
                return;
            }

            Logging.Log("QuestorManager.MissionBookmarkDestination", "Destination set to mission bookmark [" + Logging.Yellow + bookmark.Title + Logging.Green + "]", Logging.Green);
            AgentId       = bookmark.AgentId ?? -1;
            Title         = bookmark.Title;
            SolarSystemId = bookmark.SolarSystemId ?? -1;
        }
Beispiel #4
0
        public MissionBookmarkDestination(DirectAgentMissionBookmark bookmark)
        {
            if (bookmark == null)
            {
                AgentId       = -1;
                Title         = null;
                SolarSystemId = Cache.Instance.DirectEve.Session.SolarSystemId ?? -1;
                //Cache.Instance.DirectEve.ExecuteCommand(DirectCmd.CmdLogOff);
                //Cache.Instance.DirectEve.ExecuteCommand(DirectCmd.CmdQuitGame);

                Cache.Instance.CloseQuestorCMDLogoff   = false;
                Cache.Instance.CloseQuestorCMDExitGame = true;
                Cache.Instance.ReasonToStopQuestor     = "Traveler.MissionBookmarkDestination: Invalid mission bookmark! - Lag?! Closing EVE";
                Logging.Log(Cache.Instance.ReasonToStopQuestor);
                Cache.Instance.SessionState = "Quitting";
            }

            Logging.Log("Traveler.MissionBookmarkDestination: Destination set to mission bookmark [" + bookmark.Title + "]");
            AgentId       = bookmark.AgentId ?? -1;
            Title         = bookmark.Title;
            SolarSystemId = bookmark.SolarSystemId ?? -1;
        }