fix: BossRaid 토큰 처리 수정 및 merge conflict 해결

- RestApi.cs: Tokens를 Dictionary<string, string>?으로 수정
- BossRaidResult.cs: Tokens를 Dictionary<string, string>?으로 수정
- GameServer.cs: SendTo(peer) → SendTo(memberPeer) 버그 수정,
  각 파티원에게 개별 토큰 전송

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-17 12:49:14 +09:00
16 changed files with 942 additions and 125 deletions

View File

@@ -22,25 +22,29 @@ public class Session
init;
}
public string UserName
{
get;
set;
}
public NetPeer Peer
{
get;
set;
}
// ─── 패킷 레이트 리미팅 ───────────────────────────
// 패킷 레이트 리미팅
private int packetCount;
private long windowStartTicks;
/// <summary>초당 허용 패킷 수</summary>
// 초당 허용 패킷 수
public int MaxPacketsPerSecond { get; set; }
/// <summary>연속 초과 횟수</summary>
// 연속 초과 횟수
public int RateLimitViolations { get; private set; }
/// <summary>
/// 패킷 수신 시 호출. 초당 제한 초과 시 true 반환.
/// </summary>
// 패킷 수신 시 호출. 초당 제한 초과 시 true 반환.
public bool CheckRateLimit()
{
long now = Environment.TickCount64;
@@ -63,7 +67,7 @@ public class Session
return false;
}
/// <summary>위반 카운트 초기화</summary>
// 위반 카운트 초기화
public void ResetViolations()
{
RateLimitViolations = 0;