Ejemplo n.º 1
0
        public static void WriteAssoc(BinaryWriter bw, Assoc assoc)
        {
            bw.Write(assoc.ID);
            bw.Write(assoc.Curves.Count);

            foreach (GraphPoint point in assoc.Curves)
            {
                point.WriteToFile(bw);
            }
        }
Ejemplo n.º 2
0
        public static void WriteLayer(BinaryWriter bw, Layer layer)
        {
            bw.Write(layer.ID);
            bw.Write((short)layer.rtpc.Count);

            foreach (RTPC value in layer.rtpc)
            {
                value.WriteToFile(bw);
            }

            bw.Write(layer.rtpcID);
            bw.Write(layer.rtpcType);
            bw.Write(layer.Associates.Count);

            foreach (Assoc assoc in layer.Associates)
            {
                Assoc.WriteAssoc(bw, assoc);
            }
        }