/// <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.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 FssLanguageFooter Read(BinaryReader reader) { var fssLanguageFooter = new FssLanguageFooter(); try { fssLanguageFooter.LanguageCategoryFile.Read(reader); fssLanguageFooter.CaseInsensitiveTerms = FsbBinUtils.ReadBoolean(reader); fssLanguageFooter.AssetsCount = reader.ReadInt32(); //// ToDo: Assets配列の処理を追加する。 fssLanguageFooter.NeverDestroy = FsbBinUtils.ReadBoolean(reader); fssLanguageFooter.UserAgreesToHaveItOnTheScene = FsbBinUtils.ReadBoolean(reader); } catch { throw; } return(fssLanguageFooter); }