Exemplo n.º 1
0
        public long GetSaveData(ref byte[] data, DataType type)
        {
            switch (type)
            {
            case DataType.bg1Data:
                return(metadata.CompressBG1(ref data, bg1RoomData));

            case DataType.bg2Data:
                return(metadata.CompressBG2(ref data, bg2RoomData));

            case DataType.chestData:
                return(metadata.GetChestData(ref data));

            case DataType.bg1MetaTileSet:
                return(bg1MetaTiles.GetCompressedMetaTileSet(ref data));

            case DataType.bg2MetaTileSet:
                return(bg2MetaTiles.GetCompressedMetaTileSet(ref data));

            case DataType.list1Data:
                return(metadata.GetList1Data(ref data));

            case DataType.list2Data:
                return(metadata.GetList2Data(ref data));

            case DataType.list3Data:
                return(metadata.GetList3Data(ref data));

            case DataType.warpData:
                return(metadata.GetWarpData(ref data));

            default:
                return(0);
            }
        }
Exemplo n.º 2
0
        public long GetSaveData(ref byte[] data, DataType type)
        {
            switch (type)
            {
            case DataType.bg1Data:
                return(metadata.CompressBG1(ref data, bg1RoomData));

            case DataType.bg2Data:
                return(metadata.CompressBG2(ref data, bg2RoomData));

            case DataType.chestData:
                return(metadata.GetChestData(ref data));

            case DataType.bg1MetaTileSet:
                return(bg1MetaTiles.GetCompressedMetaTileSet(ref data));

            case DataType.bg2MetaTileSet:
                return(bg2MetaTiles.GetCompressedMetaTileSet(ref data));

            case DataType.list1Data:
                return(metadata.GetList1Data(ref data));

            case DataType.list2Data:
                return(metadata.GetList2Data(ref data));

            case DataType.list3Data:
                return(metadata.GetList3Data(ref data));

            case DataType.warpData:
                return(metadata.GetWarpData(ref data));

            case DataType.bg1MetaTileType:
                return(bg1MetaTiles.GetCompressedMetaTileTypes(ref data));

            case DataType.bg2MetaTileType:
                return(bg2MetaTiles.GetCompressedMetaTileTypes(ref data));

            case DataType.roomMetaData:
                return(GetMetadata(ref data));

            case DataType.bg1TileSet:
                return(tileSet.GetCompressedTileSetData(ref data, TileSet.TileSetDataType.BG1));

            case DataType.bg2TileSet:
                return(tileSet.GetCompressedTileSetData(ref data, TileSet.TileSetDataType.BG2));

            case DataType.commonTileSet:
                return(tileSet.GetCompressedTileSetData(ref data, TileSet.TileSetDataType.COMMON));

            default:
                return(0);
            }
        }