コード例 #1
0
 /// <remarks/>
 public void IncluirDetalheAsync(estSessao s, estDetalhe d, string key, object userState) {
     if ((this.IncluirDetalheOperationCompleted == null)) {
         this.IncluirDetalheOperationCompleted = new System.Threading.SendOrPostCallback(this.OnIncluirDetalheOperationCompleted);
     }
     this.InvokeAsync("IncluirDetalhe", new object[] {
                 s,
                 d,
                 key}, this.IncluirDetalheOperationCompleted, userState);
 }
コード例 #2
0
 private void FinalizaSessao()
 {
     if (Sessao.id != 0)
     {
         b.FinalizaSessao(Sessao, DateTime.Now, SECURETY_KEY);
         Sessao = new WSBot.estSessao();
     }
 }
コード例 #3
0
 public void IncluirDetalhe(estSessao s, estDetalhe d, string key) {
     this.Invoke("IncluirDetalhe", new object[] {
                 s,
                 d,
                 key});
 }
コード例 #4
0
 /// <remarks/>
 public void IncluirDetalheAsync(estSessao s, estDetalhe d, string key) {
     this.IncluirDetalheAsync(s, d, key, null);
 }
コード例 #5
0
 public void IncluirLoot(estSessao s, estLoot l, string key) {
     this.Invoke("IncluirLoot", new object[] {
                 s,
                 l,
                 key});
 }
コード例 #6
0
 /// <remarks/>
 public void IncluirLootAsync(estSessao s, estLoot l, string key) {
     this.IncluirLootAsync(s, l, key, null);
 }
コード例 #7
0
 public void IncluirLevelUp(estSessao s, estLevelUp u, string key) {
     this.Invoke("IncluirLevelUp", new object[] {
                 s,
                 u,
                 key});
 }
コード例 #8
0
 /// <remarks/>
 public void IniciaSessaoAsync(estSessao s, string key) {
     this.IniciaSessaoAsync(s, key, null);
 }
コード例 #9
0
 public void IncluiNovaMorte(estSessao s, estMorte m, string key) {
     this.Invoke("IncluiNovaMorte", new object[] {
                 s,
                 m,
                 key});
 }
コード例 #10
0
 /// <remarks/>
 public void IncluiNovaMorteAsync(estSessao s, estMorte m, string key) {
     this.IncluiNovaMorteAsync(s, m, key, null);
 }
コード例 #11
0
 /// <remarks/>
 public void FinalizaSessaoAsync(estSessao s, System.DateTime d, string key, object userState) {
     if ((this.FinalizaSessaoOperationCompleted == null)) {
         this.FinalizaSessaoOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFinalizaSessaoOperationCompleted);
     }
     this.InvokeAsync("FinalizaSessao", new object[] {
                 s,
                 d,
                 key}, this.FinalizaSessaoOperationCompleted, userState);
 }
コード例 #12
0
 /// <remarks/>
 public void FinalizaSessaoAsync(estSessao s, System.DateTime d, string key) {
     this.FinalizaSessaoAsync(s, d, key, null);
 }
コード例 #13
0
 public void FinalizaSessao(estSessao s, System.DateTime d, string key) {
     this.Invoke("FinalizaSessao", new object[] {
                 s,
                 d,
                 key});
 }
コード例 #14
0
        private void IniciaSessao()
        {
            if (Sessao.id == 0)
            {

                Sessao = new WSBot.estSessao();
                Sessao.nome = Styx.StyxWoW.Me.Name.ToString();
                Sessao.dtInicio = DateTime.Now;
                Sessao.versao = Version.ToString();
                Sessao.server = Styx.StyxWoW.Me.RealmName.ToString();
                Sessao.lvl = Styx.StyxWoW.Me.Level.ToString();
                Sessao.dirWoW = wowpath = Styx.StyxWoW.Memory.Process.MainModule.FileName.Substring(0, Styx.StyxWoW.Memory.Process.MainModule.FileName.Length - 8);

                try
                {
                    Sessao.id = b.IniciaSessao(Sessao, SECURETY_KEY);
                }
                catch (System.Web.Services.Protocols.SoapException ex)
                {
                    Logging.Write(string.Format("[MasterControl]: ERRO: {0}", ex.Message));
                    return;
                }

                Logging.Write(string.Format("[MasterControl]: New Session Begins - ID: {0}", Sessao.id));
            }
        }
コード例 #15
0
 /// <remarks/>
 public void IncluirLevelUpAsync(estSessao s, estLevelUp u, string key) {
     this.IncluirLevelUpAsync(s, u, key, null);
 }
コード例 #16
0
        private void onStop(EventArgs args)
        {
            Styx.CommonBot.BotEvents.Player.OnPlayerDied -= onDead;
            Styx.CommonBot.BotEvents.Player.OnLevelUp -= onLevel;

            Logging.Write(string.Format("[MasterControl]: Session Stoped - ID: {0}", Sessao.id));

            FinalizaSessao();

            Sessao = new WSBot.estSessao();
        }
コード例 #17
0
 public decimal IniciaSessao(estSessao s, string key) {
     object[] results = this.Invoke("IniciaSessao", new object[] {
                 s,
                 key});
     return ((decimal)(results[0]));
 }