update: 更新接口参数名
parent
20938c5678
commit
8e005c9237
|
|
@ -65,12 +65,12 @@ namespace Guru
|
|||
/// <param name="levelId"></param>
|
||||
/// <param name="levelName"></param>
|
||||
/// <param name="levelType"></param>
|
||||
/// <param name="levelID"></param>
|
||||
/// <param name="puzzleId"></param>
|
||||
/// <param name="startType"></param>
|
||||
/// <param name="isReplay"></param>
|
||||
/// <param name="extra"></param>
|
||||
public static void LogLevelStart(int levelId, string startType = EventLevelStartModePlay,
|
||||
string levelType = LevelTypeMain, string levelName = "", string levelID = "",
|
||||
string levelType = LevelTypeMain, string levelName = "", string puzzleId = "",
|
||||
bool isReplay = false, Dictionary<string, object> extra = null)
|
||||
{
|
||||
if (!IsInitialSuccess)
|
||||
|
|
@ -79,7 +79,7 @@ namespace Guru
|
|||
return;
|
||||
}
|
||||
|
||||
Analytics.LogLevelStart(levelId, levelName, levelType, levelID, startType, isReplay, extra);
|
||||
Analytics.LogLevelStart(levelId, levelName, levelType, puzzleId, startType, isReplay, extra);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -88,12 +88,12 @@ namespace Guru
|
|||
/// <param name="levelId"></param>
|
||||
/// <param name="levelType"></param>
|
||||
/// <param name="levelName"></param>
|
||||
/// <param name="levelID"></param>
|
||||
/// <param name="puzzleId"></param>
|
||||
/// <param name="extra"></param>
|
||||
public static void LogLevelContinue(int levelId, string levelType = LevelTypeMain,
|
||||
string levelName = "", string levelID = "", Dictionary<string, object> extra = null)
|
||||
string levelName = "", string puzzleId = "", Dictionary<string, object> extra = null)
|
||||
{
|
||||
LogLevelStart(levelId, EventLevelStartModeContinue, levelType, levelName, levelID, true, extra:extra);
|
||||
LogLevelStart(levelId, EventLevelStartModeContinue, levelType, levelName, puzzleId, true, extra:extra);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -102,18 +102,18 @@ namespace Guru
|
|||
/// <param name="levelId"></param>
|
||||
/// <param name="levelType"></param>
|
||||
/// <param name="levelName"></param>
|
||||
/// <param name="levelID"></param>
|
||||
/// <param name="puzzleId"></param>
|
||||
public static void LogLevelReplay(int levelId, string levelType = LevelTypeMain,
|
||||
string levelName = "", string levelID = "", Dictionary<string, object> extra = null)
|
||||
string levelName = "", string puzzleId = "", Dictionary<string, object> extra = null)
|
||||
{
|
||||
LogLevelStart(levelId, EventLevelStartModeReplay,levelType, levelName, levelID, true, extra:extra);
|
||||
LogLevelStart(levelId, EventLevelStartModeReplay,levelType, levelName, puzzleId, true, extra:extra);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 游戏胜利打点
|
||||
/// </summary>
|
||||
public static void LogLevelEnd(int levelId, string result = EventLevelEndSuccess,
|
||||
string levelType = LevelTypeMain, string levelName = "", string levelID = "",
|
||||
string levelType = LevelTypeMain, string levelName = "", string puzzleId = "",
|
||||
int? duration = null, int? step = null, int? score = null, Dictionary<string, object> extra = null )
|
||||
{
|
||||
if (!IsInitialSuccess)
|
||||
|
|
@ -137,7 +137,7 @@ namespace Guru
|
|||
Analytics.BPlay = Model.TotalPlayedCount; // 记录 BPlay
|
||||
}
|
||||
|
||||
Analytics.LogLevelEnd(levelId, result, levelName, levelType, levelID, duration, step, score, extra);
|
||||
Analytics.LogLevelEnd(levelId, result, levelName, levelType, puzzleId, duration, step, score, extra);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -161,30 +161,30 @@ namespace Guru
|
|||
/// 需要为游戏记录详细的失败原因
|
||||
/// </summary>
|
||||
public static void LogLevelFail(int levelId,
|
||||
string levelType = LevelTypeMain, string levelName = "", string levelID = "",
|
||||
string levelType = LevelTypeMain, string levelName = "", string puzzleId = "",
|
||||
int? duration = null, int? step = null, int? score = null , Dictionary<string, object> extra = null)
|
||||
{
|
||||
LogLevelEnd(levelId, EventLevelEndFail, levelType, levelName, levelID, duration, step, score, extra);
|
||||
LogLevelEnd(levelId, EventLevelEndFail, levelType, levelName, puzzleId, duration, step, score, extra);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 因退出关卡导致游戏失败
|
||||
/// </summary>
|
||||
public static void LogLevelFailExit(int levelId,
|
||||
string levelType = LevelTypeMain, string levelName = "", string levelID = "",
|
||||
string levelType = LevelTypeMain, string levelName = "", string puzzleId = "",
|
||||
int? duration = null, int? step = null, int? score = null, Dictionary<string, object> extra = null)
|
||||
{
|
||||
LogLevelEnd(levelId, EventLevelEndExit, levelType, levelName, levelID, duration, step, score, extra);
|
||||
LogLevelEnd(levelId, EventLevelEndExit, levelType, levelName, puzzleId, duration, step, score, extra);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 因关卡超时导致游戏失败
|
||||
/// </summary>
|
||||
public static void LogLevelFailTimeout(int levelId,
|
||||
string levelType = LevelTypeMain, string levelName = "", string levelID = "",
|
||||
string levelType = LevelTypeMain, string levelName = "", string puzzleId = "",
|
||||
int? duration = null, int? step = null, int? score = null, Dictionary<string, object> extra = null)
|
||||
{
|
||||
LogLevelEnd(levelId, EventLevelEndTimeout, levelType, levelName, levelID, duration, step, score, extra);
|
||||
LogLevelEnd(levelId, EventLevelEndTimeout, levelType, levelName, puzzleId, duration, step, score, extra);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue