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
32 lines
993 B
C#
32 lines
993 B
C#
using System.Collections.Generic;
|
|
using GameMessage;
|
|
using System.Linq;
|
|
|
|
namespace GameFix.Poker
|
|
{
|
|
public static class CardStyleHelper
|
|
{
|
|
public static CardStyleInfo CreateCardStyleInfo(int cardStyle,List<Card> cards)
|
|
{
|
|
CardStyleInfo cardStyleInfo = new CardStyleInfo();
|
|
cardStyleInfo.CardStyle = cardStyle;
|
|
cardStyleInfo.CardValue = cards.First().Value;
|
|
cardStyleInfo.CardCnt = cards.Count;
|
|
return cardStyleInfo;
|
|
}
|
|
|
|
public static CardStyleInfoExtend CreateCardStyleInfoExtend(int cardStyle, List<Card> cards)
|
|
{
|
|
CardStyleInfoExtend cardStyleInfo = new CardStyleInfoExtend();
|
|
cardStyleInfo.CardStyle = cardStyle;
|
|
cardStyleInfo.CardValue = cards.First().Value;
|
|
cardStyleInfo.CardCnt = cards.Count;
|
|
cardStyleInfo.SetCardId(cards.First().Id);
|
|
return cardStyleInfo;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|