Exemplo n.º 1
0
        public void WriteAreaData(
            int snesAddress,
            IEnumerable <AreaObjectCommand> data)
        {
            var bytes = new List <byte>(
                AreaObjectCommand.GetAreaByteData(data));

            bytes.CopyTo(Rom.Data, Rom.SnesToPc(snesAddress));
        }
Exemplo n.º 2
0
        public IEnumerable <AreaObjectCommand> GetAreaData(int snesAddress)
        {
            var index = Rom.SnesToPc(snesAddress);

            return(AreaObjectCommand.GetAreaData(Rom.Data.Skip(index)));
        }