Esempio n. 1
0
 private void Produce(WcDataWriter writer, WtgCategory category)
 {
     writer.Write(4u);
     writer.Write(category.Id);
     writer.Write(category.Name);
     if (FormatVersion >= 7)
     {
         writer.Write(category.IsComment);
     }
     writer.Write(category.HasChildren);
     writer.Write(category.ParentId);
 }
Esempio n. 2
0
        private WtgCategory ParseCategory(WcDataReader reader)
        {
            var category = new WtgCategory();

            category.Id   = reader.ReadUInt32();
            category.Name = reader.ReadString();
            if (FormatVersion >= 7)
            {
                category.IsComment = reader.ReadBoolean();
            }
            category.HasChildren = reader.ReadBoolean();
            category.ParentId    = reader.ReadUInt32();
            return(category);
        }
Esempio n. 3
0
 public Category(WCMap map, WtgCategory inner)
 {
     _map  = map;
     Inner = inner;
 }