Example #1
0
 // Methods
 internal void Init(BigEndianReader Reader, int MapVersion)
 {
     this.LayerId = Reader.ReadInt();
     this.CellsCount = Reader.ReadShort();
     int cellsCount = this.CellsCount;
     int i = 1;
     while ((i <= cellsCount))
     {
         Cell item = new Cell();
         item.Init(Reader, MapVersion);
         this.Cells.Add(item);
         i += 1;
     }
 }
Example #2
0
        // Methods
        internal void Init(BigEndianReader Reader, int MapVersion)
        {
            this.LayerId    = Reader.ReadInt();
            this.CellsCount = Reader.ReadShort();
            int cellsCount = this.CellsCount;
            int i          = 1;

            while ((i <= cellsCount))
            {
                Cell item = new Cell();
                item.Init(Reader, MapVersion);
                this.Cells.Add(item);
                i += 1;
            }
        }
Example #3
0
        // Methods
        internal void Init(BigEndianReader Reader, int MapVersion)
        {
            if (MapVersion >= 9)
            {
                LayerId = Reader.ReadByte();
            }
            else
            {
                LayerId = Reader.ReadInt();
            }
            CellsCount = Reader.ReadShort();
            int cellsCount = CellsCount;
            int i          = 1;

            while ((i <= cellsCount))
            {
                Cell item = new Cell();
                item.Init(Reader, MapVersion);
                Cells.Add(item);
                i += 1;
            }
        }