R28_dev1 - Turkish weather bug fix, .rel progress

This commit is contained in:
dexyfex
2017-12-20 10:52:50 +11:00
Unverified
parent d3fa4d7a3e
commit 470f71d6ca
16 changed files with 681 additions and 124 deletions
+39
View File
@@ -195,6 +195,45 @@ namespace CodeWalker.GameFiles
}
}
[TypeConverter(typeof(ExpandableObjectConverter))] public struct FlagsUshort
{
public ushort Value { get; set; }
public string Hex
{
get
{
return Convert.ToString(Value, 16).ToUpper().PadLeft(4, '0');
}
}
public string Bin
{
get
{
return Convert.ToString(Value, 2).PadLeft(16, '0');
}
}
public FlagsUshort(ushort v)
{
Value = v;
}
public override string ToString()
{
return Bin + " | 0x" + Hex + " | " + Value.ToString();
}
public string ToShortString()
{
return Bin + " | 0x" + Hex;
}
public static implicit operator FlagsUshort(ushort v)
{
return new FlagsUshort(v);
}
}
[TypeConverter(typeof(ExpandableObjectConverter))] public struct FlagsUint
{