Compare commits
6 Commits
9906c0fb80
...
aaf417c9fe
| Author | SHA1 | Date |
|---|---|---|
|
|
aaf417c9fe | |
|
|
f1b86a3913 | |
|
|
62f31c2460 | |
|
|
68e84e6233 | |
|
|
f9605e9f26 | |
|
|
f47cddc7c1 |
|
|
@ -0,0 +1,22 @@
|
|||
package fortunetiger
|
||||
|
||||
// 房间类型
|
||||
const (
|
||||
RoomMode_Classic int = iota //经典
|
||||
RoomMode_Max
|
||||
)
|
||||
|
||||
// 场景状态
|
||||
const (
|
||||
FortuneTigerStateStart int = iota //默认状态
|
||||
FortuneTigerStateMax
|
||||
)
|
||||
|
||||
// 玩家操作
|
||||
const (
|
||||
FortuneTigerPlayerOpStart int = iota
|
||||
FortuneTigerPlayerOpSwitch
|
||||
)
|
||||
const NowByte int64 = 10000
|
||||
|
||||
const GameDataKey = "FortuneData"
|
||||
|
|
@ -42,7 +42,6 @@ func (this *CSFortuneDragonOpHandler) Process(s *netlib.Session, packetid int, d
|
|||
return nil
|
||||
}
|
||||
func init() {
|
||||
//fortunedragon
|
||||
common.RegisterHandler(int(fortunedragon.FortuneDragonPID_PACKET_FORTUNEDRAGON_CSFORTUNEDRAGONOP), &CSFortuneDragonOpHandler{})
|
||||
netlib.RegisterFactory(int(fortunedragon.FortuneDragonPID_PACKET_FORTUNEDRAGON_CSFORTUNEDRAGONOP), &CSFortuneDragonOpPacketFactory{})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ func (this *CSFortuneOxOpHandler) Process(s *netlib.Session, packetid int, data
|
|||
return nil
|
||||
}
|
||||
func init() {
|
||||
//fortunerabbit
|
||||
common.RegisterHandler(int(fortuneox.FortuneOxPID_PACKET_FORTUNEOX_CSFORTUNEOXOP), &CSFortuneOxOpHandler{})
|
||||
netlib.RegisterFactory(int(fortuneox.FortuneOxPID_PACKET_FORTUNEOX_CSFORTUNEOXOP), &CSFortuneOxOpPacketFactory{})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -408,7 +408,10 @@ func (this *SceneStateStartFortuneOx) OnPlayerOp(s *base.Scene, p *base.Player,
|
|||
data = assemble.DataToCli(Response).(assemble.GameEnd)
|
||||
var respinStatus int
|
||||
if data.Results[0].ArrSpins[0].Special != nil {
|
||||
respinStatus = data.Results[0].ArrSpins[0].Special.(SpinLock).ReSpinStatus
|
||||
sp, _ := json.Marshal(data.Results[0].ArrSpins[0].Special)
|
||||
var spinLock SpinLock
|
||||
json.Unmarshal(sp, &spinLock)
|
||||
respinStatus = spinLock.ReSpinStatus
|
||||
}
|
||||
if respinStatus == 0 || respinStatus == 1 {
|
||||
//第一次触发或者正常模式
|
||||
|
|
|
|||
|
|
@ -42,7 +42,6 @@ func (this *CSFortuneRabbitOpHandler) Process(s *netlib.Session, packetid int, d
|
|||
return nil
|
||||
}
|
||||
func init() {
|
||||
//fortunerabbit
|
||||
common.RegisterHandler(int(fortunerabbit.FortuneRabbitPID_PACKET_FORTUNERABBIT_CSFORTUNERABBITOP), &CSFortuneRabbitOpHandler{})
|
||||
netlib.RegisterFactory(int(fortunerabbit.FortuneRabbitPID_PACKET_FORTUNERABBIT_CSFORTUNERABBITOP), &CSFortuneRabbitOpPacketFactory{})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,46 @@
|
|||
package fortunetiger
|
||||
|
||||
import (
|
||||
"mongo.games.com/game/common"
|
||||
"mongo.games.com/game/gamesrv/base"
|
||||
"mongo.games.com/game/protocol/fortunetiger"
|
||||
"mongo.games.com/goserver/core/logger"
|
||||
"mongo.games.com/goserver/core/netlib"
|
||||
)
|
||||
|
||||
type CSFortuneTigerOpPacketFactory struct {
|
||||
}
|
||||
type CSFortuneTigerOpHandler struct {
|
||||
}
|
||||
|
||||
func (this *CSFortuneTigerOpPacketFactory) CreatePacket() interface{} {
|
||||
pack := &fortunetiger.CSFortuneTigerOp{}
|
||||
return pack
|
||||
}
|
||||
|
||||
func (this *CSFortuneTigerOpHandler) Process(s *netlib.Session, packetid int, data interface{}, sid int64) error {
|
||||
if op, ok := data.(*fortunetiger.CSFortuneTigerOp); ok {
|
||||
p := base.PlayerMgrSington.GetPlayer(sid)
|
||||
if p == nil {
|
||||
logger.Logger.Warn("CSFortuneTigerOpHandler p == nil")
|
||||
return nil
|
||||
}
|
||||
scene := p.GetScene()
|
||||
if scene == nil {
|
||||
logger.Logger.Warn("CSFortuneTigerOpHandler p.scene == nil")
|
||||
return nil
|
||||
}
|
||||
if !scene.HasPlayer(p) {
|
||||
return nil
|
||||
}
|
||||
if scene.GetScenePolicy() != nil {
|
||||
scene.GetScenePolicy().OnPlayerOp(scene, p, int(op.GetOpCode()), op.GetParams())
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func init() {
|
||||
common.RegisterHandler(int(fortunetiger.FortuneTigerPID_PACKET_FORTUNETIGER_CSFORTUNETIGEROP), &CSFortuneTigerOpHandler{})
|
||||
netlib.RegisterFactory(int(fortunetiger.FortuneTigerPID_PACKET_FORTUNETIGER_CSFORTUNETIGEROP), &CSFortuneTigerOpPacketFactory{})
|
||||
}
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
package fortunetiger
|
||||
|
||||
import (
|
||||
"mongo.games.com/game/gamerule/fortunetiger"
|
||||
"mongo.games.com/game/gamesrv/base"
|
||||
"mongo.games.com/game/gamesrv/slotspkg/slots"
|
||||
)
|
||||
|
||||
type FortuneTigerPlayerData struct {
|
||||
*base.Player
|
||||
leaveTime int32 //离开时间
|
||||
SlotsSession *base.SlotsSession
|
||||
|
||||
BetSizeIndex int64 `json:"bsi"` //选中的单注下标
|
||||
BetLevelIndex int64 `json:"bli"` //选中的等级下标
|
||||
BetLineIndex int64 `json:"bii"` //选中的线数下标
|
||||
BetMode int64 `json:"bm,optional"` //0.常规 1.必中
|
||||
|
||||
taxCoin int64
|
||||
winCoin int64
|
||||
currentLogId string
|
||||
totalBet int64
|
||||
|
||||
isRespin bool //只用于判断是否可以离开
|
||||
}
|
||||
|
||||
type SpinLock struct {
|
||||
ReSpinStatus int `json:"rs,omitempty"` //0.默认 1.第一次触发 2.进行中 3.结束
|
||||
ReSpinSymbol int64 `json:"rsy,omitempty"` //图标(respin)
|
||||
Lock [][]int `json:"l,omitempty"` //原来锁定的位置
|
||||
AddLock [][]int `json:"al,omitempty"` //新增锁定的位置
|
||||
X10 int64 `json:"x10,omitempty"` //100.不同图标 88.wild 其他类型.按当前单一中奖图标类型
|
||||
WinLines map[int][][]int `json:"wls,omitempty"`
|
||||
}
|
||||
|
||||
func (p *FortuneTigerPlayerData) init() {
|
||||
p.SlotsSession = base.NewSession(uint64(p.SnId), p.Coin*fortunetiger.NowByte)
|
||||
}
|
||||
func (p *FortuneTigerPlayerData) Clear() {
|
||||
p.taxCoin = 0
|
||||
p.winCoin = 0
|
||||
p.currentLogId = ""
|
||||
}
|
||||
|
||||
// 需要带到world上进行数据处理
|
||||
func (p *FortuneTigerPlayerData) PushPlayer() map[string]string {
|
||||
cache := slots.SlotsMgrSington.PushPlayer(p.SlotsSession)
|
||||
return cache
|
||||
}
|
||||
|
||||
// 进房的时候需要带进来
|
||||
func (p *FortuneTigerPlayerData) PullPlayer(data map[string]string) {
|
||||
slots.SlotsMgrSington.PullPlayer(p.SlotsSession, data)
|
||||
}
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
package fortunetiger
|
||||
|
||||
import (
|
||||
"mongo.games.com/game/gamesrv/base"
|
||||
"mongo.games.com/game/gamesrv/slotspkg/assemble"
|
||||
)
|
||||
|
||||
type FortuneTigerSceneData struct {
|
||||
*base.Scene //场景
|
||||
players map[int32]*FortuneTigerPlayerData //玩家信息
|
||||
BetConfig *assemble.BetConfig
|
||||
}
|
||||
|
||||
func NewFortuneTigerSceneData(s *base.Scene) *FortuneTigerSceneData {
|
||||
sceneEx := &FortuneTigerSceneData{
|
||||
Scene: s,
|
||||
players: make(map[int32]*FortuneTigerPlayerData),
|
||||
}
|
||||
sceneEx.Init()
|
||||
return sceneEx
|
||||
}
|
||||
func (s *FortuneTigerSceneData) Init() {
|
||||
|
||||
}
|
||||
|
||||
func (s *FortuneTigerSceneData) Clear() {
|
||||
//应该是水池变一次就判断修改一次
|
||||
//s.slotRateWeight = s.slotRateWeightTotal[0]
|
||||
}
|
||||
func (s *FortuneTigerSceneData) SceneDestroy(force bool) {
|
||||
//销毁房间
|
||||
s.Scene.Destroy(force)
|
||||
}
|
||||
|
||||
func (s *FortuneTigerSceneData) delPlayer(SnId int32) {
|
||||
if _, exist := s.players[SnId]; exist {
|
||||
delete(s.players, SnId)
|
||||
}
|
||||
}
|
||||
func (s *FortuneTigerSceneData) OnPlayerLeave(p *base.Player, reason int) {
|
||||
if /*playerEx*/ _, ok := p.ExtraData.(*FortuneTigerPlayerData); ok {
|
||||
|
||||
}
|
||||
s.delPlayer(p.SnId)
|
||||
}
|
||||
|
|
@ -0,0 +1,574 @@
|
|||
package fortunetiger
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"mongo.games.com/game/common"
|
||||
"mongo.games.com/game/gamerule/fortunetiger"
|
||||
"mongo.games.com/game/gamesrv/base"
|
||||
"mongo.games.com/game/gamesrv/slotspkg/assemble"
|
||||
"mongo.games.com/game/gamesrv/slotspkg/slots"
|
||||
"mongo.games.com/game/model"
|
||||
"mongo.games.com/game/proto"
|
||||
protocol "mongo.games.com/game/protocol/fortunetiger"
|
||||
"mongo.games.com/game/protocol/server"
|
||||
"mongo.games.com/goserver/core"
|
||||
"mongo.games.com/goserver/core/logger"
|
||||
"time"
|
||||
)
|
||||
|
||||
// ////////////////////////////////////////////////////////////
|
||||
var ScenePolicyFortuneTigerSington = &ScenePolicyFortuneTiger{}
|
||||
|
||||
type ScenePolicyFortuneTiger struct {
|
||||
base.BaseScenePolicy
|
||||
states [fortunetiger.FortuneTigerStateMax]base.SceneState
|
||||
}
|
||||
|
||||
// 创建场景扩展数据
|
||||
func (this *ScenePolicyFortuneTiger) CreateSceneExData(s *base.Scene) interface{} {
|
||||
sceneEx := NewFortuneTigerSceneData(s)
|
||||
if sceneEx != nil {
|
||||
if sceneEx.GetInit() {
|
||||
s.SetExtraData(sceneEx)
|
||||
}
|
||||
}
|
||||
return sceneEx
|
||||
}
|
||||
|
||||
// 创建玩家扩展数据
|
||||
func (this *ScenePolicyFortuneTiger) CreatePlayerExData(s *base.Scene, p *base.Player) interface{} {
|
||||
playerEx := &FortuneTigerPlayerData{Player: p}
|
||||
p.SetExtraData(playerEx)
|
||||
return playerEx
|
||||
}
|
||||
|
||||
// 场景开启事件
|
||||
func (this *ScenePolicyFortuneTiger) OnStart(s *base.Scene) {
|
||||
logger.Logger.Trace("(this *ScenePolicyFortuneTiger) OnStart, sceneId=", s.GetSceneId())
|
||||
sceneEx := NewFortuneTigerSceneData(s)
|
||||
if sceneEx != nil {
|
||||
if sceneEx.GetInit() {
|
||||
s.SetExtraData(sceneEx)
|
||||
s.ChangeSceneState(fortunetiger.FortuneTigerStateStart)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 场景关闭事件
|
||||
func (this *ScenePolicyFortuneTiger) OnStop(s *base.Scene) {
|
||||
logger.Logger.Trace("(this *ScenePolicyFortuneTiger) OnStop , sceneId=", s.GetSceneId())
|
||||
}
|
||||
|
||||
// 场景心跳事件
|
||||
func (this *ScenePolicyFortuneTiger) OnTick(s *base.Scene) {
|
||||
if s == nil {
|
||||
return
|
||||
}
|
||||
if s.GetSceneState() != nil {
|
||||
s.GetSceneState().OnTick(s)
|
||||
}
|
||||
}
|
||||
|
||||
// 玩家进入事件
|
||||
func (this *ScenePolicyFortuneTiger) OnPlayerEnter(s *base.Scene, p *base.Player) {
|
||||
if s == nil || p == nil {
|
||||
return
|
||||
}
|
||||
logger.Logger.Trace("(this *ScenePolicyFortuneTiger) OnPlayerEnter, sceneId=", s.GetSceneId(), " player=", p.Name)
|
||||
if sceneEx, ok := s.GetExtraData().(*FortuneTigerSceneData); ok {
|
||||
playerEx := &FortuneTigerPlayerData{Player: p}
|
||||
|
||||
playerEx.init()
|
||||
|
||||
d := p.GameData[fortunetiger.GameDataKey]
|
||||
if d != nil {
|
||||
m := make(map[string]string)
|
||||
json.Unmarshal(d.Data.([]byte), &m)
|
||||
playerEx.PullPlayer(m)
|
||||
} else {
|
||||
m := make(map[string]string)
|
||||
//json.Unmarshal(d.Data.([]byte), &m)
|
||||
playerEx.PullPlayer(m)
|
||||
}
|
||||
|
||||
playerEx.SlotsSession.SetCoin(playerEx.Coin * fortunetiger.NowByte)
|
||||
|
||||
playerEx.Clear()
|
||||
|
||||
sceneEx.players[p.SnId] = playerEx
|
||||
|
||||
p.SetExtraData(playerEx)
|
||||
FortuneTigerSendRoomInfo(s, sceneEx, playerEx)
|
||||
|
||||
s.FirePlayerEvent(p, base.PlayerEventEnter, nil)
|
||||
}
|
||||
}
|
||||
|
||||
// 玩家离开事件
|
||||
func (this *ScenePolicyFortuneTiger) OnPlayerLeave(s *base.Scene, p *base.Player, reason int) {
|
||||
if s == nil || p == nil {
|
||||
return
|
||||
}
|
||||
logger.Logger.Trace("(this *ScenePolicyFortuneTiger) OnPlayerLeave, sceneId=", s.GetSceneId(), " player=", p.SnId)
|
||||
if playerEx, ok := p.ExtraData.(*FortuneTigerPlayerData); ok {
|
||||
m := playerEx.PushPlayer()
|
||||
if m != nil && len(m) > 0 {
|
||||
b, err := json.Marshal(m)
|
||||
if err != nil {
|
||||
logger.Logger.Error("OnPlayerLeave, json.Marshal error:", err)
|
||||
} else {
|
||||
p.GameData[fortunetiger.GameDataKey] = &model.PlayerGameData{
|
||||
Platform: p.Platform,
|
||||
SnId: p.SnId,
|
||||
Id: fortunetiger.GameDataKey,
|
||||
Data: b,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if sceneEx, ok := s.ExtraData.(*FortuneTigerSceneData); ok {
|
||||
s.FirePlayerEvent(p, base.PlayerEventLeave, nil)
|
||||
sceneEx.OnPlayerLeave(p, reason)
|
||||
}
|
||||
}
|
||||
|
||||
// 玩家掉线
|
||||
func (this *ScenePolicyFortuneTiger) OnPlayerDropLine(s *base.Scene, p *base.Player) {
|
||||
if s == nil || p == nil {
|
||||
return
|
||||
}
|
||||
logger.Logger.Trace("(this *ScenePolicyFortuneTiger) OnPlayerDropLine, sceneId=", s.GetSceneId(), " player=", p.SnId)
|
||||
s.FirePlayerEvent(p, base.PlayerEventDropLine, nil)
|
||||
}
|
||||
|
||||
// 玩家重连
|
||||
func (this *ScenePolicyFortuneTiger) OnPlayerRehold(s *base.Scene, p *base.Player) {
|
||||
if s == nil || p == nil {
|
||||
return
|
||||
}
|
||||
logger.Logger.Trace("(this *ScenePolicyFortuneTiger) OnPlayerRehold, sceneId=", s.GetSceneId(), " player=", p.SnId)
|
||||
if sceneEx, ok := s.GetExtraData().(*FortuneTigerSceneData); ok {
|
||||
if playerEx, ok := p.GetExtraData().(*FortuneTigerPlayerData); ok {
|
||||
FortuneTigerSendRoomInfo(s, sceneEx, playerEx)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 返回房间
|
||||
func (this *ScenePolicyFortuneTiger) OnPlayerReturn(s *base.Scene, p *base.Player) {
|
||||
if s == nil || p == nil {
|
||||
return
|
||||
}
|
||||
logger.Logger.Trace("(this *ScenePolicyFortuneTiger) OnPlayerReturn, GetSceneId()=", s.GetSceneId(), " player=", p.Name)
|
||||
if sceneEx, ok := s.GetExtraData().(*FortuneTigerSceneData); ok {
|
||||
if playerEx, ok := p.GetExtraData().(*FortuneTigerPlayerData); ok {
|
||||
//if p.IsMarkFlag(base.PlayerState_Auto) {
|
||||
// p.UnmarkFlag(base.PlayerState_Auto)
|
||||
// p.SyncFlag()
|
||||
//}
|
||||
//发送房间信息给自己
|
||||
FortuneTigerSendRoomInfo(s, sceneEx, playerEx)
|
||||
s.FirePlayerEvent(p, base.PlayerEventReturn, nil)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func FortuneTigerSendRoomInfo(s *base.Scene, sceneEx *FortuneTigerSceneData, playerEx *FortuneTigerPlayerData) {
|
||||
pack := FortuneTigerCreateRoomInfoPacket(s, sceneEx, playerEx)
|
||||
logger.Logger.Trace("RoomInfo: ", pack)
|
||||
playerEx.SendToClient(int(protocol.FortuneTigerPID_PACKET_FORTUNETIGER_SCFORTUNETIGERROOMINFO), pack)
|
||||
}
|
||||
func FortuneTigerCreateRoomInfoPacket(s *base.Scene, sceneEx *FortuneTigerSceneData, playerEx *FortuneTigerPlayerData) interface{} {
|
||||
//房间信息
|
||||
pack := &protocol.SCFortuneTigerRoomInfo{
|
||||
RoomId: s.SceneId,
|
||||
GameId: s.GameId,
|
||||
RoomMode: s.SceneMode,
|
||||
SceneType: s.GetSceneType(),
|
||||
Params: common.CopySliceInt64ToInt32(s.Params),
|
||||
NumOfGames: proto.Int(sceneEx.NumOfGames),
|
||||
State: proto.Int(s.SceneState.GetState()),
|
||||
ParamsEx: s.GetDBGameFree().OtherIntParams,
|
||||
GameFreeId: proto.Int32(s.GetDBGameFree().Id),
|
||||
//BetLimit: s.GetDBGameFree().BetLimit,
|
||||
}
|
||||
|
||||
//自己的信息
|
||||
if playerEx != nil {
|
||||
pd := &protocol.FortuneTigerPlayerData{
|
||||
SnId: proto.Int32(playerEx.SnId),
|
||||
Name: proto.String(playerEx.Name),
|
||||
Head: proto.Int32(playerEx.Head),
|
||||
Sex: proto.Int32(playerEx.Sex),
|
||||
Coin: proto.Int64(playerEx.Coin),
|
||||
Pos: proto.Int(playerEx.Pos),
|
||||
Flag: proto.Int(playerEx.GetFlag()),
|
||||
City: proto.String(playerEx.City),
|
||||
HeadOutLine: proto.Int32(playerEx.HeadOutLine),
|
||||
VIP: proto.Int32(playerEx.VIP),
|
||||
}
|
||||
pack.Player = pd
|
||||
}
|
||||
|
||||
//get data
|
||||
Response, err := slots.SlotsMgrSington.Enter(playerEx.SlotsSession, int64(s.GameId))
|
||||
if err == nil {
|
||||
data := assemble.DataToCli(Response).(assemble.TableInfo)
|
||||
pi, _ := json.Marshal(data)
|
||||
pack.PlayerInfo = string(pi)
|
||||
if sceneEx.BetConfig == nil {
|
||||
sceneEx.BetConfig = &data.BetConfig
|
||||
}
|
||||
} else {
|
||||
logger.Logger.Error("slots enter err:", err)
|
||||
}
|
||||
proto.SetDefaults(pack)
|
||||
return pack
|
||||
}
|
||||
func (this *ScenePolicyFortuneTiger) OnPlayerOp(s *base.Scene, p *base.Player, opcode int, params []int64) bool {
|
||||
if s == nil || p == nil {
|
||||
return false
|
||||
}
|
||||
logger.Logger.Trace("(this *ScenePolicyFortuneTiger) OnPlayerOp, sceneId=", s.GetSceneId(), " player=", p.SnId, " opcode=", opcode, " params=", params)
|
||||
if s.GetSceneState() != nil {
|
||||
if s.GetSceneState().OnPlayerOp(s, p, opcode, params) {
|
||||
p.SetLastOPTimer(time.Now())
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func (this *ScenePolicyFortuneTiger) OnPlayerEvent(s *base.Scene, p *base.Player, evtcode int, params []int64) {
|
||||
if s == nil || p == nil {
|
||||
return
|
||||
}
|
||||
logger.Logger.Trace("(this *ScenePolicyFortuneTiger) OnPlayerEvent, sceneId=", s.GetSceneId(), " player=", p.SnId, " eventcode=", evtcode, " params=", params)
|
||||
if s.GetSceneState() != nil {
|
||||
s.GetSceneState().OnPlayerEvent(s, p, evtcode, params)
|
||||
}
|
||||
}
|
||||
|
||||
// 当前状态能否换桌
|
||||
func (this *ScenePolicyFortuneTiger) CanChangeCoinScene(s *base.Scene, p *base.Player) bool {
|
||||
if s == nil || p == nil {
|
||||
return false
|
||||
}
|
||||
if s.GetSceneState() != nil {
|
||||
return s.GetSceneState().CanChangeCoinScene(s, p)
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// 状态基类
|
||||
type SceneBaseStateFortuneTiger struct {
|
||||
}
|
||||
|
||||
func (this *SceneBaseStateFortuneTiger) GetTimeout(s *base.Scene) int {
|
||||
if sceneEx, ok := s.GetExtraData().(*FortuneTigerSceneData); ok {
|
||||
return int(time.Now().Sub(sceneEx.GetStateStartTime()) / time.Second)
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (this *SceneBaseStateFortuneTiger) CanChangeTo(s base.SceneState) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// 当前状态能否换桌
|
||||
func (this *SceneBaseStateFortuneTiger) CanChangeCoinScene(s *base.Scene, p *base.Player) bool {
|
||||
return true
|
||||
}
|
||||
func (this *SceneBaseStateFortuneTiger) OnEnter(s *base.Scene) {
|
||||
if sceneEx, ok := s.GetExtraData().(*FortuneTigerSceneData); ok {
|
||||
sceneEx.SetStateStartTime(time.Now())
|
||||
}
|
||||
}
|
||||
|
||||
func (this *SceneBaseStateFortuneTiger) OnLeave(s *base.Scene) {}
|
||||
func (this *SceneBaseStateFortuneTiger) OnTick(s *base.Scene) {
|
||||
if time.Now().Sub(s.GameStartTime) > time.Second*3 {
|
||||
if sceneEx, ok := s.ExtraData.(*FortuneTigerSceneData); ok {
|
||||
for _, p := range sceneEx.players {
|
||||
if p.IsOnLine() {
|
||||
p.leaveTime = 0
|
||||
continue
|
||||
}
|
||||
p.leaveTime++
|
||||
if p.leaveTime < 60*2 {
|
||||
continue
|
||||
}
|
||||
//踢出玩家
|
||||
sceneEx.PlayerLeave(p.Player, common.PlayerLeaveReason_LongTimeNoOp, true)
|
||||
}
|
||||
}
|
||||
s.GameStartTime = time.Now()
|
||||
}
|
||||
}
|
||||
func (this *SceneBaseStateFortuneTiger) OnPlayerOp(s *base.Scene, p *base.Player, opcode int, params []int64) bool {
|
||||
return false
|
||||
}
|
||||
func (this *SceneBaseStateFortuneTiger) OnPlayerEvent(s *base.Scene, p *base.Player, evtcode int, params []int64) {
|
||||
}
|
||||
|
||||
// ////////////////////////////////////////////////////////////
|
||||
// 开始状态
|
||||
// ////////////////////////////////////////////////////////////
|
||||
type SceneStateStartFortuneTiger struct {
|
||||
SceneBaseStateFortuneTiger
|
||||
}
|
||||
|
||||
func (this *SceneStateStartFortuneTiger) GetState() int {
|
||||
return fortunetiger.FortuneTigerStateStart
|
||||
}
|
||||
|
||||
func (this *SceneStateStartFortuneTiger) CanChangeTo(s base.SceneState) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// 当前状态能否换桌
|
||||
func (this *SceneStateStartFortuneTiger) CanChangeCoinScene(s *base.Scene, p *base.Player) bool {
|
||||
if playerEx, ok := p.GetExtraData().(*FortuneTigerPlayerData); ok {
|
||||
if playerEx.isRespin {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func (this *SceneStateStartFortuneTiger) GetTimeout(s *base.Scene) int {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (this *SceneStateStartFortuneTiger) OnEnter(s *base.Scene) {
|
||||
this.SceneBaseStateFortuneTiger.OnEnter(s)
|
||||
if sceneEx, ok := s.GetExtraData().(*FortuneTigerSceneData); ok {
|
||||
sceneEx.SetGameNowTime(time.Now())
|
||||
}
|
||||
}
|
||||
|
||||
// 状态离开时
|
||||
func (this *SceneStateStartFortuneTiger) OnLeave(s *base.Scene) {
|
||||
this.SceneBaseStateFortuneTiger.OnLeave(s)
|
||||
logger.Logger.Tracef("(this *SceneStateStartFortuneTiger) OnLeave, sceneid=%v", s.GetSceneId())
|
||||
}
|
||||
|
||||
// 玩家操作
|
||||
func (this *SceneStateStartFortuneTiger) OnPlayerOp(s *base.Scene, p *base.Player, opcode int, params []int64) bool {
|
||||
logger.Logger.Tracef("(this *SceneStateStartFortuneTiger) OnPlayerOp, sceneid=%v params=%v", s.GetSceneId(), params)
|
||||
if this.SceneBaseStateFortuneTiger.OnPlayerOp(s, p, opcode, params) {
|
||||
return true
|
||||
}
|
||||
if sceneEx, ok := s.GetExtraData().(*FortuneTigerSceneData); ok {
|
||||
if playerEx, ok := p.GetExtraData().(*FortuneTigerPlayerData); ok {
|
||||
switch opcode {
|
||||
case fortunetiger.FortuneTigerPlayerOpStart:
|
||||
playerEx.Clear()
|
||||
if len(params) < 3 {
|
||||
pack := &protocol.SCFortuneTigerBilled{
|
||||
OpRetCode: proto.Int32(1),
|
||||
}
|
||||
proto.SetDefaults(pack)
|
||||
logger.Logger.Trace("SCFortuneTigerBilled", pack.String())
|
||||
playerEx.SendToClient(int(protocol.FortuneTigerPID_PACKET_FORTUNETIGER_SCFORTUNETIGERBILLED), pack)
|
||||
return true
|
||||
}
|
||||
playerEx.BetSizeIndex = params[0]
|
||||
playerEx.BetLevelIndex = params[1]
|
||||
playerEx.BetLineIndex = params[2]
|
||||
//playerEx.BetMode = params[3]
|
||||
needCoin := sceneEx.BetConfig.BetSize[params[0]] * float64(sceneEx.BetConfig.BetLevel[params[1]]) *
|
||||
float64(sceneEx.BetConfig.BetLines[params[2]])
|
||||
if needCoin > float64(playerEx.Coin) {
|
||||
pack := &protocol.SCFortuneTigerBilled{
|
||||
OpRetCode: proto.Int32(1),
|
||||
}
|
||||
proto.SetDefaults(pack)
|
||||
logger.Logger.Trace("SCFortuneTigerBilled:", pack.String())
|
||||
playerEx.SendToClient(int(protocol.FortuneTigerPID_PACKET_FORTUNETIGER_SCFORTUNETIGERBILLED), pack)
|
||||
return true
|
||||
}
|
||||
|
||||
//playerEx.SlotsSession.SetCoin(playerEx.Coin * fortunetiger.NowByte)
|
||||
//logger.Logger.Trace("=============init dif coin", playerEx.Coin-playerEx.SlotsSession.Coin()/fortunetiger.NowByte)
|
||||
|
||||
//get data
|
||||
Response, err := slots.SlotsMgrSington.Play(playerEx.SlotsSession, &base.SpinReq{
|
||||
GameId: int64(sceneEx.GameId),
|
||||
BetSizeIndex: playerEx.BetSizeIndex,
|
||||
BetLevelIndex: playerEx.BetLevelIndex,
|
||||
BetLineIndex: playerEx.BetLineIndex,
|
||||
BetMode: playerEx.BetMode,
|
||||
Ts: time.Now().Unix(),
|
||||
})
|
||||
var gameEndStr string
|
||||
var data assemble.GameEnd
|
||||
if err == nil {
|
||||
data = assemble.DataToCli(Response).(assemble.GameEnd)
|
||||
var respinStatus int
|
||||
if data.Results[0].ArrSpins[0].Special != nil {
|
||||
respinStatus = data.Results[0].ArrSpins[0].Special.(SpinLock).ReSpinStatus
|
||||
}
|
||||
if respinStatus == 0 || respinStatus == 1 {
|
||||
//第一次触发或者正常模式
|
||||
//logger.Logger.Trace("=============addcoin1111 ", -data.TotalBet)
|
||||
playerEx.AddCoin(int64(-data.TotalBet), common.GainWay_HundredSceneLost, base.SyncFlag_ToClient, "system", s.GetSceneName())
|
||||
playerEx.totalBet = int64(data.TotalBet)
|
||||
//logger.Logger.Trace("=======bet======dif++++ ", float64(playerEx.Coin)-data.BetAfterCoin)
|
||||
}
|
||||
var taxCoin float64
|
||||
if data.RoundReward > 0 {
|
||||
//税收比例
|
||||
taxRate := sceneEx.GetDBGameFree().GetTaxRate()
|
||||
if taxRate < 0 || taxRate > 10000 {
|
||||
taxRate = 500
|
||||
}
|
||||
taxCoin = data.RoundReward * float64(taxRate) / 10000
|
||||
data.RoundReward = data.RoundReward - taxCoin
|
||||
playerEx.AddServiceFee(int64(taxCoin))
|
||||
playerEx.taxCoin = int64(taxCoin)
|
||||
playerEx.winCoin = int64(data.RoundReward)
|
||||
}
|
||||
pi, _ := json.Marshal(data)
|
||||
gameEndStr = string(pi)
|
||||
if respinStatus == 0 || respinStatus == 3 {
|
||||
//logger.Logger.Trace("===win==========addcoin222 ", data.RoundReward)
|
||||
playerEx.AddCoin(int64(data.RoundReward), common.GainWay_HundredSceneWin, 0, "system", s.GetSceneName())
|
||||
//logger.Logger.Trace("=======win======dif++++ ", float64(playerEx.Coin)-data.FinalCoin)
|
||||
//免费游戏结束或者正常模式
|
||||
sceneEx.StaticsLaba(&base.StaticLabaParam{
|
||||
SnId: playerEx.SnId,
|
||||
Gain: int64(data.RoundReward - data.TotalBet),
|
||||
GainTax: int64(taxCoin),
|
||||
IsAddTimes: true,
|
||||
})
|
||||
}
|
||||
if respinStatus == 0 || respinStatus == 3 {
|
||||
playerEx.isRespin = false
|
||||
} else {
|
||||
playerEx.isRespin = true
|
||||
}
|
||||
} else {
|
||||
logger.Logger.Error("slots Play err:", err)
|
||||
}
|
||||
|
||||
playerEx.SlotsSession.SetCoin(int64(data.FinalCoin) * fortunetiger.NowByte)
|
||||
|
||||
//logger.Logger.Trace("======end=======init dif coin", playerEx.Coin-playerEx.SlotsSession.Coin()/fortunetiger.NowByte)
|
||||
|
||||
if playerEx.Coin != int64(data.FinalCoin) {
|
||||
logger.Logger.Error("==========playerEx.Coin != data.FinalCoin==============", (float64(playerEx.Coin)-data.FinalCoin)/10000)
|
||||
}
|
||||
pack := &protocol.SCFortuneTigerBilled{
|
||||
OpRetCode: proto.Int32(0),
|
||||
GameEndStr: proto.String(gameEndStr),
|
||||
}
|
||||
proto.SetDefaults(pack)
|
||||
logger.Logger.Trace("SCFortuneTigerBilled", pack.String())
|
||||
playerEx.SendToClient(int(protocol.FortuneTigerPID_PACKET_FORTUNETIGER_SCFORTUNETIGERBILLED), pack)
|
||||
|
||||
// 记录本次操作
|
||||
FortuneTigerAndSaveLog(sceneEx, playerEx, data)
|
||||
}
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
// 玩家事件
|
||||
func (this *SceneStateStartFortuneTiger) OnPlayerEvent(s *base.Scene, p *base.Player, evtcode int, params []int64) {
|
||||
logger.Logger.Trace("(this *SceneStateStartFortuneTiger) OnPlayerEvent, sceneId=", s.GetSceneId(), " player=", p.SnId, " evtcode=", evtcode)
|
||||
this.SceneBaseStateFortuneTiger.OnPlayerEvent(s, p, evtcode, params)
|
||||
}
|
||||
|
||||
func (this *SceneStateStartFortuneTiger) OnTick(s *base.Scene) {
|
||||
this.SceneBaseStateFortuneTiger.OnTick(s)
|
||||
}
|
||||
|
||||
// //////////////////////////////////////////////////////////////////////////////
|
||||
func (this *ScenePolicyFortuneTiger) RegisteSceneState(state base.SceneState) {
|
||||
if state == nil {
|
||||
return
|
||||
}
|
||||
stateid := state.GetState()
|
||||
if stateid < 0 || stateid >= fortunetiger.FortuneTigerStateMax {
|
||||
return
|
||||
}
|
||||
this.states[stateid] = state
|
||||
}
|
||||
|
||||
func (this *ScenePolicyFortuneTiger) GetSceneState(s *base.Scene, stateid int) base.SceneState {
|
||||
if stateid >= 0 && stateid < fortunetiger.FortuneTigerStateMax {
|
||||
return this.states[stateid]
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func FortuneTigerAndSaveLog(sceneEx *FortuneTigerSceneData, playerEx *FortuneTigerPlayerData, data assemble.GameEnd) {
|
||||
if !playerEx.IsRob {
|
||||
data.SnId = playerEx.SnId
|
||||
info, err := model.MarshalGameNoteByROLL(data)
|
||||
if err == nil {
|
||||
logid, _ := model.AutoIncGameLogId()
|
||||
playerEx.currentLogId = logid
|
||||
sceneEx.SaveGameDetailedLog(logid, info, &base.GameDetailedParam{})
|
||||
totalin := playerEx.totalBet
|
||||
totalout := int64(data.RoundReward) + playerEx.taxCoin
|
||||
validFlow := totalin + totalout
|
||||
validBet := common.AbsI64(totalin - totalout)
|
||||
logParam := &base.SaveGamePlayerListLogParam{
|
||||
Platform: playerEx.Platform,
|
||||
Channel: playerEx.Channel,
|
||||
Promoter: playerEx.BeUnderAgentCode,
|
||||
PackageTag: playerEx.PackageID,
|
||||
InviterId: playerEx.InviterId,
|
||||
LogId: logid,
|
||||
TotalIn: totalin,
|
||||
TotalOut: totalout,
|
||||
TaxCoin: playerEx.taxCoin,
|
||||
BetAmount: playerEx.totalBet,
|
||||
WinAmountNoAnyTax: int64(data.RoundReward) + playerEx.taxCoin,
|
||||
ValidBet: validBet,
|
||||
ValidFlow: validFlow,
|
||||
IsFirstGame: sceneEx.IsPlayerFirst(playerEx.Player),
|
||||
}
|
||||
sceneEx.SaveGamePlayerListLog(playerEx.SnId, logParam)
|
||||
}
|
||||
}
|
||||
|
||||
//统计输下注金币数
|
||||
if !sceneEx.Testing && !playerEx.IsRob {
|
||||
playerBet := &server.PlayerData{
|
||||
SnId: proto.Int32(playerEx.SnId),
|
||||
Bet: proto.Int64(playerEx.CurrentBet),
|
||||
Gain: proto.Int64(int64(data.RoundReward) + playerEx.taxCoin),
|
||||
Tax: proto.Int64(playerEx.taxCoin),
|
||||
Coin: proto.Int64(playerEx.GetCoin()),
|
||||
GameCoinTs: proto.Int64(playerEx.GameCoinTs),
|
||||
}
|
||||
gwPlayerBet := &server.GWPlayerData{
|
||||
SceneId: sceneEx.SceneId,
|
||||
GameFreeId: proto.Int32(sceneEx.GetDBGameFree().GetId()),
|
||||
}
|
||||
gwPlayerBet.Datas = append(gwPlayerBet.Datas, playerBet)
|
||||
sceneEx.SyncPlayerDatas(&base.PlayerDataParam{
|
||||
HasRobotGaming: false,
|
||||
Data: gwPlayerBet,
|
||||
})
|
||||
}
|
||||
|
||||
playerEx.taxCoin = 0
|
||||
playerEx.winCoin = 0
|
||||
|
||||
if sceneEx.CheckNeedDestroy() && data.Results[0].FreeNum <= 0 {
|
||||
sceneEx.SceneDestroy(true)
|
||||
}
|
||||
}
|
||||
func init() {
|
||||
//主状态
|
||||
ScenePolicyFortuneTigerSington.RegisteSceneState(&SceneStateStartFortuneTiger{})
|
||||
core.RegisteHook(core.HOOK_BEFORE_START, func() error {
|
||||
base.RegisteScenePolicy(common.GameId_FortuneTiger, fortunetiger.RoomMode_Classic, ScenePolicyFortuneTigerSington)
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
|
@ -31,7 +31,9 @@ import (
|
|||
_ "mongo.games.com/game/gamesrv/caishen"
|
||||
_ "mongo.games.com/game/gamesrv/easterisland"
|
||||
_ "mongo.games.com/game/gamesrv/fortunedragon"
|
||||
_ "mongo.games.com/game/gamesrv/fortuneox"
|
||||
_ "mongo.games.com/game/gamesrv/fortunerabbit"
|
||||
_ "mongo.games.com/game/gamesrv/fortunetiger"
|
||||
_ "mongo.games.com/game/gamesrv/fruits"
|
||||
_ "mongo.games.com/game/gamesrv/iceage"
|
||||
_ "mongo.games.com/game/gamesrv/richblessed"
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -162,7 +162,7 @@ func init() {
|
|||
1: {
|
||||
Index: 1,
|
||||
BetSizeIndex: 1,
|
||||
BetLevelIndex: 0,
|
||||
BetLevelIndex: 1,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,79 +10,79 @@ func init() {
|
|||
FortuneTigerBetBetChangeList = map[int64]*structs.FortuneTigerBetBetChangeList{
|
||||
0: {
|
||||
Index: 0,
|
||||
BetChangeList: 0.15,
|
||||
BetChangeList: 150000,
|
||||
BetSizeIndex: 0,
|
||||
BetLevelIndex: 0,
|
||||
},
|
||||
1: {
|
||||
Index: 1,
|
||||
BetChangeList: 0.3,
|
||||
BetChangeList: 300000,
|
||||
BetSizeIndex: 0,
|
||||
BetLevelIndex: 1,
|
||||
},
|
||||
2: {
|
||||
Index: 2,
|
||||
BetChangeList: 0.45,
|
||||
BetChangeList: 450000,
|
||||
BetSizeIndex: 0,
|
||||
BetLevelIndex: 2,
|
||||
},
|
||||
3: {
|
||||
Index: 3,
|
||||
BetChangeList: 0.5,
|
||||
BetChangeList: 500000,
|
||||
BetSizeIndex: 1,
|
||||
BetLevelIndex: 0,
|
||||
},
|
||||
4: {
|
||||
Index: 4,
|
||||
BetChangeList: 0.75,
|
||||
BetChangeList: 750000,
|
||||
BetSizeIndex: 0,
|
||||
BetLevelIndex: 4,
|
||||
},
|
||||
5: {
|
||||
Index: 5,
|
||||
BetChangeList: 1.5,
|
||||
BetChangeList: 1500000,
|
||||
BetSizeIndex: 0,
|
||||
BetLevelIndex: 9,
|
||||
},
|
||||
6: {
|
||||
Index: 6,
|
||||
BetChangeList: 2.5,
|
||||
BetChangeList: 2500000,
|
||||
BetSizeIndex: 1,
|
||||
BetLevelIndex: 4,
|
||||
},
|
||||
7: {
|
||||
Index: 7,
|
||||
BetChangeList: 4.5,
|
||||
BetChangeList: 4500000,
|
||||
BetSizeIndex: 3,
|
||||
BetLevelIndex: 0,
|
||||
},
|
||||
8: {
|
||||
Index: 8,
|
||||
BetChangeList: 5,
|
||||
BetChangeList: 5000000,
|
||||
BetSizeIndex: 1,
|
||||
BetLevelIndex: 9,
|
||||
},
|
||||
9: {
|
||||
Index: 9,
|
||||
BetChangeList: 7.5,
|
||||
BetChangeList: 7500000,
|
||||
BetSizeIndex: 2,
|
||||
BetLevelIndex: 4,
|
||||
},
|
||||
10: {
|
||||
Index: 10,
|
||||
BetChangeList: 15,
|
||||
BetChangeList: 15000000,
|
||||
BetSizeIndex: 2,
|
||||
BetLevelIndex: 9,
|
||||
},
|
||||
11: {
|
||||
Index: 11,
|
||||
BetChangeList: 22.5,
|
||||
BetChangeList: 22500000,
|
||||
BetSizeIndex: 3,
|
||||
BetLevelIndex: 4,
|
||||
},
|
||||
12: {
|
||||
Index: 12,
|
||||
BetChangeList: 45,
|
||||
BetChangeList: 45000000,
|
||||
BetSizeIndex: 3,
|
||||
BetLevelIndex: 9,
|
||||
},
|
||||
|
|
@ -142,19 +142,19 @@ func init() {
|
|||
FortuneTigerBetBetSize = map[int64]*structs.FortuneTigerBetBetSize{
|
||||
0: {
|
||||
Index: 0,
|
||||
BetSize: 300,
|
||||
BetSize: 300000000,
|
||||
},
|
||||
1: {
|
||||
Index: 1,
|
||||
BetSize: 1000,
|
||||
BetSize: 1000000000,
|
||||
},
|
||||
2: {
|
||||
Index: 2,
|
||||
BetSize: 3000,
|
||||
BetSize: 3000000000,
|
||||
},
|
||||
3: {
|
||||
Index: 3,
|
||||
BetSize: 9000,
|
||||
BetSize: 9000000000,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ func (FortuneTigerPID) EnumDescriptor() ([]byte, []int) {
|
|||
return file_protocol_fortunetiger_fortunetiger_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
type FortuneDragonPlayerData struct {
|
||||
type FortuneTigerPlayerData struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
|
@ -98,8 +98,8 @@ type FortuneDragonPlayerData struct {
|
|||
VIP int32 `protobuf:"varint,11,opt,name=VIP,proto3" json:"VIP,omitempty"`
|
||||
}
|
||||
|
||||
func (x *FortuneDragonPlayerData) Reset() {
|
||||
*x = FortuneDragonPlayerData{}
|
||||
func (x *FortuneTigerPlayerData) Reset() {
|
||||
*x = FortuneTigerPlayerData{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
|
|
@ -107,13 +107,13 @@ func (x *FortuneDragonPlayerData) Reset() {
|
|||
}
|
||||
}
|
||||
|
||||
func (x *FortuneDragonPlayerData) String() string {
|
||||
func (x *FortuneTigerPlayerData) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*FortuneDragonPlayerData) ProtoMessage() {}
|
||||
func (*FortuneTigerPlayerData) ProtoMessage() {}
|
||||
|
||||
func (x *FortuneDragonPlayerData) ProtoReflect() protoreflect.Message {
|
||||
func (x *FortuneTigerPlayerData) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
|
|
@ -125,82 +125,82 @@ func (x *FortuneDragonPlayerData) ProtoReflect() protoreflect.Message {
|
|||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use FortuneDragonPlayerData.ProtoReflect.Descriptor instead.
|
||||
func (*FortuneDragonPlayerData) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use FortuneTigerPlayerData.ProtoReflect.Descriptor instead.
|
||||
func (*FortuneTigerPlayerData) Descriptor() ([]byte, []int) {
|
||||
return file_protocol_fortunetiger_fortunetiger_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *FortuneDragonPlayerData) GetName() string {
|
||||
func (x *FortuneTigerPlayerData) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *FortuneDragonPlayerData) GetSnId() int32 {
|
||||
func (x *FortuneTigerPlayerData) GetSnId() int32 {
|
||||
if x != nil {
|
||||
return x.SnId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *FortuneDragonPlayerData) GetHead() int32 {
|
||||
func (x *FortuneTigerPlayerData) GetHead() int32 {
|
||||
if x != nil {
|
||||
return x.Head
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *FortuneDragonPlayerData) GetSex() int32 {
|
||||
func (x *FortuneTigerPlayerData) GetSex() int32 {
|
||||
if x != nil {
|
||||
return x.Sex
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *FortuneDragonPlayerData) GetCoin() int64 {
|
||||
func (x *FortuneTigerPlayerData) GetCoin() int64 {
|
||||
if x != nil {
|
||||
return x.Coin
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *FortuneDragonPlayerData) GetPos() int32 {
|
||||
func (x *FortuneTigerPlayerData) GetPos() int32 {
|
||||
if x != nil {
|
||||
return x.Pos
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *FortuneDragonPlayerData) GetFlag() int32 {
|
||||
func (x *FortuneTigerPlayerData) GetFlag() int32 {
|
||||
if x != nil {
|
||||
return x.Flag
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *FortuneDragonPlayerData) GetParams() []string {
|
||||
func (x *FortuneTigerPlayerData) GetParams() []string {
|
||||
if x != nil {
|
||||
return x.Params
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *FortuneDragonPlayerData) GetCity() string {
|
||||
func (x *FortuneTigerPlayerData) GetCity() string {
|
||||
if x != nil {
|
||||
return x.City
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *FortuneDragonPlayerData) GetHeadOutLine() int32 {
|
||||
func (x *FortuneTigerPlayerData) GetHeadOutLine() int32 {
|
||||
if x != nil {
|
||||
return x.HeadOutLine
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *FortuneDragonPlayerData) GetVIP() int32 {
|
||||
func (x *FortuneTigerPlayerData) GetVIP() int32 {
|
||||
if x != nil {
|
||||
return x.VIP
|
||||
}
|
||||
|
|
@ -209,7 +209,7 @@ func (x *FortuneDragonPlayerData) GetVIP() int32 {
|
|||
|
||||
//房间信息
|
||||
//PACKET_FORTUNETIGER_SCFORTUNETIGERROOMINFO
|
||||
type SCFortuneDragonRoomInfo struct {
|
||||
type SCFortuneTigerRoomInfo struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
|
@ -223,12 +223,12 @@ type SCFortuneDragonRoomInfo struct {
|
|||
State int32 `protobuf:"varint,7,opt,name=State,proto3" json:"State,omitempty"` //房间当前状态
|
||||
ParamsEx []int64 `protobuf:"varint,8,rep,packed,name=ParamsEx,proto3" json:"ParamsEx,omitempty"` //其他参数
|
||||
SceneType int32 `protobuf:"varint,9,opt,name=SceneType,proto3" json:"SceneType,omitempty"` //房间模式
|
||||
Player *FortuneDragonPlayerData `protobuf:"bytes,10,opt,name=Player,proto3" json:"Player,omitempty"` //房间内的玩家信息
|
||||
Player *FortuneTigerPlayerData `protobuf:"bytes,10,opt,name=Player,proto3" json:"Player,omitempty"` //房间内的玩家信息
|
||||
PlayerInfo string `protobuf:"bytes,11,opt,name=PlayerInfo,proto3" json:"PlayerInfo,omitempty"`
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonRoomInfo) Reset() {
|
||||
*x = SCFortuneDragonRoomInfo{}
|
||||
func (x *SCFortuneTigerRoomInfo) Reset() {
|
||||
*x = SCFortuneTigerRoomInfo{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
|
|
@ -236,13 +236,13 @@ func (x *SCFortuneDragonRoomInfo) Reset() {
|
|||
}
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonRoomInfo) String() string {
|
||||
func (x *SCFortuneTigerRoomInfo) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SCFortuneDragonRoomInfo) ProtoMessage() {}
|
||||
func (*SCFortuneTigerRoomInfo) ProtoMessage() {}
|
||||
|
||||
func (x *SCFortuneDragonRoomInfo) ProtoReflect() protoreflect.Message {
|
||||
func (x *SCFortuneTigerRoomInfo) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
|
|
@ -254,82 +254,82 @@ func (x *SCFortuneDragonRoomInfo) ProtoReflect() protoreflect.Message {
|
|||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SCFortuneDragonRoomInfo.ProtoReflect.Descriptor instead.
|
||||
func (*SCFortuneDragonRoomInfo) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use SCFortuneTigerRoomInfo.ProtoReflect.Descriptor instead.
|
||||
func (*SCFortuneTigerRoomInfo) Descriptor() ([]byte, []int) {
|
||||
return file_protocol_fortunetiger_fortunetiger_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonRoomInfo) GetRoomId() int32 {
|
||||
func (x *SCFortuneTigerRoomInfo) GetRoomId() int32 {
|
||||
if x != nil {
|
||||
return x.RoomId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonRoomInfo) GetGameFreeId() int32 {
|
||||
func (x *SCFortuneTigerRoomInfo) GetGameFreeId() int32 {
|
||||
if x != nil {
|
||||
return x.GameFreeId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonRoomInfo) GetGameId() int32 {
|
||||
func (x *SCFortuneTigerRoomInfo) GetGameId() int32 {
|
||||
if x != nil {
|
||||
return x.GameId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonRoomInfo) GetRoomMode() int32 {
|
||||
func (x *SCFortuneTigerRoomInfo) GetRoomMode() int32 {
|
||||
if x != nil {
|
||||
return x.RoomMode
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonRoomInfo) GetParams() []int32 {
|
||||
func (x *SCFortuneTigerRoomInfo) GetParams() []int32 {
|
||||
if x != nil {
|
||||
return x.Params
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonRoomInfo) GetNumOfGames() int32 {
|
||||
func (x *SCFortuneTigerRoomInfo) GetNumOfGames() int32 {
|
||||
if x != nil {
|
||||
return x.NumOfGames
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonRoomInfo) GetState() int32 {
|
||||
func (x *SCFortuneTigerRoomInfo) GetState() int32 {
|
||||
if x != nil {
|
||||
return x.State
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonRoomInfo) GetParamsEx() []int64 {
|
||||
func (x *SCFortuneTigerRoomInfo) GetParamsEx() []int64 {
|
||||
if x != nil {
|
||||
return x.ParamsEx
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonRoomInfo) GetSceneType() int32 {
|
||||
func (x *SCFortuneTigerRoomInfo) GetSceneType() int32 {
|
||||
if x != nil {
|
||||
return x.SceneType
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonRoomInfo) GetPlayer() *FortuneDragonPlayerData {
|
||||
func (x *SCFortuneTigerRoomInfo) GetPlayer() *FortuneTigerPlayerData {
|
||||
if x != nil {
|
||||
return x.Player
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonRoomInfo) GetPlayerInfo() string {
|
||||
func (x *SCFortuneTigerRoomInfo) GetPlayerInfo() string {
|
||||
if x != nil {
|
||||
return x.PlayerInfo
|
||||
}
|
||||
|
|
@ -338,7 +338,7 @@ func (x *SCFortuneDragonRoomInfo) GetPlayerInfo() string {
|
|||
|
||||
//玩家操作
|
||||
//PACKET_FORTUNETIGER_CSFORTUNETIGEROP
|
||||
type CSFortuneDragonOp struct {
|
||||
type CSFortuneTigerOp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
|
@ -347,8 +347,8 @@ type CSFortuneDragonOp struct {
|
|||
Params []int64 `protobuf:"varint,2,rep,packed,name=Params,proto3" json:"Params,omitempty"` //操作参数 下注索引编号
|
||||
}
|
||||
|
||||
func (x *CSFortuneDragonOp) Reset() {
|
||||
*x = CSFortuneDragonOp{}
|
||||
func (x *CSFortuneTigerOp) Reset() {
|
||||
*x = CSFortuneTigerOp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
|
|
@ -356,13 +356,13 @@ func (x *CSFortuneDragonOp) Reset() {
|
|||
}
|
||||
}
|
||||
|
||||
func (x *CSFortuneDragonOp) String() string {
|
||||
func (x *CSFortuneTigerOp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CSFortuneDragonOp) ProtoMessage() {}
|
||||
func (*CSFortuneTigerOp) ProtoMessage() {}
|
||||
|
||||
func (x *CSFortuneDragonOp) ProtoReflect() protoreflect.Message {
|
||||
func (x *CSFortuneTigerOp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
|
|
@ -374,19 +374,19 @@ func (x *CSFortuneDragonOp) ProtoReflect() protoreflect.Message {
|
|||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use CSFortuneDragonOp.ProtoReflect.Descriptor instead.
|
||||
func (*CSFortuneDragonOp) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use CSFortuneTigerOp.ProtoReflect.Descriptor instead.
|
||||
func (*CSFortuneTigerOp) Descriptor() ([]byte, []int) {
|
||||
return file_protocol_fortunetiger_fortunetiger_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *CSFortuneDragonOp) GetOpCode() int32 {
|
||||
func (x *CSFortuneTigerOp) GetOpCode() int32 {
|
||||
if x != nil {
|
||||
return x.OpCode
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *CSFortuneDragonOp) GetParams() []int64 {
|
||||
func (x *CSFortuneTigerOp) GetParams() []int64 {
|
||||
if x != nil {
|
||||
return x.Params
|
||||
}
|
||||
|
|
@ -395,7 +395,7 @@ func (x *CSFortuneDragonOp) GetParams() []int64 {
|
|||
|
||||
//玩家操作返回
|
||||
//PACKET_FORTUNETIGER_SCFORTUNETIGEROP
|
||||
type SCFortuneDragonOp struct {
|
||||
type SCFortuneTigerOp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
|
@ -405,8 +405,8 @@ type SCFortuneDragonOp struct {
|
|||
Params []int64 `protobuf:"varint,3,rep,packed,name=Params,proto3" json:"Params,omitempty"` //操作参数
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonOp) Reset() {
|
||||
*x = SCFortuneDragonOp{}
|
||||
func (x *SCFortuneTigerOp) Reset() {
|
||||
*x = SCFortuneTigerOp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
|
|
@ -414,13 +414,13 @@ func (x *SCFortuneDragonOp) Reset() {
|
|||
}
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonOp) String() string {
|
||||
func (x *SCFortuneTigerOp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SCFortuneDragonOp) ProtoMessage() {}
|
||||
func (*SCFortuneTigerOp) ProtoMessage() {}
|
||||
|
||||
func (x *SCFortuneDragonOp) ProtoReflect() protoreflect.Message {
|
||||
func (x *SCFortuneTigerOp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
|
|
@ -432,26 +432,26 @@ func (x *SCFortuneDragonOp) ProtoReflect() protoreflect.Message {
|
|||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SCFortuneDragonOp.ProtoReflect.Descriptor instead.
|
||||
func (*SCFortuneDragonOp) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use SCFortuneTigerOp.ProtoReflect.Descriptor instead.
|
||||
func (*SCFortuneTigerOp) Descriptor() ([]byte, []int) {
|
||||
return file_protocol_fortunetiger_fortunetiger_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonOp) GetOpCode() int32 {
|
||||
func (x *SCFortuneTigerOp) GetOpCode() int32 {
|
||||
if x != nil {
|
||||
return x.OpCode
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonOp) GetOpRetCode() int32 {
|
||||
func (x *SCFortuneTigerOp) GetOpRetCode() int32 {
|
||||
if x != nil {
|
||||
return x.OpRetCode
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonOp) GetParams() []int64 {
|
||||
func (x *SCFortuneTigerOp) GetParams() []int64 {
|
||||
if x != nil {
|
||||
return x.Params
|
||||
}
|
||||
|
|
@ -460,7 +460,7 @@ func (x *SCFortuneDragonOp) GetParams() []int64 {
|
|||
|
||||
//房间状态
|
||||
//PACKET_FORTUNETIGER_SCFORTUNETIGERROOMSTATE
|
||||
type SCFortuneDragonRoomState struct {
|
||||
type SCFortuneTigerRoomState struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
|
@ -470,8 +470,8 @@ type SCFortuneDragonRoomState struct {
|
|||
Params []int32 `protobuf:"varint,3,rep,packed,name=Params,proto3" json:"Params,omitempty"` //状态参数
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonRoomState) Reset() {
|
||||
*x = SCFortuneDragonRoomState{}
|
||||
func (x *SCFortuneTigerRoomState) Reset() {
|
||||
*x = SCFortuneTigerRoomState{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
|
|
@ -479,13 +479,13 @@ func (x *SCFortuneDragonRoomState) Reset() {
|
|||
}
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonRoomState) String() string {
|
||||
func (x *SCFortuneTigerRoomState) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SCFortuneDragonRoomState) ProtoMessage() {}
|
||||
func (*SCFortuneTigerRoomState) ProtoMessage() {}
|
||||
|
||||
func (x *SCFortuneDragonRoomState) ProtoReflect() protoreflect.Message {
|
||||
func (x *SCFortuneTigerRoomState) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[4]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
|
|
@ -497,26 +497,26 @@ func (x *SCFortuneDragonRoomState) ProtoReflect() protoreflect.Message {
|
|||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SCFortuneDragonRoomState.ProtoReflect.Descriptor instead.
|
||||
func (*SCFortuneDragonRoomState) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use SCFortuneTigerRoomState.ProtoReflect.Descriptor instead.
|
||||
func (*SCFortuneTigerRoomState) Descriptor() ([]byte, []int) {
|
||||
return file_protocol_fortunetiger_fortunetiger_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonRoomState) GetState() int32 {
|
||||
func (x *SCFortuneTigerRoomState) GetState() int32 {
|
||||
if x != nil {
|
||||
return x.State
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonRoomState) GetSubState() int32 {
|
||||
func (x *SCFortuneTigerRoomState) GetSubState() int32 {
|
||||
if x != nil {
|
||||
return x.SubState
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonRoomState) GetParams() []int32 {
|
||||
func (x *SCFortuneTigerRoomState) GetParams() []int32 {
|
||||
if x != nil {
|
||||
return x.Params
|
||||
}
|
||||
|
|
@ -524,7 +524,7 @@ func (x *SCFortuneDragonRoomState) GetParams() []int32 {
|
|||
}
|
||||
|
||||
//PACKET_FORTUNETIGER_SCFORTUNETIGERBILLED
|
||||
type SCFortuneDragonBilled struct {
|
||||
type SCFortuneTigerBilled struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
|
@ -533,8 +533,8 @@ type SCFortuneDragonBilled struct {
|
|||
GameEndStr string `protobuf:"bytes,2,opt,name=GameEndStr,proto3" json:"GameEndStr,omitempty"`
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonBilled) Reset() {
|
||||
*x = SCFortuneDragonBilled{}
|
||||
func (x *SCFortuneTigerBilled) Reset() {
|
||||
*x = SCFortuneTigerBilled{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
|
|
@ -542,13 +542,13 @@ func (x *SCFortuneDragonBilled) Reset() {
|
|||
}
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonBilled) String() string {
|
||||
func (x *SCFortuneTigerBilled) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SCFortuneDragonBilled) ProtoMessage() {}
|
||||
func (*SCFortuneTigerBilled) ProtoMessage() {}
|
||||
|
||||
func (x *SCFortuneDragonBilled) ProtoReflect() protoreflect.Message {
|
||||
func (x *SCFortuneTigerBilled) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_protocol_fortunetiger_fortunetiger_proto_msgTypes[5]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
|
|
@ -560,19 +560,19 @@ func (x *SCFortuneDragonBilled) ProtoReflect() protoreflect.Message {
|
|||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SCFortuneDragonBilled.ProtoReflect.Descriptor instead.
|
||||
func (*SCFortuneDragonBilled) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use SCFortuneTigerBilled.ProtoReflect.Descriptor instead.
|
||||
func (*SCFortuneTigerBilled) Descriptor() ([]byte, []int) {
|
||||
return file_protocol_fortunetiger_fortunetiger_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonBilled) GetOpRetCode() int32 {
|
||||
func (x *SCFortuneTigerBilled) GetOpRetCode() int32 {
|
||||
if x != nil {
|
||||
return x.OpRetCode
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *SCFortuneDragonBilled) GetGameEndStr() string {
|
||||
func (x *SCFortuneTigerBilled) GetGameEndStr() string {
|
||||
if x != nil {
|
||||
return x.GameEndStr
|
||||
}
|
||||
|
|
@ -585,89 +585,89 @@ var file_protocol_fortunetiger_fortunetiger_proto_rawDesc = []byte{
|
|||
0x0a, 0x28, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x66, 0x6f, 0x72, 0x74, 0x75,
|
||||
0x6e, 0x65, 0x74, 0x69, 0x67, 0x65, 0x72, 0x2f, 0x66, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x74,
|
||||
0x69, 0x67, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x66, 0x6f, 0x72, 0x74,
|
||||
0x75, 0x6e, 0x65, 0x74, 0x69, 0x67, 0x65, 0x72, 0x22, 0x81, 0x02, 0x0a, 0x17, 0x46, 0x6f, 0x72,
|
||||
0x74, 0x75, 0x6e, 0x65, 0x44, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72,
|
||||
0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x53, 0x6e, 0x49, 0x64,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x53, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04,
|
||||
0x48, 0x65, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x48, 0x65, 0x61, 0x64,
|
||||
0x12, 0x10, 0x0a, 0x03, 0x53, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x53,
|
||||
0x65, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x43, 0x6f, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03,
|
||||
0x52, 0x04, 0x43, 0x6f, 0x69, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x50, 0x6f, 0x73, 0x18, 0x06, 0x20,
|
||||
0x01, 0x28, 0x05, 0x52, 0x03, 0x50, 0x6f, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x46, 0x6c, 0x61, 0x67,
|
||||
0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x16, 0x0a, 0x06,
|
||||
0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x50, 0x61,
|
||||
0x72, 0x61, 0x6d, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x43, 0x69, 0x74, 0x79, 0x18, 0x09, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x04, 0x43, 0x69, 0x74, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x48, 0x65, 0x61, 0x64,
|
||||
0x4f, 0x75, 0x74, 0x4c, 0x69, 0x6e, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x48,
|
||||
0x65, 0x61, 0x64, 0x4f, 0x75, 0x74, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x56, 0x49,
|
||||
0x50, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x56, 0x49, 0x50, 0x22, 0xec, 0x02, 0x0a,
|
||||
0x17, 0x53, 0x43, 0x46, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x44, 0x72, 0x61, 0x67, 0x6f, 0x6e,
|
||||
0x52, 0x6f, 0x6f, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x6f, 0x6f, 0x6d,
|
||||
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x52, 0x6f, 0x6f, 0x6d, 0x49, 0x64,
|
||||
0x12, 0x1e, 0x0a, 0x0a, 0x47, 0x61, 0x6d, 0x65, 0x46, 0x72, 0x65, 0x65, 0x49, 0x64, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x47, 0x61, 0x6d, 0x65, 0x46, 0x72, 0x65, 0x65, 0x49, 0x64,
|
||||
0x12, 0x16, 0x0a, 0x06, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05,
|
||||
0x52, 0x06, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x52, 0x6f, 0x6f, 0x6d,
|
||||
0x4d, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x52, 0x6f, 0x6f, 0x6d,
|
||||
0x4d, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x05,
|
||||
0x20, 0x03, 0x28, 0x05, 0x52, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1e, 0x0a, 0x0a,
|
||||
0x4e, 0x75, 0x6d, 0x4f, 0x66, 0x47, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05,
|
||||
0x52, 0x0a, 0x4e, 0x75, 0x6d, 0x4f, 0x66, 0x47, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05,
|
||||
0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x53, 0x74, 0x61,
|
||||
0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x78, 0x18, 0x08,
|
||||
0x20, 0x03, 0x28, 0x03, 0x52, 0x08, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x78, 0x12, 0x1c,
|
||||
0x0a, 0x09, 0x53, 0x63, 0x65, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28,
|
||||
0x05, 0x52, 0x09, 0x53, 0x63, 0x65, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3d, 0x0a, 0x06,
|
||||
0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66,
|
||||
0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x74, 0x69, 0x67, 0x65, 0x72, 0x2e, 0x46, 0x6f, 0x72, 0x74,
|
||||
0x75, 0x6e, 0x65, 0x44, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x44,
|
||||
0x61, 0x74, 0x61, 0x52, 0x06, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x50,
|
||||
0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x0a, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x43, 0x0a, 0x11, 0x43,
|
||||
0x53, 0x46, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x44, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x4f, 0x70,
|
||||
0x75, 0x6e, 0x65, 0x74, 0x69, 0x67, 0x65, 0x72, 0x22, 0x80, 0x02, 0x0a, 0x16, 0x46, 0x6f, 0x72,
|
||||
0x74, 0x75, 0x6e, 0x65, 0x54, 0x69, 0x67, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x44,
|
||||
0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x53, 0x6e, 0x49, 0x64, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x53, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x48,
|
||||
0x65, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x48, 0x65, 0x61, 0x64, 0x12,
|
||||
0x10, 0x0a, 0x03, 0x53, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x53, 0x65,
|
||||
0x78, 0x12, 0x12, 0x0a, 0x04, 0x43, 0x6f, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52,
|
||||
0x04, 0x43, 0x6f, 0x69, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x50, 0x6f, 0x73, 0x18, 0x06, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x03, 0x50, 0x6f, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x46, 0x6c, 0x61, 0x67, 0x18,
|
||||
0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x50,
|
||||
0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x50, 0x61, 0x72,
|
||||
0x61, 0x6d, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x43, 0x69, 0x74, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x04, 0x43, 0x69, 0x74, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x48, 0x65, 0x61, 0x64, 0x4f,
|
||||
0x75, 0x74, 0x4c, 0x69, 0x6e, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x48, 0x65,
|
||||
0x61, 0x64, 0x4f, 0x75, 0x74, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x56, 0x49, 0x50,
|
||||
0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x56, 0x49, 0x50, 0x22, 0xea, 0x02, 0x0a, 0x16,
|
||||
0x53, 0x43, 0x46, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x54, 0x69, 0x67, 0x65, 0x72, 0x52, 0x6f,
|
||||
0x6f, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x6f, 0x6f, 0x6d, 0x49, 0x64,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x52, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x12, 0x1e,
|
||||
0x0a, 0x0a, 0x47, 0x61, 0x6d, 0x65, 0x46, 0x72, 0x65, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x0a, 0x47, 0x61, 0x6d, 0x65, 0x46, 0x72, 0x65, 0x65, 0x49, 0x64, 0x12, 0x16,
|
||||
0x0a, 0x06, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06,
|
||||
0x47, 0x61, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x52, 0x6f, 0x6f, 0x6d, 0x4d, 0x6f,
|
||||
0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x52, 0x6f, 0x6f, 0x6d, 0x4d, 0x6f,
|
||||
0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03,
|
||||
0x28, 0x05, 0x52, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x4e, 0x75,
|
||||
0x6d, 0x4f, 0x66, 0x47, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a,
|
||||
0x4e, 0x75, 0x6d, 0x4f, 0x66, 0x47, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x53, 0x74,
|
||||
0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65,
|
||||
0x12, 0x1a, 0x0a, 0x08, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x78, 0x18, 0x08, 0x20, 0x03,
|
||||
0x28, 0x03, 0x52, 0x08, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x78, 0x12, 0x1c, 0x0a, 0x09,
|
||||
0x53, 0x63, 0x65, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||
0x09, 0x53, 0x63, 0x65, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3c, 0x0a, 0x06, 0x50, 0x6c,
|
||||
0x61, 0x79, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6f, 0x72,
|
||||
0x74, 0x75, 0x6e, 0x65, 0x74, 0x69, 0x67, 0x65, 0x72, 0x2e, 0x46, 0x6f, 0x72, 0x74, 0x75, 0x6e,
|
||||
0x65, 0x54, 0x69, 0x67, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61,
|
||||
0x52, 0x06, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x50, 0x6c, 0x61, 0x79,
|
||||
0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x50, 0x6c,
|
||||
0x61, 0x79, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x42, 0x0a, 0x10, 0x43, 0x53, 0x46, 0x6f,
|
||||
0x72, 0x74, 0x75, 0x6e, 0x65, 0x54, 0x69, 0x67, 0x65, 0x72, 0x4f, 0x70, 0x12, 0x16, 0x0a, 0x06,
|
||||
0x4f, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x4f, 0x70,
|
||||
0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02,
|
||||
0x20, 0x03, 0x28, 0x03, 0x52, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x60, 0x0a, 0x10,
|
||||
0x53, 0x43, 0x46, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x54, 0x69, 0x67, 0x65, 0x72, 0x4f, 0x70,
|
||||
0x12, 0x16, 0x0a, 0x06, 0x4f, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
|
||||
0x52, 0x06, 0x4f, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61,
|
||||
0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x03, 0x52, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
|
||||
0x22, 0x61, 0x0a, 0x11, 0x53, 0x43, 0x46, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x44, 0x72, 0x61,
|
||||
0x67, 0x6f, 0x6e, 0x4f, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x4f, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x4f, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1c, 0x0a,
|
||||
0x09, 0x4f, 0x70, 0x52, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
|
||||
0x52, 0x09, 0x4f, 0x70, 0x52, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x50,
|
||||
0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x03, 0x52, 0x06, 0x50, 0x61, 0x72,
|
||||
0x61, 0x6d, 0x73, 0x22, 0x64, 0x0a, 0x18, 0x53, 0x43, 0x46, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65,
|
||||
0x44, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x52, 0x6f, 0x6f, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12,
|
||||
0x14, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05,
|
||||
0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x53, 0x75, 0x62, 0x53, 0x74, 0x61, 0x74,
|
||||
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x53, 0x75, 0x62, 0x53, 0x74, 0x61, 0x74,
|
||||
0x65, 0x12, 0x16, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
|
||||
0x05, 0x52, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x55, 0x0a, 0x15, 0x53, 0x43, 0x46,
|
||||
0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x44, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x42, 0x69, 0x6c, 0x6c,
|
||||
0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x4f, 0x70, 0x52, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x4f, 0x70, 0x52, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65,
|
||||
0x12, 0x1e, 0x0a, 0x0a, 0x47, 0x61, 0x6d, 0x65, 0x45, 0x6e, 0x64, 0x53, 0x74, 0x72, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x47, 0x61, 0x6d, 0x65, 0x45, 0x6e, 0x64, 0x53, 0x74, 0x72,
|
||||
0x2a, 0x97, 0x02, 0x0a, 0x0f, 0x46, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x54, 0x69, 0x67, 0x65,
|
||||
0x72, 0x50, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x46,
|
||||
0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x5f, 0x5a, 0x45, 0x52, 0x4f,
|
||||
0x10, 0x00, 0x12, 0x2f, 0x0a, 0x2a, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x46, 0x4f, 0x52,
|
||||
0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x5f, 0x53, 0x43, 0x46, 0x4f, 0x52, 0x54,
|
||||
0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x52, 0x4f, 0x4f, 0x4d, 0x49, 0x4e, 0x46, 0x4f,
|
||||
0x10, 0xfe, 0x2b, 0x12, 0x29, 0x0a, 0x24, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x46, 0x4f,
|
||||
0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x5f, 0x43, 0x53, 0x46, 0x4f, 0x52,
|
||||
0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x4f, 0x50, 0x10, 0xff, 0x2b, 0x12, 0x29,
|
||||
0x0a, 0x24, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45,
|
||||
0x54, 0x49, 0x47, 0x45, 0x52, 0x5f, 0x53, 0x43, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54,
|
||||
0x49, 0x47, 0x45, 0x52, 0x4f, 0x50, 0x10, 0x80, 0x2c, 0x12, 0x30, 0x0a, 0x2b, 0x50, 0x41, 0x43,
|
||||
0x4b, 0x45, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52,
|
||||
0x5f, 0x53, 0x43, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x52,
|
||||
0x4f, 0x4f, 0x4d, 0x53, 0x54, 0x41, 0x54, 0x45, 0x10, 0x81, 0x2c, 0x12, 0x2d, 0x0a, 0x28, 0x50,
|
||||
0x52, 0x06, 0x4f, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x4f, 0x70, 0x52, 0x65,
|
||||
0x74, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x4f, 0x70, 0x52,
|
||||
0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
|
||||
0x18, 0x03, 0x20, 0x03, 0x28, 0x03, 0x52, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x63,
|
||||
0x0a, 0x17, 0x53, 0x43, 0x46, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x54, 0x69, 0x67, 0x65, 0x72,
|
||||
0x52, 0x6f, 0x6f, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x53, 0x74, 0x61,
|
||||
0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12,
|
||||
0x1a, 0x0a, 0x08, 0x53, 0x75, 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||
0x05, 0x52, 0x08, 0x53, 0x75, 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x50,
|
||||
0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x06, 0x50, 0x61, 0x72,
|
||||
0x61, 0x6d, 0x73, 0x22, 0x54, 0x0a, 0x14, 0x53, 0x43, 0x46, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65,
|
||||
0x54, 0x69, 0x67, 0x65, 0x72, 0x42, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x4f,
|
||||
0x70, 0x52, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09,
|
||||
0x4f, 0x70, 0x52, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x47, 0x61, 0x6d,
|
||||
0x65, 0x45, 0x6e, 0x64, 0x53, 0x74, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x47,
|
||||
0x61, 0x6d, 0x65, 0x45, 0x6e, 0x64, 0x53, 0x74, 0x72, 0x2a, 0x97, 0x02, 0x0a, 0x0f, 0x46, 0x6f,
|
||||
0x72, 0x74, 0x75, 0x6e, 0x65, 0x54, 0x69, 0x67, 0x65, 0x72, 0x50, 0x49, 0x44, 0x12, 0x1c, 0x0a,
|
||||
0x18, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54,
|
||||
0x49, 0x47, 0x45, 0x52, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x2f, 0x0a, 0x2a, 0x50,
|
||||
0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47,
|
||||
0x45, 0x52, 0x5f, 0x53, 0x43, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45,
|
||||
0x52, 0x42, 0x49, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x82, 0x2c, 0x42, 0x2c, 0x5a, 0x2a, 0x6d, 0x6f,
|
||||
0x6e, 0x67, 0x6f, 0x2e, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x61,
|
||||
0x6d, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x66, 0x6f, 0x72, 0x74,
|
||||
0x75, 0x6e, 0x65, 0x74, 0x69, 0x67, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x52, 0x52, 0x4f, 0x4f, 0x4d, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0xfe, 0x2b, 0x12, 0x29, 0x0a, 0x24,
|
||||
0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49,
|
||||
0x47, 0x45, 0x52, 0x5f, 0x43, 0x53, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47,
|
||||
0x45, 0x52, 0x4f, 0x50, 0x10, 0xff, 0x2b, 0x12, 0x29, 0x0a, 0x24, 0x50, 0x41, 0x43, 0x4b, 0x45,
|
||||
0x54, 0x5f, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x5f, 0x53,
|
||||
0x43, 0x46, 0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x4f, 0x50, 0x10,
|
||||
0x80, 0x2c, 0x12, 0x30, 0x0a, 0x2b, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x46, 0x4f, 0x52,
|
||||
0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x5f, 0x53, 0x43, 0x46, 0x4f, 0x52, 0x54,
|
||||
0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x52, 0x4f, 0x4f, 0x4d, 0x53, 0x54, 0x41, 0x54,
|
||||
0x45, 0x10, 0x81, 0x2c, 0x12, 0x2d, 0x0a, 0x28, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x46,
|
||||
0x4f, 0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x5f, 0x53, 0x43, 0x46, 0x4f,
|
||||
0x52, 0x54, 0x55, 0x4e, 0x45, 0x54, 0x49, 0x47, 0x45, 0x52, 0x42, 0x49, 0x4c, 0x4c, 0x45, 0x44,
|
||||
0x10, 0x82, 0x2c, 0x42, 0x2c, 0x5a, 0x2a, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x2e, 0x67, 0x61, 0x6d,
|
||||
0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x66, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x65, 0x74, 0x69, 0x67, 0x65,
|
||||
0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
|
|
@ -686,15 +686,15 @@ var file_protocol_fortunetiger_fortunetiger_proto_enumTypes = make([]protoimpl.E
|
|||
var file_protocol_fortunetiger_fortunetiger_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||
var file_protocol_fortunetiger_fortunetiger_proto_goTypes = []interface{}{
|
||||
(FortuneTigerPID)(0), // 0: fortunetiger.FortuneTigerPID
|
||||
(*FortuneDragonPlayerData)(nil), // 1: fortunetiger.FortuneDragonPlayerData
|
||||
(*SCFortuneDragonRoomInfo)(nil), // 2: fortunetiger.SCFortuneDragonRoomInfo
|
||||
(*CSFortuneDragonOp)(nil), // 3: fortunetiger.CSFortuneDragonOp
|
||||
(*SCFortuneDragonOp)(nil), // 4: fortunetiger.SCFortuneDragonOp
|
||||
(*SCFortuneDragonRoomState)(nil), // 5: fortunetiger.SCFortuneDragonRoomState
|
||||
(*SCFortuneDragonBilled)(nil), // 6: fortunetiger.SCFortuneDragonBilled
|
||||
(*FortuneTigerPlayerData)(nil), // 1: fortunetiger.FortuneTigerPlayerData
|
||||
(*SCFortuneTigerRoomInfo)(nil), // 2: fortunetiger.SCFortuneTigerRoomInfo
|
||||
(*CSFortuneTigerOp)(nil), // 3: fortunetiger.CSFortuneTigerOp
|
||||
(*SCFortuneTigerOp)(nil), // 4: fortunetiger.SCFortuneTigerOp
|
||||
(*SCFortuneTigerRoomState)(nil), // 5: fortunetiger.SCFortuneTigerRoomState
|
||||
(*SCFortuneTigerBilled)(nil), // 6: fortunetiger.SCFortuneTigerBilled
|
||||
}
|
||||
var file_protocol_fortunetiger_fortunetiger_proto_depIdxs = []int32{
|
||||
1, // 0: fortunetiger.SCFortuneDragonRoomInfo.Player:type_name -> fortunetiger.FortuneDragonPlayerData
|
||||
1, // 0: fortunetiger.SCFortuneTigerRoomInfo.Player:type_name -> fortunetiger.FortuneTigerPlayerData
|
||||
1, // [1:1] is the sub-list for method output_type
|
||||
1, // [1:1] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
|
|
@ -709,7 +709,7 @@ func file_protocol_fortunetiger_fortunetiger_proto_init() {
|
|||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_protocol_fortunetiger_fortunetiger_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FortuneDragonPlayerData); i {
|
||||
switch v := v.(*FortuneTigerPlayerData); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
|
|
@ -721,7 +721,7 @@ func file_protocol_fortunetiger_fortunetiger_proto_init() {
|
|||
}
|
||||
}
|
||||
file_protocol_fortunetiger_fortunetiger_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*SCFortuneDragonRoomInfo); i {
|
||||
switch v := v.(*SCFortuneTigerRoomInfo); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
|
|
@ -733,7 +733,7 @@ func file_protocol_fortunetiger_fortunetiger_proto_init() {
|
|||
}
|
||||
}
|
||||
file_protocol_fortunetiger_fortunetiger_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CSFortuneDragonOp); i {
|
||||
switch v := v.(*CSFortuneTigerOp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
|
|
@ -745,7 +745,7 @@ func file_protocol_fortunetiger_fortunetiger_proto_init() {
|
|||
}
|
||||
}
|
||||
file_protocol_fortunetiger_fortunetiger_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*SCFortuneDragonOp); i {
|
||||
switch v := v.(*SCFortuneTigerOp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
|
|
@ -757,7 +757,7 @@ func file_protocol_fortunetiger_fortunetiger_proto_init() {
|
|||
}
|
||||
}
|
||||
file_protocol_fortunetiger_fortunetiger_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*SCFortuneDragonRoomState); i {
|
||||
switch v := v.(*SCFortuneTigerRoomState); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
|
|
@ -769,7 +769,7 @@ func file_protocol_fortunetiger_fortunetiger_proto_init() {
|
|||
}
|
||||
}
|
||||
file_protocol_fortunetiger_fortunetiger_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*SCFortuneDragonBilled); i {
|
||||
switch v := v.(*SCFortuneTigerBilled); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ enum FortuneTigerPID {
|
|||
PACKET_FORTUNETIGER_SCFORTUNETIGERBILLED = 5634;
|
||||
}
|
||||
|
||||
message FortuneDragonPlayerData {
|
||||
message FortuneTigerPlayerData {
|
||||
string Name = 1; //名字
|
||||
int32 SnId = 2; //账号
|
||||
int32 Head = 3; //头像
|
||||
|
|
@ -28,7 +28,7 @@ message FortuneDragonPlayerData {
|
|||
}
|
||||
//房间信息
|
||||
//PACKET_FORTUNETIGER_SCFORTUNETIGERROOMINFO
|
||||
message SCFortuneDragonRoomInfo {
|
||||
message SCFortuneTigerRoomInfo {
|
||||
int32 RoomId = 1; //房间id
|
||||
int32 GameFreeId = 2;
|
||||
int32 GameId = 3; //游戏id
|
||||
|
|
@ -38,31 +38,31 @@ message SCFortuneDragonRoomInfo {
|
|||
int32 State = 7; //房间当前状态
|
||||
repeated int64 ParamsEx = 8; //其他参数
|
||||
int32 SceneType = 9; //房间模式
|
||||
FortuneDragonPlayerData Player = 10; //房间内的玩家信息
|
||||
FortuneTigerPlayerData Player = 10; //房间内的玩家信息
|
||||
string PlayerInfo = 11;
|
||||
}
|
||||
//玩家操作
|
||||
//PACKET_FORTUNETIGER_CSFORTUNETIGEROP
|
||||
message CSFortuneDragonOp {
|
||||
message CSFortuneTigerOp {
|
||||
int32 OpCode = 1; //操作码 0.spin
|
||||
repeated int64 Params = 2; //操作参数 下注索引编号
|
||||
}
|
||||
//玩家操作返回
|
||||
//PACKET_FORTUNETIGER_SCFORTUNETIGEROP
|
||||
message SCFortuneDragonOp {
|
||||
message SCFortuneTigerOp {
|
||||
int32 OpCode = 1; //操作码
|
||||
int32 OpRetCode = 2; //操作结果 1.金币不足 2.低于该值不能押注
|
||||
repeated int64 Params = 3; //操作参数
|
||||
}
|
||||
//房间状态
|
||||
//PACKET_FORTUNETIGER_SCFORTUNETIGERROOMSTATE
|
||||
message SCFortuneDragonRoomState {
|
||||
message SCFortuneTigerRoomState {
|
||||
int32 State = 1; //房间当前状态
|
||||
int32 SubState = 2; //房间当前子状态
|
||||
repeated int32 Params = 3; //状态参数
|
||||
}
|
||||
//PACKET_FORTUNETIGER_SCFORTUNETIGERBILLED
|
||||
message SCFortuneDragonBilled{
|
||||
message SCFortuneTigerBilled{
|
||||
int32 OpRetCode = 1;//0.spin成功 1.spin失败
|
||||
string GameEndStr = 2;
|
||||
}
|
||||
Loading…
Reference in New Issue