public Xmb2Writer(Xmb xmb, BinaryWriter writer) { _xmb = xmb; _writer = writer; elementsOffset = new int[xmb.Elements.Count()]; attributesOffset = new int[xmb.Elements.Count()]; variantsOffset = new int[xmb.Elements.Count()]; }
public static void Create(Xmb xmb, BinaryWriter writer) { new Xmb2Writer(xmb, writer).Convert(); }