コード例 #1
0
ファイル: FText.cs プロジェクト: Pro-Swapper/ProSwapper
        public FText(FAssetArchive Ar)
        {
            Flags = Ar.Read <uint>();

            HistoryType = Ar.Read <ETextHistoryType>();
            TextHistory = HistoryType switch
            {
                ETextHistoryType.Base => new FTextHistory.Base(Ar),
                ETextHistoryType.NamedFormat => new FTextHistory.NamedFormat(Ar),
                ETextHistoryType.OrderedFormat => new FTextHistory.OrderedFormat(Ar),
                ETextHistoryType.ArgumentFormat => new FTextHistory.ArgumentFormat(Ar),
                ETextHistoryType.AsNumber => new FTextHistory.FormatNumber(Ar, HistoryType),
                ETextHistoryType.AsPercent => new FTextHistory.FormatNumber(Ar, HistoryType),
                ETextHistoryType.AsCurrency => new FTextHistory.FormatNumber(Ar, HistoryType),
                ETextHistoryType.AsDate => new FTextHistory.AsDate(Ar),
                ETextHistoryType.AsTime => new FTextHistory.AsTime(Ar),
                ETextHistoryType.AsDateTime => new FTextHistory.AsDateTime(Ar),
                ETextHistoryType.Transform => new FTextHistory.Transform(Ar),
                ETextHistoryType.StringTableEntry => new FTextHistory.StringTableEntry(Ar),
                ETextHistoryType.TextGenerator => new FTextHistory.TextGenerator(Ar),
                _ => new FTextHistory.None(Ar)
            };
        }
コード例 #2
0
ファイル: FText.cs プロジェクト: Pro-Swapper/ProSwapper
 public FText(uint flags, ETextHistoryType historyType, FTextHistory textHistory)
 {
     Flags       = flags;
     HistoryType = historyType;
     TextHistory = textHistory;
 }