Exemplo n.º 1
0
        internal static void SetControlBit(int parBit, int parState, int parTickCount)
        {
            if (SetControlBitFunction == null)
            {
                SetControlBitFunction = Memory.Reader.RegisterDelegate <SetControlBitDelegate>((IntPtr)Constants.Offsets.Functions.CGInputControl__SetControlBit);
            }
            IntPtr ptr = CGInputControl__GetActive();

            SetControlBitFunction(ptr, parBit, parState, parTickCount);
        }
Exemplo n.º 2
0
        internal static void SetControlBit(int parBit, int parState, int parTickCount)
        {
            if (SetControlBitFunction == null)
            {
                SetControlBitFunction =
                    Memory.Reader.RegisterDelegate <SetControlBitDelegate>(funcs.CGInputControl__SetControlBit);
            }
            var ptr = Misc.CGInputControlActive.ReadAs <IntPtr>();

            SetControlBitFunction(ptr, parBit, parState, parTickCount);
        }
Exemplo n.º 3
0
        internal static void SetControlBit(int parBit, int parState, int parTickCount)
        {
            if (!ObjectManager.Instance.IsIngame)
            {
                return;
            }
            if (SetControlBitFunction == null)
            {
                SetControlBitFunction =
                    Memory.Reader.RegisterDelegate <SetControlBitDelegate>(funcs.CGInputControl__SetControlBit);
            }
            var ptr = Memory.Reader.Read <IntPtr>(Offsets.Misc.CGInputControlActive);

            MainThread.Instance.Invoke(() => SetControlBitFunction(ptr, parBit, parState, parTickCount));
        }