using Titled_Gui.Data.Entity;
using Titled_Gui.Data.Game;

namespace Titled_Gui.Classes
{
    internal class MoneyServices
    //: ThreadService
    { // same here, wasnt used so removed for cpu usage sake
        public static void UpdateStuff()
        {
            if (GameState.memory == null || GameState.LocalPlayer == null)
                return;

            GameState.MoneyServices = GameState.memory.ReadPointer(GameState.LocalPlayer.Controller, Offsets.m_pInGameMoneyServices);
        }
        public static void MoneyTest()
        {
            foreach (Entity? e in GameState.Entities)
            {
                if (e == null) return;

                //Console.WriteLine(e.Account);
                //Console.WriteLine(e.CashSpent);
                //Console.WriteLine(e.CashSpentTotal);
                //Thread.Sleep(100);
            }
        }
        //protected override void FrameAction()
        //{

        //    UpdateStuff();
        //    //MoneyTest();
        //}
    }
}
