Files
zeling_v2/Assets/_Game/Scripts/Support/Analytics/IAnalyticsService.cs

22 lines
796 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System.Collections.Generic;
using UnityEngine;
namespace BaseGames.Support.Analytics
{
/// <summary>
/// 分析收集服务接口。通过 ServiceLocator 注册,供各系统上报事件使用。
/// 注不收集任何个人身份信息PII
/// </summary>
public interface IAnalyticsService
{
/// <summary>记录一个自定义分析事件。</summary>
void Track(string eventName, Dictionary<string, object> parameters = null);
void TrackBossKill(string bossId, float duration, int deathCount);
void TrackDeath(string cause, string sceneId, Vector2 position);
void TrackAbilityUnlock(string abilityId);
void TrackSessionStart(int slotIndex);
void TrackSessionEnd(float playtimeSeconds);
}
}