mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Refactor StatusEffectContainer to better handle messages using
CommandResultContainer. Alter Modifiers to be the same as ParamNames. Add LoseOnClassChange flag for status effects. Add a few missing status effects. Fix EndTime for stance status effects to stop icon from blinking.
This commit is contained in:
@@ -7,6 +7,7 @@ namespace FFXIVClassic.Common
|
||||
public static class Utils
|
||||
{
|
||||
private static readonly uint[] _lookup32 = CreateLookup32();
|
||||
private static readonly DateTime epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
|
||||
|
||||
private static uint[] CreateLookup32()
|
||||
{
|
||||
@@ -106,6 +107,11 @@ namespace FFXIVClassic.Common
|
||||
return unixTimeStamp;
|
||||
}
|
||||
|
||||
public static DateTime UnixTimeStampToDateTime(uint timestamp)
|
||||
{
|
||||
return epoch.AddSeconds(timestamp);
|
||||
}
|
||||
|
||||
public static ulong SwapEndian(ulong input)
|
||||
{
|
||||
return 0x00000000000000FF & (input >> 56) |
|
||||
|
Reference in New Issue
Block a user