OSDN Git Service

ran gdx-tools HeaderFixer tool
[mikumikustudio/libgdx-mikumikustudio.git] / gdx / src / com / badlogic / gdx / maps / tiled / TideMapLoader.java
index df17f7b..d60ae10 100644 (file)
@@ -1,3 +1,19 @@
+/*******************************************************************************\r
+ * Copyright 2011 See AUTHORS file.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ *   http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ ******************************************************************************/
+
 package com.badlogic.gdx.maps.tiled;
 
 import com.badlogic.gdx.assets.AssetDescriptor;
@@ -207,6 +223,8 @@ public class TideMapLoader extends SynchronousAssetLoader<TiledMap, TideMapLoade
                        int tileSizeY = Integer.parseInt(tileSizeParts[1]);
                        
                        TiledMapTileLayer layer = new TiledMapTileLayer(layerSizeX, layerSizeY, tileSizeX, tileSizeY);
+                       layer.setName(id);
+                       layer.setVisible(visible.equalsIgnoreCase("True"));
                        Element tileArray = element.getChildByName("TileArray");
                        Array<Element> rows = tileArray.getChildrenByName("Row");
                        TiledMapTileSets tilesets = map.getTileSets();
@@ -288,4 +306,4 @@ public class TideMapLoader extends SynchronousAssetLoader<TiledMap, TideMapLoade
                return result;          
        }
 
-}
+}
\ No newline at end of file