Documentation
¶
Index ¶
- Constants
- type AccountInfo
- type IPratyAccount
- type Info
- func (p *Info) GetMoney() int64
- func (p *Info) GetMoneyU() uint64
- func (p Info) IsCheckOut() bool
- func (p Info) IsInGameRoom() bool
- func (p Info) ResultMap() map[string]interface{}
- func (p *Info) SetMoney(value int64)
- func (p *Info) SumMoney(value int64) int64
- func (p Info) ToJSONClient() map[string]interface{}
Constants ¶
View Source
const ( None = iota Guest Self Ulg )
Account Type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInfo ¶
type AccountInfo struct {
Account string `json:"Account"`
GameAccount string `json:"GameAccount"`
AccountType int64 `json:"AccountType"`
LoginTime int64 `json:"LoginTime"`
AccountToken string `json:"AccountToken"` // platform AccountToken
Token string `json:"Token"` // Server Token
}
AccountInfo ...
func NewAccountInfo ¶
func NewAccountInfo(account, gameAccount, token string, accountType int64) AccountInfo
NewAccountInfo ...
type IPratyAccount ¶
type IPratyAccount interface {
PartyAccount() string
GameAccount(string) string
AccountType() int64
}
IPratyAccount thirdparty api interface
type Info ¶
type Info struct {
IDStr string `json:"IDStr"`
ID int64 `json:"ID"`
// Money int64 `json:"Money"`
MoneyU uint64 `json:"MoneyU"`
GameAccount string `json:"GameAccount"`
Name string `json:"Name"`
///////// for Server value
GameToken string `json:"GameToken,omitempty"`
InRoom int `json:"InRoom,omitempty"` // room index
LastCheckTime int64 `json:"LastCheckTime,omitempty"` // connect check time
InGame string `json:"InGame,omitempty"` // gametype
}
Info Player information
Click to show internal directories.
Click to hide internal directories.