Esempio n. 1
0
        public static JobHandle ScheduleUpdateTileMapDataJob(ref MapPixelData mapPixel, JobHandle dependencies)
        {
            int tilemapDim = MapsFile.WorldMapTileDim;
            UpdateTileMapDataJob updateTileMapDataJob = new UpdateTileMapDataJob()
            {
                tilemapData = mapPixel.tilemapData,
                tileMap     = mapPixel.tileMap,
                tDim        = tilemapDim,
            };

            return(updateTileMapDataJob.Schedule(tilemapDim * tilemapDim, 64, dependencies));
        }
        public static JobHandle ScheduleUpdateTileMapDataJob(ref MapPixelData mapPixel, JobHandle dependencies)
        {
            int  tilemapDim   = MapsFile.WorldMapTileDim;
            bool convertWater = DaggerfallUnity.Instance.TerrainTexturing.ConvertWaterTiles();
            UpdateTileMapDataJob updateTileMapDataJob = new UpdateTileMapDataJob()
            {
                tilemapData  = mapPixel.tilemapData,
                tileMap      = mapPixel.tileMap,
                tDim         = tilemapDim,
                convertWater = convertWater,
            };

            return(updateTileMapDataJob.Schedule(tilemapDim * tilemapDim, 64, dependencies));
        }