예제 #1
0
        public MainWindow()
        {
            InitializeComponent();
            this.DataContext = this;

            TheGame           = new GameLogic();
            TheGame.OnUpdate += delegate(object o, LalaUpdate update)
            {
                this.Dispatcher.Invoke(DispatcherPriority.Send, new Action(() => { UpdateSystem(update); }));
            };

            FFXIVMemory.InitializeMemory();
        }
예제 #2
0
        ///////////////////////////////////////////////////////////////////////////////////////////
        // Internals
        ///////////////////////////////////////////////////////////////////////////////////////////

        public MainWindow()
        {
            InitializeComponent();
            this.DataContext = this;

            this.Time              = new TimeSpan(0);
            this.RunTimer          = new Timer();
            this.RunTimer.Interval = 500;
            this.RunTimer.Elapsed += DispatcherTimer_Tick;

            // TODO: Drop-down menu to select game
            TheGame           = new Nutcracker();
            TheGame.OnUpdate += delegate(object o, GameUpdate update)
            {
                this.Dispatcher.Invoke(DispatcherPriority.Send, new Action(() => { UpdateSystem(o, update); }));
            };

            FFXIVMemory.InitializeMemory();
        }