Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

雀魂脚本模版(Mahjong Soul Script Template) #3

Open
moxcomic opened this issue Oct 28, 2023 · 0 comments
Open

雀魂脚本模版(Mahjong Soul Script Template) #3

moxcomic opened this issue Oct 28, 2023 · 0 comments

Comments

@moxcomic
Copy link
Owner

package main

import (
  "github.com/moxcomic/lq"
)

func onLogin() {
  // 登录时调用一次
}

func onNewRound() {
  // 每一小局开始时调用一次
}

func onConfirmNewRound() {
  // 每一小局结束时调用一次
}

func onPlayerLeaving(seat int) {
  // 有玩家断线时调用
  // 0:自己 1:下家 2:对家 3:上家
}

func onExecute(result *lq.NotifyAIResult, risk []float64, rating, matches, fivePer, tenPer float64) {
  // AI返回计算结果时调用一次
}

func onGameEnd() {
  // 对局结束时调用一次
}
@moxcomic moxcomic pinned this issue Oct 28, 2023
@moxcomic moxcomic unpinned this issue Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant