Exemplo n.º 1
0
        // Values in the following functions have been pointer-sniped with Cheat Engine.
        // Feel free to use them in your app.

        public static Point GetPlayer(this ProcessHandle handle)
        {
            var res = new Point();

            byte[] rawx = handle.GetBytes(0x4EEEF8, 4, 0xCC8, 0x188, 0x8);
            res.X = Convert.ToInt32(BitConverter.ToSingle(rawx, 0));

            byte[] rawy = handle.GetBytes(0x4EEEF8, 4, 0xCC8, 0x188, 0xC);
            res.Y = Convert.ToInt32(BitConverter.ToSingle(rawy, 0));

            return(res);
        }
Exemplo n.º 2
0
        public static short GetBackground(this ProcessHandle handle, int x, int y)
        {
            int lastoffset = 0x06 + x * 0x80 + y * 0x3200;

            byte[] rawx = handle.GetBytes(0x4EEEF8, 2, 0xCC8, 0x130, 0x28, lastoffset);
            return(BitConverter.ToInt16(rawx, 0));
        }
Exemplo n.º 3
0
 public static bool GetDirection(this ProcessHandle handle)
 {
     byte[] raw = handle.GetBytes(0x4EEEF8, 1, 0xCC8, 0x188, 0x131);
     return(raw[0] == 0);
 }