/// <summary> /// Streamからフォント座標ヘッダーを読み込む。 /// </summary> /// <param name="reader">Stream</param> public void Read(BinaryReader reader) { this.GameObjectFileID = reader.ReadInt32(); this.GameObjectPathID = reader.ReadInt64(); this.GameObjectEnables = FsbBinUtils.ReadBoolean(reader); this.ScriptFileID = reader.ReadInt32(); this.ScriptPathID = reader.ReadInt64(); this.ScriptName = FsbBinUtils.ReadString(reader); this.MaterialFileID = reader.ReadInt32(); this.MaterialPathID = reader.ReadInt64(); this.UVRectX = reader.ReadSingle(); this.UVRectY = reader.ReadSingle(); this.UVRectWidth = reader.ReadSingle(); this.UVRectHeight = reader.ReadSingle(); this.BMFontSize = reader.ReadInt32(); this.BMFontBase = reader.ReadInt32(); this.BMFontWidth = reader.ReadInt32(); this.BMFontHeight = reader.ReadInt32(); this.SpriteName = FsbBinUtils.ReadString(reader); }
/// <summary> /// Streamから言語データエントリーを読み込む。 /// </summary> /// <param name="br">Stream</param> public void Read(BinaryReader br) { this.TranslationId = FsbBinUtils.ReadString(br); this.TranslationText = FsbBinUtils.ReadString(br); this.LastModificationTicks = br.ReadInt64(); this.HumanlyReadableDate = FsbBinUtils.ReadString(br); }
/// <summary> /// Streamからヘッダー情報を読み込む。 /// </summary> /// <param name="br">stream</param> public void Read(BinaryReader br) { this.GameObjectFileID = br.ReadInt32(); this.GameObjectPathID = br.ReadInt64(); this.Enabled = FsbBinUtils.ReadBoolean(br); this.ScriptFileID = br.ReadInt32(); this.ScriptPathID = br.ReadInt64(); this.Name = FsbBinUtils.ReadString(br); this.LanguageKey = FsbBinUtils.ReadString(br); this.MasterLanguageKey = FsbBinUtils.ReadString(br); }
/// <summary> /// Streamからデータを読み込み、言語ヘッダーを返す。 /// </summary> /// <param name="br">Stream</param> /// <returns>言語ヘッダー</returns> public static FssLanguageHeader Read(BinaryReader br) { var fssLanguageHeader = new FssLanguageHeader(); fssLanguageHeader.GameObjectFileID = br.ReadInt32(); fssLanguageHeader.GameObjectPathID = br.ReadInt64(); fssLanguageHeader.Enabled = FsbBinUtils.ReadBoolean(br); fssLanguageHeader.ScriptFileID = br.ReadInt32(); fssLanguageHeader.ScriptPathID = br.ReadInt64(); fssLanguageHeader.Name = FsbBinUtils.ReadString(br); fssLanguageHeader.GoogleWebServiceURL = FsbBinUtils.ReadString(br); fssLanguageHeader.GoogleSpreadsheetKey = FsbBinUtils.ReadString(br); fssLanguageHeader.GoogleSpreadsheetName = FsbBinUtils.ReadString(br); fssLanguageHeader.GoogleLastUpdatedVersion = FsbBinUtils.ReadString(br); fssLanguageHeader.GoogleUpdateFrequency = br.ReadInt32(); return(fssLanguageHeader); }
/// <summary> /// Streamからデータを読み込み、言語エントリーを返す。 /// </summary> /// <param name="reader">Stream</param> /// <returns>言語エントリー</returns> public static FssLanguageEntry Read(BinaryReader reader) { var fssLanguageEntry = new FssLanguageEntry(); fssLanguageEntry.EntryID = FsbBinUtils.ReadString(reader); fssLanguageEntry.TermType = reader.ReadInt32(); fssLanguageEntry.Description = FsbBinUtils.ReadString(reader); if (fssLanguageEntry.Description == "\"") { ////fssLanguageEntry.Description = string.Empty; } var langCount = reader.ReadInt32(); fssLanguageEntry.Texts = new List <string>(); for (var i = 0; i < langCount; i++) { var text = FsbBinUtils.ReadString(reader); fssLanguageEntry.Texts.Add(text); } int languagesTouchCount = reader.ReadInt32(); fssLanguageEntry.LanguagesTouch = new List <string>(); for (int i = 0; i < languagesTouchCount; i++) { var touch = FsbBinUtils.ReadString(reader); fssLanguageEntry.LanguagesTouch.Add(touch); } int flagsCount = reader.ReadInt32(); fssLanguageEntry.Flags = new List <int>(); for (int i = 0; i < flagsCount; i++) { var flags = reader.ReadInt32(); fssLanguageEntry.Flags.Add(flags); } return(fssLanguageEntry); }
/// <summary> /// Streamから言語テーブルエントリーを読み込む。 /// </summary> /// <param name="br">Stream</param> public void Read(BinaryReader br) { this.Name = FsbBinUtils.ReadString(br); this.Code = FsbBinUtils.ReadString(br); }