Пример #1
0
 def write_to_minimap(self, rom: LocalRom, addr):
     rom.write_sbyte(addr, self.icon)
     rom.write_byte(addr + 1, self.count)
     cur = 2
     for p in self.points:
         p.write_to_minimap(rom, addr + cur)
         cur += 0x03
Пример #2
0
 def write_to_minimap(self, rom: LocalRom, addr):
     rom.write_sbyte(addr, self.flag)
     rom.write_byte(addr + 1, self.x)
     rom.write_byte(addr + 2, self.y)