public static byte[] readByte(int dir) { Process process = getPokemonProcess(); if (process == null) { return(null); } int salida; byte[] value = MemoryHandler.ReadMemory(process, dir, sizeof(int), out salida); return(value); }
public static float readFloat(int dir) { Process process = getPokemonProcess(); if (process == null) { return(0); } int salida; byte[] value = MemoryHandler.ReadMemory(process, dir, sizeof(float), out salida); return(BitConverter.ToSingle(value, 0)); }
public static short readShort(int dir) { Process process = getPokemonProcess(); if (process == null) { return(0); } int salida; byte[] value = MemoryHandler.ReadMemory(process, dir, sizeof(short), out salida); return(BitConverter.ToInt16(value, 0)); }