mirror of
https://github.com/4sval/FModel.git
synced 2026-04-15 05:56:19 -05:00
35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace PakReader.Parsers.Objects
|
|
{
|
|
public partial class FTextHistory
|
|
{
|
|
public sealed class AsTime : FTextHistory
|
|
{
|
|
public readonly FDateTime SourceDateTime;
|
|
public readonly EDateTimeStyle TimeStyle;
|
|
public readonly string TimeZone;
|
|
public readonly string CultureName;
|
|
|
|
internal AsTime(PackageReader reader)
|
|
{
|
|
SourceDateTime = new FDateTime(reader);
|
|
TimeStyle = (EDateTimeStyle)reader.ReadByte();
|
|
TimeZone = reader.ReadFString();
|
|
CultureName = reader.ReadFString();
|
|
}
|
|
|
|
public Dictionary<string, object> GetValue()
|
|
{
|
|
return new Dictionary<string, object>
|
|
{
|
|
["SourceDateTime"] = SourceDateTime.Ticks,
|
|
["TimeStyle"] = TimeStyle,
|
|
["TimeZone"] = TimeZone,
|
|
["CultureName"] = CultureName,
|
|
};
|
|
}
|
|
}
|
|
}
|
|
}
|