feat: 添加测试handler,danmaku原样返回。
parent
73c0c1a7ae
commit
0cf2f7e5a2
@ -0,0 +1,19 @@
|
||||
package live_logic
|
||||
|
||||
import (
|
||||
pbRoom "dcg/game/pb/room"
|
||||
"dcg/game/svc"
|
||||
)
|
||||
|
||||
type TestGameLogic struct {
|
||||
svcCtx *svc.ServiceContext
|
||||
*LiveGameLogic
|
||||
}
|
||||
|
||||
func NewTestLiveGameLogic(svcCtx *svc.ServiceContext) *LiveGameLogic {
|
||||
resp := &TestGameLogic{
|
||||
svcCtx: svcCtx,
|
||||
LiveGameLogic: NewLiveGameLogic(pbRoom.GameType_ZHG, nil),
|
||||
}
|
||||
return resp.LiveGameLogic
|
||||
}
|
Loading…
Reference in New Issue