Ejemplo n.º 1
0
        public PWClient(Process process, DTO.Configuration.Cuenta config, DAL.CuentaConfig dbConfig)
        {
            this.Process  = process;
            this.Config   = config;
            this.dbConfig = dbConfig;
            this.dbConfig.OnHideWinChatChanged += (sender, e) => { this.Action.Global.ShowWin(!e, BLL.Mem.Basic.GUIObj.GUIs.WinChat); };

            this.Manager = new YerbaSoft.Windows.API.ProcessManager(this.Process);

            this.Mem    = new Mem.PWMem(this);
            this.Auto   = new Auto.AutoManager(this);
            this.Action = new Actions.PWActions(this);

            this.Mem.OnConnect += (sender, e) => { if (!e)
                                                   {
                                                       this.Dispose();
                                                   }
            };                                                                // solo se dispara cuando se logró conectar alguna vez y se desconecta
            this.Mem.Link.OnPlayerConnect += (sender, e) => {
                if (e)
                {
                    new Thread(() => {
                        Thread.Sleep(3000);
                        this.Action.Global.ShowWin(!this.dbConfig.HideWinChat, BLL.Mem.Basic.GUIObj.GUIs.WinChat);
                    }).Start();
                }
            };
        }
Ejemplo n.º 2
0
 public ActionsGlobal(PWActions actions)
 {
     this.Actions = actions;
 }
Ejemplo n.º 3
0
 public ActionsInteract(PWActions actions)
 {
     this.Actions = actions;
 }
Ejemplo n.º 4
0
 public ActionsMove(PWActions actions)
 {
     this.Actions = actions;
 }
Ejemplo n.º 5
0
 public ActionsParty(PWActions actions)
 {
     this.Actions = actions;
 }
Ejemplo n.º 6
0
 public ActionsSkills(PWActions actions)
 {
     this.Actions = actions;
 }
Ejemplo n.º 7
0
 public ActionsCamara(PWActions actions)
 {
     this.Actions = actions;
 }