초기커밋

This commit is contained in:
2025-05-01 07:20:41 +09:00
commit 98bb2e3c5c
2747 changed files with 646947 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
using ServerCommon;
namespace GameServer;
public class UgcNpcCountManager
{
private static readonly Lazy<UgcNpcCountManager> m_instance = new(() => new UgcNpcCountManager());
public static UgcNpcCountManager Instance => m_instance.Value;
public int calculateNpcCount()
{
var count = 0;
// 1. 기본 Map 의 UgcNpc Count
count += GameServerApp.getServerLogic().getMap().getCurrCountAsAddConnectedUser();
// 2. Instance Room 의 UgcNpc Count
count += InstanceRoomManager.Instance.getInstanceRooms().Sum(room => room.Value.getMap().getCurrCountAsAddConnectedUser());
return count;
}
}