// Methods internal void Init(IDataReader Reader, int MapVersion) { CellId = Reader.ReadShort(); ElementsCount = Reader.ReadShort(); for (int i = 0; i < ElementsCount; i++) { BasicElement be = BasicElement.GetElementFromType(Reader.ReadByte()); be.Init(Reader, MapVersion); Elements.Add(be); } }
// Methods internal void Init(BigEndianReader Reader, int MapVersion) { this.CellId = Reader.ReadShort(); this.ElementsCount = Reader.ReadShort(); int elementsCount = this.ElementsCount; for (int i = 0; i < elementsCount; i++) { BasicElement elementFromType = BasicElement.GetElementFromType(Reader.ReadByte()); elementFromType.Init(Reader, MapVersion); this.Elements.Add(elementFromType); } }
// Methods internal void Init(BigEndianReader Reader, int MapVersion) { CellId = Reader.ReadShort(); ElementsCount = Reader.ReadShort(); int elementsCount = ElementsCount; int i = 1; while ((i <= elementsCount)) { BasicElement elementFromType = BasicElement.GetElementFromType(Reader.ReadByte()); elementFromType.Init(Reader, MapVersion); Elements.Add(elementFromType); i += 1; } }