MCPcopy Create free account
hub / github.com/FloatTech/ZeroBot-Plugin-Playground / checkJoin

Method checkJoin

plugin/partygame/sessionAct.go:145–153  ·  view source on GitHub ↗

判断是否在队伍中

(uid int64)

Source from the content-addressed store, hash-verified

143
144// 判断是否在队伍中
145func (cls Session) checkJoin(uid int64) bool {
146 // 判断是否在参与者列表中
147 for _, j := range cls.Users {
148 if j == uid {
149 return true
150 }
151 }
152 return false
153}
154
155// 判断是否轮到用户
156func (cls Session) checkTurn(uid int64) bool {

Callers 1

initFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected