Package Name
lobbymgr
Import
import "github.com/moxcomic/Archer/mgr/lobbymgr"
Method List
Name | Parameters | Return Value | Notes |
---|---|---|---|
Inst | None | *lobbymgr.LobbyMgr | Lobby manager instance |
Instance Methods
Name | Parameters | Return Value | Notes |
---|---|---|---|
Enable | None | bool | Returns whether the user is on the game lobby page |
Example Code
package main
import (
"github.com/moxcomic/Archer/mgr/lobbymgr"
)
func onLogin() {
if lobbymgr.Inst.Enable() {
// 在游戏大厅页面
// On the game lobby page
} else {
// 不在游戏大厅页面
// Not on the game lobby page
}
}