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

66 lines
1.6 KiB
C#
Raw Normal View History

2024-05-14 15:29:31 +08:00
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
{
2025-04-22 15:39:26 +08:00
public int level_id { get; set; }
2024-05-14 15:29:31 +08:00
2025-04-22 15:39:26 +08:00
// 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; }
2024-05-14 15:29:31 +08:00
public BILevelInfo()
{
}
2025-04-22 15:39:26 +08:00
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)
2024-05-14 15:29:31 +08:00
{
2025-04-22 15:39:26 +08:00
level_id = biLevelInfo.level_id;
level_type = biLevelInfo.level_type;
difficulty = biLevelInfo.difficulty;
level_event = biLevelInfo.level_event;
auto = biLevelInfo.auto;
param1 = biLevelInfo.param1;
2024-05-14 15:29:31 +08:00
}
}