Exemplo n.º 1
0
        private void ProcessPattern()
        {
            //throw new NotImplementedException();
            LayProperty pattern = GetProperty("PatternMatchData");

            if (pattern == null)
            {
                return;
            }

            Pattern = new LayMapTilePattern(this);
        }
Exemplo n.º 2
0
        public LayEntity(List <LayProperty> properties, int index)
        {
            for (int i = index; i < properties.Count; i++)
            {
                LayProperty prop = properties[i];
                switch (prop.Key)
                {
                case "EntityDescriptionID":
                    if (m_DescriptionID != "")
                    {
                        ProcessData();
                        TilesGrid = new LayMapTileGrid(this);
                        if (GetProperty("PatternMatchData") != null)
                        {
                            Pattern = new LayMapTilePattern(this);
                        }
                        ProcessGrids();
                        ProcessPattern();
                        return;
                    }
                    m_DescriptionID = prop.Value;
                    break;

                case "EndEntityList":
                    ProcessData();
                    TilesGrid = new LayMapTileGrid(this);
                    if (GetProperty("PatternMatchData") != null)
                    {
                        Pattern = new LayMapTilePattern(this);
                    }
                    ProcessGrids();
                    ProcessPattern();
                    return;
                }

                m_Properties.Add(prop);
            }
            ProcessData();

            TilesGrid = new LayMapTileGrid(this);
            if (GetProperty("PatternMatchData") != null)
            {
                Pattern = new LayMapTilePattern(this);
            }
            ProcessGrids();
            ProcessPattern();
        }
Exemplo n.º 3
0
        private void ProcessPattern()
        {
            //throw new NotImplementedException();
            LayProperty pattern = GetProperty("PatternMatchData");
            if (pattern == null)
                return;

            Pattern = new LayMapTilePattern(this);
        }
Exemplo n.º 4
0
        public LayEntity(List<LayProperty> properties, int index)
        {
            for (int i = index; i < properties.Count; i++)
            {
                LayProperty prop = properties[i];
                switch (prop.Key)
                {
                    case "EntityDescriptionID":
                        if (m_DescriptionID != "")
                        {
                            ProcessData();
                            TilesGrid = new LayMapTileGrid(this);
                            if (GetProperty("PatternMatchData") != null)
                                Pattern = new LayMapTilePattern(this);
                            ProcessGrids();
                            ProcessPattern();
                            return;
                        }
                        m_DescriptionID = prop.Value;
                        break;

                    case "EndEntityList":
                        ProcessData();
                        TilesGrid = new LayMapTileGrid(this);
                        if (GetProperty("PatternMatchData") != null)
                            Pattern = new LayMapTilePattern(this);
                        ProcessGrids();
                        ProcessPattern();
                        return;
                }

                m_Properties.Add(prop);
            }
            ProcessData();

            TilesGrid = new LayMapTileGrid(this);
            if (GetProperty("PatternMatchData") != null)
                Pattern = new LayMapTilePattern(this);
            ProcessGrids();
            ProcessPattern();
        }