public void UpdateBossTraceMapIdHistory(int mapId, int lastCount, string playerName, bool reserve) { EXPLORE_HISTORY_TYPE type = EXPLORE_HISTORY_TYPE.NONE; switch (lastCount) { case 0: type = EXPLORE_HISTORY_TYPE.LAST; break; case 1: type = EXPLORE_HISTORY_TYPE.SECOND_LAST; break; } TraceInfo traceInfo = new TraceInfo(mapId, type, playerName); bossTraceMapIdHistory.Add(traceInfo); if (reserve) { reservedTraceInfo = traceInfo; } }
public TraceInfo(int mapId, EXPLORE_HISTORY_TYPE type, string playerName) { this.mapId = mapId; historyType = type; this.playerName = playerName; }