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); }
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); }
public Category(WCMap map, WtgCategory inner) { _map = map; Inner = inner; }