초기커밋

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,30 @@
using Google.Protobuf;
using Google.Protobuf.WellKnownTypes;
using ServerCore;
using ServerBase;
using ServerCommon;
using ServerCommon.BusinessLogDomain;
using MetaAssets;
namespace GameServer;
public class NotifyUgcNpcRankRefreshHandler
{
public async Task recvUgcNpcRankRefresh(ServerMessage.Types.GS2GS_NTF_UGC_NPC_RANK_REFRESH notify)
{
var ugc_npc_rank_entity = GameServerApp.getServerLogic().findGlobalEntity<UgcNpcRankEntity>();
NullReferenceCheckHelper.throwIfNull(ugc_npc_rank_entity, () => $"ugc_npc_rank_entity is null !!!");
var action = ugc_npc_rank_entity.getEntityAction<UgcNpcRankManageAction>();
NullReferenceCheckHelper.throwIfNull(ugc_npc_rank_entity, () => $"ugc_npc_rank_entity is null !!!");
NullReferenceCheckHelper.throwIfNull(action, () => $"action is null !!!");
// reload data
await action.reloadAllUgcNpcRanks();
// notify to client
await action.notifyClientUgcNpcRankRefresh(false);
}
}