示例#1
0
文件: WTG.cs 项目: DrizztDoUrden/WPSC
 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);
 }
示例#2
0
文件: WTG.cs 项目: DrizztDoUrden/WPSC
        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);
        }
示例#3
0
 public Category(WCMap map, WtgCategory inner)
 {
     _map  = map;
     Inner = inner;
 }