config

package
v0.0.0-...-f84f93e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseToml

func ParseToml(file string) error

ParseToml 解析配置文件

Types

type Config

type Config struct {
	Operate_timeout     int
	Trusteeship_timeout int

	Db_addr        string
	Server_port    string
	Server_ip      string
	Oprof_port     string
	Web_port       string
	Pay_port       string
	Pay_wx_pattern string

	Share_addr string
	Server_id  int
	Version    string

	AdminPort string

	// 可选买子数量
	SelectMaiziCt []uint32
	// 可选牌局数量
	SelectGameCountCt []uint32

	// 底分
	Ante uint32

	// 房卡价格
	Price []uint32
}

Config 配置类型

func Opts

func Opts() Config

Opts 获取配置

type FangKa

type FangKa struct {
	ID     int
	Name   string
	Count  int
	Price  int
	Reward int
}

房卡

type Room

type Room struct {
	Name       string   // 房间名称
	BasMoney   int64    // 底注
	MinMoney   int64    // 最小准入
	Tip        int      // 台费 (百分比 0 - 100)
	RaiseChips [4]int64 // 固定加注额度
}

Room 房间

type RoomCard

type RoomCard struct {
	PlayCt   int32 // 创建房间局数
	NeedCard int32 // 所需房卡数
}

创建房间房卡

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL