초기커밋
This commit is contained in:
55
GameServer/0. Base/BaseGetSet.cs
Normal file
55
GameServer/0. Base/BaseGetSet.cs
Normal file
@@ -0,0 +1,55 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user