NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Framework/BI/BI.cs

66 lines
1.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System.Collections.Generic;
/// <summary>
/// BI事件 用于本地缓存一次性事件
/// </summary>
public class StorageEvent
{
public List<string> EventList { get; set; }
public StorageEvent()
{
EventList = new List<string>();
}
public StorageEvent(List<string> eventStringList)
{
EventList = eventStringList;
}
}
/// <summary>
/// BI 需要上报的关卡内信息
/// </summary>
public class BILevelInfo
{
public int level_id { get; set; }
// 0主线 / 1资源 / 2 剧情 / 3 战役 / 4 非法值
public int level_type { get; set; } = 4;
// 0无难度区分 / 1 简单 / 2 困难
public int difficulty { get; set; }
// 0开始 /1 成功 / 2 :失败 / 3 中途退出
public int level_event { get; set; }
// 1标识开启扫荡
public int auto { get; set; }
// 标识扫荡次数
public int param1 { get; set; }
public BILevelInfo()
{
}
public BILevelInfo(int levelID, int levelType, int difficulty, int levelEvent, int auto, int param1)
{
level_id = levelID;
level_type = levelType;
this.difficulty = difficulty;
level_event = levelEvent;
this.auto = auto;
this.param1 = param1;
}
public void Clone(BILevelInfo biLevelInfo)
{
level_id = biLevelInfo.level_id;
level_type = biLevelInfo.level_type;
difficulty = biLevelInfo.difficulty;
level_event = biLevelInfo.level_event;
auto = biLevelInfo.auto;
param1 = biLevelInfo.param1;
}
}