riversong code showcase
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using Unity.Services.Analytics;
|
||||
|
||||
namespace DanieleMarotta.RiversongCodeShowcase
|
||||
{
|
||||
public sealed class BuildingConstructionCompletedAnalyticsEvent : Event
|
||||
{
|
||||
public BuildingConstructionCompletedAnalyticsEvent() : base("building_construction_completed")
|
||||
{
|
||||
}
|
||||
|
||||
public string SessionId
|
||||
{
|
||||
set => SetParameter("session_id", value);
|
||||
}
|
||||
|
||||
public string BuildingName
|
||||
{
|
||||
set => SetParameter("building_name", value);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using Unity.Services.Analytics;
|
||||
|
||||
namespace DanieleMarotta.RiversongCodeShowcase
|
||||
{
|
||||
public sealed class DemoCompletedAnalyticsEvent : Event
|
||||
{
|
||||
public DemoCompletedAnalyticsEvent() : base("demo_completed")
|
||||
{
|
||||
}
|
||||
|
||||
public string SessionId
|
||||
{
|
||||
set => SetParameter("session_id", value);
|
||||
}
|
||||
|
||||
public float PlaytimeSeconds
|
||||
{
|
||||
set => SetParameter("playtime_seconds", value);
|
||||
}
|
||||
|
||||
public int TotalWeeks
|
||||
{
|
||||
set => SetParameter("total_weeks", value);
|
||||
}
|
||||
|
||||
public int Population
|
||||
{
|
||||
set => SetParameter("population", value);
|
||||
}
|
||||
|
||||
public float Happiness
|
||||
{
|
||||
set => SetParameter("happiness", value);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using Unity.Services.Analytics;
|
||||
|
||||
namespace DanieleMarotta.RiversongCodeShowcase
|
||||
{
|
||||
public sealed class HouseUpgradedAnalyticsEvent : Event
|
||||
{
|
||||
public HouseUpgradedAnalyticsEvent() : base("house_upgraded")
|
||||
{
|
||||
}
|
||||
|
||||
public string SessionId
|
||||
{
|
||||
set => SetParameter("session_id", value);
|
||||
}
|
||||
|
||||
public string BuildingName
|
||||
{
|
||||
set => SetParameter("building_name", value);
|
||||
}
|
||||
|
||||
public int FromTier
|
||||
{
|
||||
set => SetParameter("from_tier", value);
|
||||
}
|
||||
|
||||
public int ToTier
|
||||
{
|
||||
set => SetParameter("to_tier", value);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using Unity.Services.Analytics;
|
||||
|
||||
namespace DanieleMarotta.RiversongCodeShowcase
|
||||
{
|
||||
public sealed class SessionStartedAnalyticsEvent : Event
|
||||
{
|
||||
public SessionStartedAnalyticsEvent() : base("session_started")
|
||||
{
|
||||
}
|
||||
|
||||
public string SessionId
|
||||
{
|
||||
set => SetParameter("session_id", value);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user