3 protected WorldTimestamp m_fLoginTimestamp;
6 protected string m_sRoomID;
7 protected FactionKey m_sFactionKey;
8 protected int m_iLoginYear;
9 protected int m_iLoginMonth;
10 protected int m_iLoginDay;
11 protected int m_iLoginHour;
12 protected int m_iLoginMinute;
13 protected int m_iLoginSecond;
14 protected int m_iLogoutYear;
15 protected int m_iLogoutMonth;
16 protected int m_iLogoutDay;
17 protected int m_iLogoutHour;
18 protected int m_iLogoutMinute;
19 protected int m_iLogoutSecond
20 protected float m_fTimeInSession;
23 void SetRoomID(
string ID)
35 void SetFactionKey(FactionKey factionKey)
41 FactionKey GetFactionKey()
47 void SetLoginTime(
int year,
int month,
int day,
int hour,
int minute,
int second)
50 m_iLoginMonth = month;
53 m_iLoginMinute = minute;
54 m_iLoginSecond = second;
56 m_fLoginTimestamp = world.GetServerTimestamp();
60 void GetLoginTime(out notnull array<int> loginData)
62 loginData = {m_iLoginYear, m_iLoginMonth, m_iLoginDay, m_iLoginHour, m_iLoginMinute, m_iLoginSecond};
66 void SetLogoutTime(
int year,
int month,
int day,
int hour,
int minute,
int second)
69 m_iLogoutMonth = month;
72 m_iLogoutMinute = minute;
73 m_iLogoutSecond = second;
75 m_fTimeInSession = world.GetServerTimestamp().DiffMilliseconds(m_fLoginTimestamp);
79 void GetLogoutTime(out notnull array<int> logoutData)
81 logoutData = {m_iLogoutYear, m_iLogoutMonth, m_iLogoutDay, m_iLogoutHour, m_iLogoutMinute, m_iLogoutSecond};
85 float GetTimeInSession()
87 return m_fTimeInSession;
94 RegV(
"m_sFactionKey");
97 RegV(
"m_iLoginMonth");
100 RegV(
"m_iLoginMinute");
101 RegV(
"m_iLoginSecond");
103 RegV(
"m_iLogoutYear");
104 RegV(
"m_iLogoutMonth");
105 RegV(
"m_iLogoutDay");
106 RegV(
"m_iLogoutHour");
107 RegV(
"m_iLogoutMinute");
108 RegV(
"m_iLogoutSecond");
110 RegV(
"m_fTimeInSession");