// Token: 0x060000A1 RID: 161 RVA: 0x00003918 File Offset: 0x00001B18
        public void ReadFrom(VarLenBinaryReader reader)
        {
            uint num  = reader.ReadVarLen32();
            int  num2 = 0;

            while ((long)num2 < (long)((ulong)num))
            {
                this.TileIdMap.Add(reader.ReadVarLen32(), reader.ReadVarLen32());
                num2++;
            }
            num = reader.ReadVarLen32();
            int num3 = 0;

            while ((long)num3 < (long)((ulong)num))
            {
                this.ObjectIdMap.Add(reader.ReadVarLen32(), reader.ReadVarLen32());
                num3++;
            }
            num = reader.ReadVarLen32();
            int num4 = 0;

            while ((long)num4 < (long)((ulong)num))
            {
                this.RegionMap.Add(reader.ReadVarLen32(), reader.ReadString());
                num4++;
            }
        }
Пример #2
0
        // Token: 0x06000149 RID: 329 RVA: 0x00005568 File Offset: 0x00003768
        internal MapObject ReadFrom(VarLenBinaryReader reader, DeserializationContext ctx)
        {
            this.ObjectType = ctx.GetObjectId(reader.ReadVarLen32());
            uint num = reader.ReadVarLen32();

            this.Attributes = ((num == 0u) ? Empty <KeyValuePair <string, string> > .Array : new KeyValuePair <string, string> [num]);
            for (int i = 0; i < this.Attributes.Length; i++)
            {
                this.Attributes[i] = new KeyValuePair <string, string>(reader.ReadString(), reader.ReadString());
            }
            return(this);
        }