示例#1
0
 public static Guild GetInstance(LocalPlayer player)
 {
     Guild g = new Guild();
     g.name = Util.GetGuildProfileName();
     g.realm = player.RealmName;
     g.gold = Convert.ToInt64(Util.GetGuildMoney());
     //g.guildTabs = new List<ItemUnit>();
     return g;
 }
示例#2
0
        public WebMonitorApp(Guild g, Character c, Session s)
        {
            guild = g;
            character = c;
            session = s;

            TaskScheduler.UnobservedTaskException += (object sender, UnobservedTaskExceptionEventArgs excArgs) =>
            {

                Logging.WriteException(excArgs.Exception);
                excArgs.SetObserved();

            };
        }
示例#3
0
        public void startSession()
        {
            try
            {

                Util.WriteLog("[DEBUG]sSession.getNewSession");

                string retorno;

                session.character = character;
                session.botDebug = "";
                retorno = sSession.getNewSession(conv.ConvertTOJson(session));

                session = (Session)conv.ConvertJSON<Session>(retorno);
                character = session.character;
                if (character.guild != null) { guild = character.guild; }

            }
            catch (AggregateException aex)
            {
                aex.Handle((ex) =>
                {

                    return true;
                });
            }
            catch (Exception ex)
            {

                throw ex;
            }
        }