protected void WriteHsav(PNGWriter pw) { pw.WriteTDCG(); pw.WriteHSAV(); foreach (TSOData tso in fig.TSOList) { pw.WriteFTSO(tso.opt1, tso.ftso); } }
protected void WriteFTSO(PNGWriter pw, string tso_file) { Console.WriteLine("TSO Load File: " + tso_file); string code = Path.GetFileNameWithoutExtension(tso_file); uint opt1 = opt_value(code); using (Stream tso_stream = File.OpenRead(tso_file)) { pw.WriteFTSO(opt1, tso_stream); } }
protected void WriteScne(PNGWriter pw) { pw.WriteTDCG(); pw.WriteSCNE(FigureCount()); pw.WriteCAMI(cami); foreach (TSOFigure fig in TSOFigureList) { pw.WriteLGTA(fig.lgta); pw.WriteFTMO(fig.tmo); pw.WriteFIGU(fig.figu); foreach (TSOData tso in fig.TSOList) { pw.WriteFTSO(tso.opt1, tso.ftso); } } }