/// <summary> /// Clone /// </summary> /// <returns>Cloned Header</returns> public FsbFontHeader Clone() { var fsbFontHeader = new FsbFontHeader(); fsbFontHeader.BMFontSize = this.BMFontWidth; fsbFontHeader.BMFontBase = this.BMFontBase; fsbFontHeader.BMFontWidth = this.BMFontWidth; fsbFontHeader.BMFontHeight = this.BMFontHeight; fsbFontHeader.GameObjectFileID = this.GameObjectFileID; fsbFontHeader.GameObjectPathID = this.GameObjectPathID; fsbFontHeader.GameObjectEnables = this.GameObjectEnables; fsbFontHeader.MaterialFileID = this.MaterialFileID; fsbFontHeader.MaterialPathID = this.MaterialPathID; fsbFontHeader.ScriptFileID = this.ScriptFileID; fsbFontHeader.ScriptPathID = this.ScriptPathID; fsbFontHeader.ScriptName = this.ScriptName; fsbFontHeader.SpriteName = this.SpriteName; fsbFontHeader.UVRectX = this.UVRectX; fsbFontHeader.UVRectY = this.UVRectY; fsbFontHeader.UVRectWidth = this.UVRectWidth; fsbFontHeader.UVRectHeight = this.UVRectHeight; return(fsbFontHeader); }
/// <summary> /// フォント座標ヘッダーから値を設定する。 /// </summary> /// <param name="header">フォント座標ヘッダー</param> public void SetHeader(FsbFontHeader header) { this.BMFontSize = header.BMFontSize; this.BMFontBase = header.BMFontBase; this.BMFontWidth = header.BMFontWidth; this.BMFontHeight = header.BMFontHeight; this.GameObjectFileID = header.GameObjectFileID; this.GameObjectPathID = header.GameObjectPathID; this.GameObjectEnables = header.GameObjectEnables; this.MaterialFileID = header.MaterialFileID; this.MaterialPathID = header.MaterialPathID; this.ScriptFileID = header.ScriptFileID; this.ScriptPathID = header.ScriptPathID; this.ScriptName = header.ScriptName; this.SpriteName = header.SpriteName; this.UVRectX = header.UVRectX; this.UVRectY = header.UVRectY; this.UVRectWidth = header.UVRectWidth; this.UVRectHeight = header.UVRectHeight; }