예제 #1
0
        /// <summary>
        /// Streamへフォント座標ヘッダーを書き込む。
        /// </summary>
        /// <param name="writer">Stream</param>
        public void Write(BinaryWriter writer)
        {
            //// ToDo: ファイル名や内部名の長さを求める処理を追加。
            writer.Write(this.GameObjectFileID);
            writer.Write(this.GameObjectPathID);
            FsbBinUtils.WriteBoolean(writer, this.GameObjectEnables);

            writer.Write(this.ScriptFileID);
            writer.Write(this.ScriptPathID);
            FsbBinUtils.WriteString(writer, this.ScriptName);

            writer.Write(this.MaterialFileID);
            writer.Write(this.MaterialPathID);

            writer.Write(this.UVRectX);
            writer.Write(this.UVRectY);
            writer.Write(this.UVRectWidth);
            writer.Write(this.UVRectHeight);

            writer.Write(this.BMFontSize);
            writer.Write(this.BMFontBase);
            writer.Write(this.BMFontWidth);
            writer.Write(this.BMFontHeight);

            FsbBinUtils.WriteString(writer, this.SpriteName);
        }
예제 #2
0
 /// <summary>
 /// 言語データエントリーをStreamに書き出す。
 /// </summary>
 /// <param name="bw">Stream</param>
 public void Write(BinaryWriter bw)
 {
     FsbBinUtils.WriteString(bw, this.TranslationId);
     FsbBinUtils.WriteString(bw, this.TranslationText);
     bw.Write(this.LastModificationTicks);
     FsbBinUtils.WriteString(bw, this.HumanlyReadableDate);
 }
예제 #3
0
        /// <summary>
        /// Streamにデータを書き込む。
        /// </summary>
        /// <param name="bw">Stream</param>
        public void Write(BinaryWriter bw)
        {
            FsbBinUtils.WriteString(bw, this.EntryID);
            bw.Write(this.TermType);
            FsbBinUtils.WriteString(bw, this.Description);

            //// Texts
            bw.Write(this.Texts.Count);
            foreach (var text in this.Texts)
            {
                FsbBinUtils.WriteString(bw, text);
            }

            //// LanguagesTouch
            bw.Write(this.LanguagesTouch.Count);
            foreach (var entry in this.LanguagesTouch)
            {
                FsbBinUtils.WriteString(bw, entry);
            }

            //// Flags
            bw.Write(this.Flags.Count);
            foreach (var entry in this.Flags)
            {
                bw.Write(entry);
            }
        }
예제 #4
0
 /// <summary>
 /// ヘッダー情報をStreamに書き出す。
 /// </summary>
 /// <param name="bw">stream</param>
 public void Write(BinaryWriter bw)
 {
     bw.Write(this.GameObjectFileID);
     bw.Write(this.GameObjectPathID);
     FsbBinUtils.WriteBoolean(bw, this.Enabled);
     bw.Write(this.ScriptFileID);
     bw.Write(this.ScriptPathID);
     FsbBinUtils.WriteString(bw, this.Name);
     FsbBinUtils.WriteString(bw, this.LanguageKey);
     FsbBinUtils.WriteString(bw, this.MasterLanguageKey);
 }
예제 #5
0
 /// <summary>
 /// Streamにデータを書き込む。
 /// </summary>
 /// <param name="bw">Stream</param>
 public void Write(BinaryWriter bw)
 {
     bw.Write(this.GameObjectFileID);
     bw.Write(this.GameObjectPathID);
     FsbBinUtils.WriteBoolean(bw, this.Enabled);
     bw.Write(this.ScriptFileID);
     bw.Write(this.ScriptPathID);
     FsbBinUtils.WriteString(bw, this.Name);
     FsbBinUtils.WriteString(bw, this.GoogleWebServiceURL);
     FsbBinUtils.WriteString(bw, this.GoogleSpreadsheetKey);
     FsbBinUtils.WriteString(bw, this.GoogleSpreadsheetName);
     FsbBinUtils.WriteString(bw, this.GoogleLastUpdatedVersion);
     bw.Write(this.GoogleUpdateFrequency);
 }
예제 #6
0
 /// <summary>
 /// Streamに言語テーブルエントリーを書き込む。
 /// </summary>
 /// <param name="bw">Stream</param>
 public void Write(BinaryWriter bw)
 {
     FsbBinUtils.WriteString(bw, this.Name);
     FsbBinUtils.WriteString(bw, this.Code);
 }