Example #1
0
    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;
        }
    }
Example #2
0
 public TraceInfo(int mapId, EXPLORE_HISTORY_TYPE type, string playerName)
 {
     this.mapId      = mapId;
     historyType     = type;
     this.playerName = playerName;
 }