55 lines
1.8 KiB
C#
55 lines
1.8 KiB
C#
using Google.Protobuf;
|
|
using Google.Protobuf.WellKnownTypes;
|
|
|
|
|
|
using ServerCore;
|
|
using ServerBase;
|
|
using ServerCommon;
|
|
using ServerCommon.BusinessLogDomain;
|
|
using MetaAssets;
|
|
|
|
|
|
|
|
namespace GameServer;
|
|
|
|
|
|
public partial class GameServerLogic : ServerLogicBase, IWithPacketNamespaceVerifier, IWithServerMetrics
|
|
{
|
|
public Map getMap() => m_map;
|
|
public PlayerManager getPlayerManager() => m_player_manager;
|
|
public SystemMetaMailManager getSystemMailManager() => m_system_mail_manager;
|
|
public UgqApiManager GetUqgApiManager() => m_ugq_api_manager;
|
|
public ChannelManager getChannelManager() => m_channel_manager;
|
|
public NoticeChatManager getNoticeChatManager() => m_notice_chat_manager;
|
|
public SeasonPassManager getSeasonPassManager() => m_season_pass_manager;
|
|
public LandManager getLandManager() => m_land_manager;
|
|
public BuildingManager getBuildingManager() => m_building_manager;
|
|
|
|
public ReservationManager getReservationManager()
|
|
{
|
|
NullReferenceCheckHelper.throwIfNull(m_reservation_manager, () => $"ReservationManager is null");
|
|
return m_reservation_manager;
|
|
}
|
|
public ReturnManager getReturnManager()
|
|
{
|
|
NullReferenceCheckHelper.throwIfNull(m_return_manager, () => $"ReturnManager is null");
|
|
return m_return_manager;
|
|
}
|
|
|
|
|
|
public ServerMetricsCacheRequest getServerMetricsCacheRequest()
|
|
{
|
|
return ServerBase.ServerMetricsHelper.getServerMetricsCacheRequest(this);
|
|
}
|
|
}
|
|
|
|
|
|
public partial class GameLoginListener : ProudNetListener
|
|
{
|
|
public GameServerLogic getGameServerLogic()
|
|
{
|
|
var game_server_logic = getServerLogicBase() as GameServerLogic;
|
|
NullReferenceCheckHelper.throwIfNull(game_server_logic, () => $"game_server_logic is null !!!");
|
|
return game_server_logic;
|
|
}
|
|
} |