6 major server modules (PdkFriendServer/GlobalSever/ServerCore/GameModule/GameNetModule) + game logic (GameFix/GameDAL/ServerData) + network layer (NetWorkMessage) + data layer (ObjectModel) + utilities (MrWu/Core/Config/CloudAPI/dll) + adapters (zyxAdapter/base) .NET 8.0 C# solution, 16 projects, 958 source files
17 lines
566 B
C#
17 lines
566 B
C#
using GameMessage;
|
|
|
|
namespace GameFix.Poker
|
|
{
|
|
public static class CardStyleInfoExt
|
|
{
|
|
public static string PrintStyleText(this CardStyleInfo cardStyleInfo)
|
|
{
|
|
if (DataCardConst.CardStyleReadableText.TryGetValue(cardStyleInfo.CardStyle, out string cardStyleText))
|
|
{
|
|
return $"{cardStyleText}_{cardStyleInfo.CardValue}_{cardStyleInfo.CardCnt}";
|
|
}
|
|
|
|
return $"{cardStyleInfo.CardStyle}_{cardStyleInfo.CardValue}_{cardStyleInfo.CardCnt}";
|
|
}
|
|
}
|
|
} |