import { SettingsProvider } from "@interfaces/setting-provider" ; export namespace Option { export class Shortcuts { public no_emu : Shortcuts . NoEmu ; public diver : Shortcuts . Diver ; public interface : Shortcuts . Interface ; private _spell : Array < string > ; private _item : Array < string > ; constructor ( private settingsProvider ) { this . no_emu = new Shortcuts . NoEmu ( settingsProvider ) ; this . diver = new Shortcuts . Diver ( settingsProvider ) ; this . interface = new Shortcuts . Interface ( settingsProvider ) ; this . _spell = this . settingsProvider . read ( 'option.shortcuts.spell' ) ; this . _item = this . settingsProvider . read ( 'option.shortcuts.item' ) ; } get spell ( ) : Array < string > { return new Proxy ( this . _spell , { get : ( target , name ) => target [ name ] , set : ( target , prop , value ) => { target [ prop ] = value ; this . settingsProvider . write ( 'option.shortcuts.spell' , target ) ; return true ; } } ) ; } set spell ( spell ) { this . settingsProvider . write ( 'option.shortcuts.spell' , spell ) ; this . _spell = spell ; } get item ( ) : Array < string > { return new Proxy ( this . _item , { get : ( target , name ) => target [ name ] , set : ( target , prop , value ) => { target [ prop ] = value ; this . settingsProvider . write ( 'option.shortcuts.item' , target ) ; return true ; } } ) ; } set item ( item ) { this . settingsProvider . write ( 'option.shortcuts.item' , item ) ; this . _item = item ; } } export namespace Shortcuts { export class Interface { private _carac : string ; private _spell : string ; private _bag : string ; private _bidhouse : string ; private _map : string ; private _friend : string ; private _book : string ; private _guild : string ; private _conquest : string ; private _job : string ; private _alliance : string ; private _mount : string ; private _directory : string ; private _alignement : string ; private _bestiary : string ; private _title : string ; private _achievement : string ; private _dailyQuest : string ; private _spouse : string ; private _shop : string ; private _goultine : string ; get carac ( ) : string { return this . _carac ; } set carac ( carac ) { this . settingsProvider . write ( 'option.shortcuts.interface.carac' , carac ) ; this . _carac = carac ; } get spell ( ) : string { return this . _spell ; } set spell ( spell ) { this . settingsProvider . write ( 'option.shortcuts.interface.spell' , spell ) ; this . _spell = spell ; } get bag ( ) : string { return this . _bag ; } set bag ( bag ) { this . settingsProvider . write ( 'option.shortcuts.interface.bag' , bag ) ; this . _bag = bag ; } get bidhouse ( ) : string { return this . _bidhouse ; } set bidhouse ( bidhouse ) { this . settingsProvider . write ( 'option.shortcuts.interface.bidhouse' , bidhouse ) ; this . _bidhouse = bidhouse ; } get map ( ) : string { return this . _map ; } set map ( map ) { this . settingsProvider . write ( 'option.shortcuts.interface.map' , map ) ; this . _map = map ; } get friend ( ) : string { return this . _friend ; } set friend ( friend ) { this . settingsProvider . write ( 'option.shortcuts.interface.friend' , friend ) ; this . _friend = friend ; } get book ( ) : string { return this . _book ; } set book ( book ) { this . settingsProvider . write ( 'option.shortcuts.interface.book' , book ) ; this . _book = book ; } get guild ( ) : string { return this . _guild ; } set guild ( guild ) { this . settingsProvider . write ( 'option.shortcuts.interface.guild' , guild ) ; this . _guild = guild ; } get conquest ( ) : string { return this . _conquest ; } set conquest ( conquest ) { this . settingsProvider . write ( 'option.shortcuts.interface.conquest' , conquest ) ; this . _conquest = conquest ; } get job ( ) : string { return this . _job ; } set job ( job ) { this . settingsProvider . write ( 'option.shortcuts.interface.job' , job ) ; this . _job = job ; } get alliance ( ) : string { return this . _alliance ; } set alliance ( alliance ) { this . settingsProvider . write ( 'option.shortcuts.interface.alliance' , alliance ) ; this . _alliance = alliance ; } get mount ( ) : string { return this . _mount ; } set mount ( mount ) { this . settingsProvider . write ( 'option.shortcuts.interface.mount' , mount ) ; this . _mount = mount ; } get directory ( ) : string { return this . _directory ; } set directory ( directory ) { this . settingsProvider . write ( 'option.shortcuts.interface.directory' , directory ) ; this . _directory = directory ; } get alignement ( ) : string { return this . _alignement ; } set alignement ( alignement ) { this . settingsProvider . write ( 'option.shortcuts.interface.alignement' , alignement ) ; this . _alignement = alignement ; } get bestiary ( ) : string { return this . _bestiary ; } set bestiary ( bestiary ) { this . settingsProvider . write ( 'option.shortcuts.interface.bestiary' , bestiary ) ; this . _bestiary = bestiary ; } get title ( ) : string { return this . _title ; } set title ( title ) { this . settingsProvider . write ( 'option.shortcuts.interface.title' , title ) ; this . _title = title ; } get achievement ( ) : string { return this . _achievement ; } set achievement ( achievement ) { this . settingsProvider . write ( 'option.shortcuts.interface.achievement' , achievement ) ; this . _achievement = achievement ; } get dailyQuest ( ) : string { return this . _dailyQuest ; } set dailyQuest ( dailyQuest ) { this . settingsProvider . write ( 'option.shortcuts.interface.dailyQuest' , dailyQuest ) ; this . _dailyQuest = dailyQuest ; } get spouse ( ) : string { return this . _spouse ; } set spouse ( spouse ) { this . settingsProvider . write ( 'option.shortcuts.interface.spouse' , spouse ) ; this . _spouse = spouse ; } get shop ( ) : string { return this . _shop ; } set shop ( shop ) { this . settingsProvider . write ( 'option.shortcuts.interface.shop' , shop ) ; this . _shop = shop ; } get goultine ( ) : string { return this . _goultine ; } set goultine ( goultine ) { this . settingsProvider . write ( 'option.shortcuts.interface.goultine' , goultine ) ; this . _goultine = goultine ; } public getAll ( ) { const tab = [ ] ; for ( const prop in this ) { if ( prop . charAt ( 0 ) === '_' ) { const newProp = prop . replace ( '_' , '' ) ; tab . push ( { key : newProp , value : this [ prop ] } ) ; } } return tab ; } constructor ( private settingsProvider ) { this . _carac = this . settingsProvider . read ( 'option.shortcuts.interface.carac' ) ; this . _spell = this . settingsProvider . read ( 'option.shortcuts.interface.spell' ) ; this . _bag = this . settingsProvider . read ( 'option.shortcuts.interface.bag' ) ; this . _bidhouse = this . settingsProvider . read ( 'option.shortcuts.interface.bidhouse' ) ; this . _map = this . settingsProvider . read ( 'option.shortcuts.interface.map' ) ; this . _friend = this . settingsProvider . read ( 'option.shortcuts.interface.friend' ) ; this . _book = this . settingsProvider . read ( 'option.shortcuts.interface.book' ) ; this . _guild = this . settingsProvider . read ( 'option.shortcuts.interface.guild' ) ; this . _conquest = this . settingsProvider . read ( 'option.shortcuts.interface.conquest' ) ; this . _job = this . settingsProvider . read ( 'option.shortcuts.interface.job' ) ; this . _alliance = this . settingsProvider . read ( 'option.shortcuts.interface.alliance' ) ; this . _mount = this . settingsProvider . read ( 'option.shortcuts.interface.mount' ) ; this . _directory = this . settingsProvider . read ( 'option.shortcuts.interface.directory' ) ; this . _alignement = this . settingsProvider . read ( 'option.shortcuts.interface.alignement' ) ; this . _bestiary = this . settingsProvider . read ( 'option.shortcuts.interface.bestiary' ) ; this . _title = this . settingsProvider . read ( 'option.shortcuts.interface.title' ) ; this . _achievement = this . settingsProvider . read ( 'option.shortcuts.interface.achievement' ) ; this . _dailyQuest = this . settingsProvider . read ( 'option.shortcuts.interface.dailyQuest' ) ; this . _spouse = this . settingsProvider . read ( 'option.shortcuts.interface.spouse' ) ; this . _shop = this . settingsProvider . read ( 'option.shortcuts.interface.shop' ) ; this . _goultine = this . settingsProvider . read ( 'option.shortcuts.interface.goultine' ) ; } } export class NoEmu { private _new_tab : string ; private _new_window : string ; private _next_tab : string ; private _prev_tab : string ; private _activ_tab : string ; private _tabs : Array < string > ; get new_tab ( ) : string { return this . _new_tab ; } set new_tab ( new_tab ) { this . settingsProvider . write ( 'option.shortcuts.no_emu.new_tab' , new_tab ) ; this . _new_tab = new_tab ; } get new_window ( ) : string { return this . _new_window ; } set new_window ( new_window ) { this . settingsProvider . write ( 'option.shortcuts.no_emu.new_window' , new_window ) ; this . _new_window = new_window ; } get next_tab ( ) : string { return this . _next_tab ; } set next_tab ( next_tab ) { this . settingsProvider . write ( 'option.shortcuts.no_emu.next_tab' , next_tab ) ; this . _next_tab = next_tab ; } get prev_tab ( ) : string { return this . _prev_tab ; } set prev_tab ( prev_tab ) { this . settingsProvider . write ( 'option.shortcuts.no_emu.prev_tab' , prev_tab ) ; this . _prev_tab = prev_tab ; } get activ_tab ( ) : string { return this . _activ_tab ; } set activ_tab ( activ_tab ) { this . settingsProvider . write ( 'option.shortcuts.no_emu.activ_tab' , activ_tab ) ; this . _activ_tab = activ_tab ; } get tabs ( ) : Array < string > { return new Proxy ( this . _tabs , { get : ( target , name ) => target [ name ] , set : ( target , prop , value ) => { target [ prop ] = value ; this . settingsProvider . write ( 'option.shortcuts.no_emu.tabs' , target ) ; return true ; } } ) ; } set tabs ( tabs ) { this . settingsProvider . write ( 'option.shortcuts.no_emu.tabs' , tabs ) ; this . _tabs = tabs ; } constructor ( private settingsProvider ) { this . new_tab = this . settingsProvider . read ( 'option.shortcuts.no_emu.new_tab' ) ; this . new_window = this . settingsProvider . read ( 'option.shortcuts.no_emu.new_window' ) ; this . next_tab = this . settingsProvider . read ( 'option.shortcuts.no_emu.next_tab' ) ; this . prev_tab = this . settingsProvider . read ( 'option.shortcuts.no_emu.prev_tab' ) ; this . activ_tab = this . settingsProvider . read ( 'option.shortcuts.no_emu.activ_tab' ) ; this . tabs = this . settingsProvider . read ( 'option.shortcuts.no_emu.tabs' ) ; } } export class Diver { private _end_turn : string ; private _open_chat : string ; private _active_open_menu : boolean ; private _open_menu : string ; private _go_up : string ; private _go_bottom : string ; private _go_left : string ; private _go_right : string ; get end_turn ( ) : string { return this . _end_turn ; } set end_turn ( end_turn ) { this . settingsProvider . write ( 'option.shortcuts.diver.end_turn' , end_turn ) ; this . _end_turn = end_turn ; } get open_chat ( ) : string { return this . _open_chat ; } set open_chat ( open_chat ) { this . settingsProvider . write ( 'option.shortcuts.diver.open_chat' , open_chat ) ; this . _open_chat = open_chat ; } set active_open_menu ( active_open_menu ) { this . settingsProvider . write ( 'option.shortcuts.diver.active_open_menu' , active_open_menu ) ; this . _active_open_menu = active_open_menu ; } get active_open_menu ( ) : boolean { return this . _active_open_menu ; } get open_menu ( ) : string { return this . _open_menu ; } set open_menu ( open_menu ) { this . settingsProvider . write ( 'option.shortcuts.diver.open_menu' , open_menu ) ; this . _open_menu = open_menu ; } get go_up ( ) : string { return this . _go_up ; } set go_up ( go_up ) { this . settingsProvider . write ( 'option.shortcuts.diver.go_up' , go_up ) ; this . _go_up = go_up ; } get go_bottom ( ) : string { return this . _go_bottom ; } set go_bottom ( go_bottom ) { this . settingsProvider . write ( 'option.shortcuts.diver.go_bottom' , go_bottom ) ; this . _go_bottom = go_bottom ; } get go_left ( ) : string { return this . _go_left ; } set go_left ( go_left ) { this . settingsProvider . write ( 'option.shortcuts.diver.go_left' , go_left ) ; this . _go_left = go_left ; } get go_right ( ) : string { return this . _go_right ; } set go_right ( go_right ) { this . settingsProvider . write ( 'option.shortcuts.diver.go_right' , go_right ) ; this . _go_right = go_right ; } constructor ( private settingsProvider ) { this . end_turn = this . settingsProvider . read ( 'option.shortcuts.diver.end_turn' ) ; this . open_chat = this . settingsProvider . read ( 'option.shortcuts.diver.open_chat' ) ; this . active_open_menu = this . settingsProvider . read ( 'option.shortcuts.diver.active_open_menu' ) ; this . open_menu = this . settingsProvider . read ( 'option.shortcuts.diver.open_menu' ) ; this . go_up = this . settingsProvider . read ( 'option.shortcuts.diver.go_up' ) ; this . go_bottom = this . settingsProvider . read ( 'option.shortcuts.diver.go_bottom' ) ; this . go_left = this . settingsProvider . read ( 'option.shortcuts.diver.go_left' ) ; this . go_right = this . settingsProvider . read ( 'option.shortcuts.diver.go_right' ) ; } } } export class General { private _hidden_shop : boolean ; private _full_screen : boolean ; private _hidden_tabs : boolean ; private _resolution : { x : boolean ; y : boolean ; } ; private _local_content : boolean ; private _sound_focus : boolean ; private _user_agent : string ; private _early : boolean ; private _audio_muted : boolean ; get hidden_shop ( ) : boolean { return this . _hidden_shop ; } set hidden_shop ( hidden_shop ) { this . settingsProvider . write ( 'option.general.hidden_shop' , hidden_shop ) ; this . _hidden_shop = hidden_shop ; } get full_screen ( ) : boolean { return this . _full_screen ; } set full_screen ( full_screen ) { this . settingsProvider . write ( 'option.general.full_screen' , full_screen ) ; this . _full_screen = full_screen ; } get user_agent ( ) : string { return this . _user_agent ; } set user_agent ( user_agent ) { this . settingsProvider . write ( 'option.general.user_agent' , user_agent ) ; this . _user_agent = user_agent ; } get hidden_tabs ( ) : boolean { return this . _hidden_tabs ; } set hidden_tabs ( hidden_tabs ) { this . settingsProvider . write ( 'option.general.hidden_tabs' , hidden_tabs ) ; this . _hidden_tabs = hidden_tabs ; } get resolution ( ) { return this . _resolution ; } set resolution ( resolution ) { this . settingsProvider . write ( 'option.general.resolution' , resolution ) ; this . _resolution = resolution ; } get local_content ( ) { return this . _local_content ; } set local_content ( local_content ) { this . settingsProvider . write ( 'option.general.local_content' , local_content ) ; this . _local_content = local_content ; } get sound_focus ( ) { return this . _sound_focus ; } set sound_focus ( sound_focus ) { this . settingsProvider . write ( 'option.general.sound_focus' , sound_focus ) ; this . _sound_focus = sound_focus ; } get early ( ) : boolean { return this . _early ; } set early ( early ) { this . settingsProvider . write ( 'option.general.early' , early ) ; this . _early = early ; } get audio_muted ( ) : boolean { return this . _audio_muted ; } set audio_muted ( audio_muted ) { this . settingsProvider . write ( 'option.general.audio_muted' , audio_muted ) ; this . _audio_muted = audio_muted ; } constructor ( private settingsProvider ) { this . user_agent = this . settingsProvider . read ( 'option.general.user_agent' ) ; this . hidden_shop = this . settingsProvider . read ( 'option.general.hidden_shop' ) ; this . full_screen = this . settingsProvider . read ( 'option.general.full_screen' ) ; this . hidden_tabs = this . settingsProvider . read ( 'option.general.hidden_tabs' ) ; this . resolution = this . settingsProvider . read ( 'option.general.resolution' ) ; this . local_content = this . settingsProvider . read ( 'option.general.local_content' ) ; this . sound_focus = this . settingsProvider . read ( 'option.general.sound_focus' ) ; this . early = this . settingsProvider . read ( 'option.general.early' ) ; this . audio_muted = this . settingsProvider . read ( 'option.general.audio_muted' ) ; } } export class Notification { private _private_message : boolean ; private _fight_turn : boolean ; private _tax_collector : boolean ; private _kolizeum : boolean ; private _party_invitation : boolean ; private _aggression : boolean ; private _focus_fight_turn : boolean ; private _sale_message : boolean ; get private_message ( ) { return this . _private_message ; } set private_message ( private_message ) { this . settingsProvider . write ( 'option.notification.private_message' , private_message ) ; this . _private_message = private_message ; } get fight_turn ( ) { return this . _fight_turn ; } set fight_turn ( fight_turn ) { this . settingsProvider . write ( 'option.notification.fight_turn' , fight_turn ) ; this . _fight_turn = fight_turn ; } get tax_collector ( ) { return this . _tax_collector ; } set tax_collector ( tax_collector ) { this . settingsProvider . write ( 'option.notification.tax_collector' , tax_collector ) ; this . _tax_collector = tax_collector ; } get kolizeum ( ) { return this . _kolizeum ; } set kolizeum ( kolizeum ) { this . settingsProvider . write ( 'option.notification.kolizeum' , kolizeum ) ; this . _kolizeum = kolizeum ; } get party_invitation ( ) { return this . _party_invitation ; } set party_invitation ( party_invitation ) { this . settingsProvider . write ( 'option.notification.party_invitation' , party_invitation ) ; this . _party_invitation = party_invitation ; } get aggression ( ) { return this . _aggression ; } set aggression ( aggression ) { this . settingsProvider . write ( 'option.notification.aggression' , aggression ) ; this . _aggression = aggression ; } get focus_fight_turn ( ) { return this . _focus_fight_turn ; } set focus_fight_turn ( focus_fight_turn ) { this . settingsProvider . write ( 'option.notification.focus_fight_turn' , focus_fight_turn ) ; this . _focus_fight_turn = focus_fight_turn ; } get sale_message ( ) { return this . _sale_message ; } set sale_message ( sale_message ) { this . settingsProvider . write ( 'option.notification.sale_message' , sale_message ) ; this . _sale_message = sale_message ; } constructor ( private settingsProvider ) { this . fight_turn = this . settingsProvider . read ( 'option.notification.fight_turn' ) ; this . private_message = this . settingsProvider . read ( 'option.notification.private_message' ) ; this . tax_collector = this . settingsProvider . read ( 'option.notification.tax_collector' ) ; this . kolizeum = this . settingsProvider . read ( 'option.notification.kolizeum' ) ; this . party_invitation = this . settingsProvider . read ( 'option.notification.party_invitation' ) ; this . aggression = this . settingsProvider . read ( 'option.notification.aggression' ) ; this . focus_fight_turn = this . settingsProvider . read ( 'option.notification.focus_fight_turn' ) ; this . sale_message = this . settingsProvider . read ( 'option.notification.sale_message' ) ; } } export class VIP { public general : VIP . General ; public autogroup : VIP . AutoGroup ; public multiaccount : VIP . MultiAccount ; constructor ( private settingsProvider ) { this . general = new VIP . General ( settingsProvider ) ; this . autogroup = new VIP . AutoGroup ( settingsProvider ) ; this . multiaccount = new VIP . MultiAccount ( settingsProvider ) ; } } export namespace VIP { export class General { private _disable_inactivity : boolean ; private _health_bar : boolean ; private _health_bar_shortcut : string ; private _jobsxp : boolean ; private _fightchronometer : boolean ; private _zaapsearchfilter : boolean ; private _estimator : boolean ; private _hidden_mount : boolean ; private _party_info_pp : boolean ; private _party_info_lvl : boolean ; private _show_resources : boolean ; private _show_resources_shortcut : string ; private _party_member_on_map : boolean ; private _harvest_indicator : boolean ; private _monster_tooltip : boolean ; private _monster_tooltip_shortcut : string ; private _verticaltimeline : boolean ; get party_info_pp ( ) : boolean { return this . _party_info_pp ; } set party_info_pp ( party_info_pp ) { this . settingsProvider . write ( 'option.vip.general.party_info_pp' , party_info_pp ) ; this . _party_info_pp = party_info_pp ; } get party_info_lvl ( ) : boolean { return this . _party_info_lvl ; } set party_info_lvl ( party_info_lvl ) { this . settingsProvider . write ( 'option.vip.general.party_info_lvl' , party_info_lvl ) ; this . _party_info_lvl = party_info_lvl ; } get hidden_mount ( ) : boolean { return this . _hidden_mount ; } set hidden_mount ( hidden_mount ) { this . settingsProvider . write ( 'option.vip.general.hidden_mount' , hidden_mount ) ; this . _hidden_mount = hidden_mount ; } get estimator ( ) : boolean { return this . _estimator ; } set estimator ( estimator ) { this . settingsProvider . write ( 'option.vip.general.estimator' , estimator ) ; this . _estimator = estimator ; } get disable_inactivity ( ) : boolean { return this . _disable_inactivity ; } set disable_inactivity ( disable_inactivity ) { this . settingsProvider . write ( 'option.vip.general.disable_inactivity' , disable_inactivity ) ; this . _disable_inactivity = disable_inactivity ; } get health_bar ( ) : boolean { return this . _health_bar ; } get jobsxp ( ) : boolean { return this . _jobsxp ; } set jobsxp ( jobsxp ) { this . settingsProvider . write ( 'option.vip.general.jobsxp' , jobsxp ) ; this . _jobsxp = jobsxp ; } get fightchronometer ( ) : boolean { return this . _fightchronometer ; } set fightchronometer ( fightchronometer ) { this . settingsProvider . write ( 'option.vip.general.fightchronometer' , fightchronometer ) ; this . _fightchronometer = fightchronometer ; } get zaapsearchfilter ( ) : boolean { return this . _zaapsearchfilter ; } set zaapsearchfilter ( zaapsearchfilter ) { this . settingsProvider . write ( 'option.vip.general.zaapsearchfilter' , zaapsearchfilter ) ; this . _zaapsearchfilter = zaapsearchfilter ; } set health_bar ( health_bar ) { this . settingsProvider . write ( 'option.vip.general.health_bar' , health_bar ) ; this . _health_bar = health_bar ; } get health_bar_shortcut ( ) : string { return this . _health_bar_shortcut ; } set health_bar_shortcut ( health_bar_shortcut ) { this . settingsProvider . write ( 'option.vip.general.health_bar_shortcut' , health_bar_shortcut ) ; this . _health_bar_shortcut = health_bar_shortcut ; } get show_resources ( ) : boolean { return this . _show_resources ; } set show_resources ( show_resources ) { this . settingsProvider . write ( 'option.vip.general.show_resources' , show_resources ) ; this . _show_resources = show_resources ; } get show_resources_shortcut ( ) : string { return this . _show_resources_shortcut ; } set show_resources_shortcut ( show_resources_shortcut ) { this . settingsProvider . write ( 'option.vip.general.show_resources_shortcut' , show_resources_shortcut ) ; this . _show_resources_shortcut = show_resources_shortcut ; } get party_member_on_map ( ) : boolean { return this . _party_member_on_map ; } set party_member_on_map ( party_member_on_map ) { this . settingsProvider . write ( 'option.vip.general.party_member_on_map' , party_member_on_map ) ; this . _party_member_on_map = party_member_on_map ; } get harvest_indicator ( ) : boolean { return this . _harvest_indicator ; } set harvest_indicator ( harvest_indicator ) { this . settingsProvider . write ( 'option.vip.general.harvest_indicator' , harvest_indicator ) ; this . _harvest_indicator = harvest_indicator ; } get monster_tooltip ( ) : boolean { return this . _monster_tooltip ; } set monster_tooltip ( monster_tooltip ) { this . settingsProvider . write ( 'option.vip.general.monster_tooltip' , monster_tooltip ) ; this . _monster_tooltip = monster_tooltip ; } get monster_tooltip_shortcut ( ) : string { return this . _monster_tooltip_shortcut ; } set monster_tooltip_shortcut ( monster_tooltip_shortcut ) { this . settingsProvider . write ( 'option.vip.general.monster_tooltip_shortcut' , monster_tooltip_shortcut ) ; this . _monster_tooltip_shortcut = monster_tooltip_shortcut ; } get verticaltimeline ( ) : boolean { return this . _verticaltimeline ; } set verticaltimeline ( verticaltimeline ) { this . settingsProvider . write ( 'option.vip.general.verticaltimeline' , verticaltimeline ) ; this . _verticaltimeline = verticaltimeline ; } constructor ( private settingsProvider ) { this . disable_inactivity = this . settingsProvider . read ( 'option.vip.general.disable_inactivity' ) ; this . health_bar = this . settingsProvider . read ( 'option.vip.general.health_bar' ) ; this . health_bar_shortcut = this . settingsProvider . read ( 'option.vip.general.health_bar_shortcut' ) ; this . jobsxp = this . settingsProvider . read ( 'option.vip.general.jobsxp' ) ; this . fightchronometer = this . settingsProvider . read ( 'option.vip.general.fightchronometer' ) ; this . zaapsearchfilter = this . settingsProvider . read ( 'option.vip.general.zaapsearchfilter' ) ; this . estimator = this . settingsProvider . read ( 'option.vip.general.estimator' ) ; this . hidden_mount = this . settingsProvider . read ( 'option.vip.general.hidden_mount' ) ; this . party_info_pp = this . settingsProvider . read ( 'option.vip.general.party_info_pp' ) ; this . party_info_lvl = this . settingsProvider . read ( 'option.vip.general.party_info_lvl' ) ; this . show_resources = this . settingsProvider . read ( 'option.vip.general.show_resources' ) ; this . show_resources_shortcut = this . settingsProvider . read ( 'option.vip.general.show_resources_shortcut' ) ; this . party_member_on_map = this . settingsProvider . read ( 'option.vip.general.party_member_on_map' ) ; this . harvest_indicator = this . settingsProvider . read ( 'option.vip.general.harvest_indicator' ) ; this . _monster_tooltip = this . settingsProvider . read ( 'option.vip.general.monster_tooltip' ) ; this . _monster_tooltip_shortcut = this . settingsProvider . read ( 'option.vip.general.monster_tooltip_shortcut' ) ; this . verticaltimeline = this . settingsProvider . read ( 'option.vip.general.verticaltimeline' ) ; } } export class AutoGroup { private _active : boolean ; private _leader : string ; private _members : string ; private _follow_leader : boolean ; private _disable_timer : boolean ; private _ready : boolean ; private _fight : boolean ; private _follow_on_map : boolean ; private _strict_move : boolean ; get active ( ) : boolean { return this . _active ; } set active ( active ) { this . settingsProvider . write ( 'option.vip.auto_group.active' , active ) ; this . _active = active ; } get leader ( ) : string { return this . _leader ; } set leader ( leader ) { this . settingsProvider . write ( 'option.vip.auto_group.leader' , leader ) ; this . _leader = leader ; } get members ( ) : string { return this . _members ; } set members ( members ) { this . settingsProvider . write ( 'option.vip.auto_group.members' , members ) ; this . _members = members ; } get follow_leader ( ) : boolean { return this . _follow_leader ; } set follow_leader ( follow_leader ) { this . settingsProvider . write ( 'option.vip.auto_group.follow_leader' , follow_leader ) ; this . _follow_leader = follow_leader ; } get disable_timer ( ) : boolean { return this . _disable_timer ; } set disable_timer ( disable_timer ) { this . settingsProvider . write ( 'option.vip.auto_group.disable_timer' , disable_timer ) ; this . _disable_timer = disable_timer ; } get ready ( ) : boolean { return this . _ready ; } set ready ( ready ) { this . settingsProvider . write ( 'option.vip.auto_group.ready' , ready ) ; this . _ready = ready ; } get fight ( ) : boolean { return this . _fight ; } set fight ( fight ) { this . settingsProvider . write ( 'option.vip.auto_group.fight' , fight ) ; this . _fight = fight ; } get follow_on_map ( ) : boolean { return this . _follow_on_map ; } set follow_on_map ( follow_on_map ) { this . settingsProvider . write ( 'option.vip.auto_group.follow_on_map' , follow_on_map ) ; this . _follow_on_map = follow_on_map ; } get strict_move ( ) : boolean { return this . _strict_move ; } set strict_move ( strict_move ) { this . settingsProvider . write ( 'option.vip.auto_group.strict_move' , strict_move ) ; this . _strict_move = strict_move ; } constructor ( private settingsProvider ) { this . active = this . settingsProvider . read ( 'option.vip.auto_group.active' ) ; this . leader = this . settingsProvider . read ( 'option.vip.auto_group.leader' ) ; this . members = this . settingsProvider . read ( 'option.vip.auto_group.members' ) ; this . follow_leader = this . settingsProvider . read ( 'option.vip.auto_group.follow_leader' ) ; this . disable_timer = this . settingsProvider . read ( 'option.vip.auto_group.disable_timer' ) ; this . leader = this . settingsProvider . read ( 'option.vip.auto_group.leader' ) ; this . ready = this . settingsProvider . read ( 'option.vip.auto_group.ready' ) ; this . fight = this . settingsProvider . read ( 'option.vip.auto_group.fight' ) ; this . follow_on_map = this . settingsProvider . read ( 'option.vip.auto_group.follow_on_map' ) ; this . strict_move = this . settingsProvider . read ( 'option.vip.auto_group.strict_move' ) ; } } export class MultiAccount { private _active : boolean ; private _master_password : string ; private _windows : { account_name_encrypted : string ; password_encrypted : string ; } [ ] [ ] ; get active ( ) : boolean { return this . _active ; } set active ( active ) { this . settingsProvider . write ( 'option.vip.multi_account.active' , active ) ; this . _active = active ; } get master_password ( ) : string { return this . _master_password ; } set master_password ( active ) { this . settingsProvider . write ( 'option.vip.multi_account.master_password' , active ) ; this . _master_password = active ; } get windows ( ) : { account_name_encrypted : string ; password_encrypted : string ; } [ ] [ ] { return this . _windows ; } set windows ( windows ) { this . settingsProvider . write ( 'option.vip.multi_account.window' , windows ) ; this . _windows = windows ; } constructor ( private settingsProvider ) { this . active = this . settingsProvider . read ( 'option.vip.multi_account.active' ) ; this . master_password = this . settingsProvider . read ( 'option.vip.multi_account.master_password' ) ; this . windows = this . settingsProvider . read ( 'option.vip.multi_account.window' ) ; } } } }