tsssdk

package
v0.0.0-...-135b9b9 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAddPlayerFailed = errors.New("TSSSDK add player failed")

ErrAddPlayerFailed 增加用户失败

View Source
var ErrDelPlayerFailed = errors.New("TSSSDK del player failed")

ErrDelPlayerFailed 删除用户失败

View Source
var ErrJudgeNameFailed = errors.New("TSSSDK UIC Judge Name Failed")

ErrJudgeNameFailed 检测失败

View Source
var ErrNotInited = errors.New("SDK not inited")

ErrNotInited SDK未初始化

View Source
var ErrTransAntiDataFailed = errors.New("TSSSDK transport anti data failed")

ErrTransAntiDataFailed 删除用户失败

Functions

func Destroy

func Destroy()

Destroy 销毁

func Init

func Init(uid uint64)

Init 初始化

func JudgeUserInputName

func JudgeUserInputName(name string) (bool, error)

JudgeUserInputName 检测名字是否合法

func OnPlayerLogin

func OnPlayerLogin(entityid uint64, openid string, platid uint8, worldid uint32, roleid uint64, clientver uint32, clientip string, rolename string) error

OnPlayerLogin 用户登录时

func OnPlayerLogout

func OnPlayerLogout(entityid uint64, openid string, platid uint8, worldid uint32, roleid uint64) error

OnPlayerLogout 玩家登出时

func OnRecvAntiData

func OnRecvAntiData(entityid uint64, openid string, platid uint8, worldid uint32, roleid uint64, antidata []byte) error

OnRecvAntiData 收到数据

Types

This section is empty.

Jump to

Keyboard shortcuts

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