예제 #1
0
        public void WriteAreaData(
            int snesAddress,
            IEnumerable <AreaSpriteCommand> data)
        {
            var bytes = new List <byte>(
                AreaSpriteCommand.GetAreaByteData(data));

            bytes.CopyTo(Rom.Data, Rom.SnesToPc(snesAddress));
        }
예제 #2
0
        public IEnumerable <AreaSpriteCommand> GetAreaData(int snesAddress)
        {
            var index = Rom.SnesToPc(snesAddress);

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