Esempio n. 1
0
        private TileMap(TileSet tileSet, string mapName, PortalLayer portals = null)
        {
            this.characters = new Dictionary <string, Point>();
            this.tileSet    = tileSet;
            this.mapName    = mapName;
            //characterManager = CharacterManager.Instance;

            portalLayer = portals != null ? portals : new PortalLayer();
        }
Esempio n. 2
0
        public TileMap(
            TileSet tileSet,
            TileLayer groundLayer,
            TileLayer edgeLayer,
            TileLayer buildingLayer,
            TileLayer decorationLayer,
            string mapName,
            PortalLayer portalLayer = null)
            : this(tileSet, mapName, portalLayer)
        {
            this.groundLayer     = groundLayer;
            this.edgeLayer       = edgeLayer;
            this.buildingLayer   = buildingLayer;
            this.decorationLayer = decorationLayer;

            mapWidth  = groundLayer.Width;
            mapHeight = groundLayer.Height;
        }