ArcherArcher
Home
Quick Start
Project Introduction
  • 简体中文
  • English
Home
Quick Start
Project Introduction
  • 简体中文
  • English
  • Home
  • Basic Configuration

    • Project Introduction
    • Quick Start
    • FAQ
    • Contact Us
  • Advanced Development

    • Basic Knowledge
    • Basic Framework
    • Majsoul Development

      • Tile Names

        • Basic
      • Manager

        • Lobby Manager
      • Game Interfaces

        • Basic
      • LQ

        • Basic
      • Action Types

        • Basic
      • Game State

        • Basic
      • Login Event

        • Login Event
        • Advanced - Mahjong Event Login
      • Discard Actions

        • Basics
        • Advanced
      • Chii (Eat)
      • Pon
      • Kong
      • Cancel, Skip
  • Plugin System

    • Basic Usage
    • Resource Plugin Development
  • Auto Review

    • Automatic Review
  • Tenhou Room

    • Playing in Tenhou Private Room with Mortal Bot

Package Name

  • lobbymgr

Import

  • import "github.com/moxcomic/Archer/mgr/lobbymgr"

Method List

NameParametersReturn ValueNotes
InstNone*lobbymgr.LobbyMgrLobby manager instance

Instance Methods

NameParametersReturn ValueNotes
EnableNoneboolReturns 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
  }
}