暂时屏蔽玩家技能卡带入

This commit is contained in:
meixiongfeng 2023-12-18 10:40:43 +08:00
parent 578707dfc6
commit 24cd2b3502

View File

@ -173,12 +173,18 @@ func (this *Entertainment) useroffline(ctx context.Context, req *pb.RPCGeneralRe
func (this *Entertainment) CreateRoom(sessions []comm.IUserSession, rulesStr string) (roomid string, err error) {
var (
rules *pb.DBXxlRules = &pb.DBXxlRules{}
red *pb.DBUser
blue *pb.DBUser
p1 *pb.PlayerData
p2 *pb.PlayerData
room *Room
rules *pb.DBXxlRules = &pb.DBXxlRules{
RoomType: 0,
Card1: "",
Card2: "",
Skill1: []int32{},
Skill2: []int32{},
}
red *pb.DBUser
blue *pb.DBUser
p1 *pb.PlayerData
p2 *pb.PlayerData
room *Room
)
if err = json.Unmarshal([]byte(rulesStr), rules); err != nil {