예제 #1
0
        // Token: 0x060000BA RID: 186 RVA: 0x0000404C File Offset: 0x0000244C
        public virtual void Dispose(bool disposing)
        {
            bool flag = !this.disposed;

            if (flag)
            {
                if (disposing)
                {
                    this.script.Dispose();
                    ClienteTcp conexion = this.conexion;
                    if (conexion != null)
                    {
                        conexion.Dispose();
                    }
                    this.juego.Dispose();
                }
                this.Estado_Cuenta  = EstadoCuenta.DESCONECTADO;
                this.script         = null;
                this.key_bienvenida = null;
                this.conexion       = null;
                this.logger         = null;
                this.juego          = null;
                this.apodo          = null;
                this.configuracion  = null;
                this.disposed       = true;
            }
        }
예제 #2
0
        // Token: 0x060000AF RID: 175 RVA: 0x00003EEC File Offset: 0x000022EC
        public void desconectar()
        {
            ClienteTcp conexion = this.conexion;

            if (conexion != null)
            {
                conexion.Dispose();
            }
            this.conexion = null;
            this.script.detener_Script("script");
            this.juego.limpiar();
            this.Estado_Cuenta = EstadoCuenta.DESCONECTADO;
            Action action = this.cuenta_desconectada;

            if (action != null)
            {
                action();
            }
        }