Ejemplo n.º 1
0
 public LDtkLevelBackgroundBuilder(LDtkProjectImporter importer, GameObject levelTransform, LDtkSortingOrder layerSortingOrder, Level level)
 {
     _importer          = importer;
     _levelTransform    = levelTransform;
     _layerSortingOrder = layerSortingOrder;
     _level             = level;
 }
Ejemplo n.º 2
0
 public LDtkLevelBackgroundBuilder(LDtkProjectImporter importer, GameObject levelTransform, LDtkSortingOrder layerSortingOrder, Level level, Vector2 worldSpaceSize)
 {
     _importer          = importer;
     _levelTransform    = levelTransform;
     _layerSortingOrder = layerSortingOrder;
     _level             = level;
     _worldSpaceSize    = worldSpaceSize;
 }
Ejemplo n.º 3
0
        private void BuildLayerInstances()
        {
            LDtkComponentLevel levelComponent = CreateLevelGameObject();

            _sortingOrder = new LDtkSortingOrder();

            //build layers and background from front to back in terms of ordering
            foreach (LayerInstance layer in _level.LayerInstances)
            {
                BuildLayerInstance(layer);
            }

            _backgroundBuilder = new LDtkLevelBackgroundBuilder(_importer, _levelGameObject, _sortingOrder, _level, levelComponent.Size);
            _backgroundBuilder.BuildBackground();
        }
Ejemplo n.º 4
0
 public LDtkBuilderEntity(LDtkProjectImporter importer, GameObject layerGameObject, LDtkSortingOrder sortingOrder) : base(importer, layerGameObject, sortingOrder)
 {
 }
Ejemplo n.º 5
0
 protected LDtkLayerBuilder(LDtkProjectImporter importer, GameObject layerGameObject, LDtkSortingOrder sortingOrder)
 {
     Importer        = importer;
     LayerGameObject = layerGameObject;
     SortingOrder    = sortingOrder;
 }
Ejemplo n.º 6
0
 public LDtkLayeredTilesetProvider(LDtkSortingOrder sortingOrder, TilemapCreation tilemapGetter)
 {
     _sortingOrder  = sortingOrder;
     _tilemapGetter = tilemapGetter;
 }
Ejemplo n.º 7
0
 public LDtkBuilderTileset(LDtkProjectImporter importer, GameObject layerGameObject, LDtkSortingOrder sortingOrder) : base(importer, layerGameObject, sortingOrder)
 {
     _tilesetProvider = new OffsetTilemapStacks(ConstructNewTilemap);
 }
Ejemplo n.º 8
0
 public LDtkBuilderIntGridValue(LDtkProjectImporter importer, GameObject layerGameObject, LDtkSortingOrder sortingOrder) : base(importer, layerGameObject, sortingOrder)
 {
 }