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; }
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(); }; }
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; } }