public override void Collect(L20nCore.External.InfoCollector info) { var span = DateTime.Now - m_StartTime; int seconds = m_TotalSeconds - ((int)span.TotalSeconds % m_TotalSeconds); int hours = seconds / 3600; seconds -= 3600 * hours; int minutes = seconds / 60; seconds -= 60 * minutes; info.Add("hours", hours); info.Add("minutes", minutes); info.Add("seconds", seconds); }
public override void Collect(L20nCore.External.InfoCollector info) { switch (m_Gender) { case Gender.Default: info.Add("gender", "default"); info.Add("name", () => L20n.Translate("neutral_user_name")); break; case Gender.Feminine: info.Add("gender", "feminine"); info.Add("name", () => L20n.Translate("feminine_user_name")); break; case Gender.Masculine: info.Add("gender", "masculine"); info.Add("name", () => L20n.Translate("masculine_user_name")); break; } }