示例#1
0
 public void SendPlayerData()
 {
     byte[] payload = new byte[0x18];
     _memory.ReadMemory(0x367700, payload, 0x18);
     if (payload[0xF] != 0)
     {
         SendPacket(PacketType.PlayerData, payload);
         _memory.WriteMemory(0x367800, payload, 0x18);
     }
 }
示例#2
0
        public int GetRamLength(int offset)
        {
            for (int i = 0; i < 0x1024; i += 4)
            {
                byte[] buffer = new byte[4];

                _memory.ReadMemory(offset + i, buffer, buffer.Length);
                if ((buffer[0] | buffer[1] | buffer[2] | buffer[3]) == 0)
                {
                    return(i);
                }
            }
            return(0);
        }