36 lines
825 B
C#
36 lines
825 B
C#
using Unity.Services.Analytics;
|
|
|
|
namespace DanieleMarotta.RiversongCodeShowcase
|
|
{
|
|
public sealed class SessionHeartbeatAnalyticsEvent : Event
|
|
{
|
|
public SessionHeartbeatAnalyticsEvent() : base("session_heartbeat")
|
|
{
|
|
}
|
|
|
|
public string SessionId
|
|
{
|
|
set => SetParameter("session_id", value);
|
|
}
|
|
|
|
public int HeartbeatIndex
|
|
{
|
|
set => SetParameter("heartbeat_index", value);
|
|
}
|
|
|
|
public float PlaytimeSeconds
|
|
{
|
|
set => SetParameter("playtime_seconds", value);
|
|
}
|
|
|
|
public int TotalBuildingsPlaced
|
|
{
|
|
set => SetParameter("total_buildings_placed", value);
|
|
}
|
|
|
|
public int Population
|
|
{
|
|
set => SetParameter("population", value);
|
|
}
|
|
}
|
|
} |