types

package
v0.0.0-...-e8fd0d8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2017 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SESS_KICKED_OUT = 0x1 // 踢掉
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	Flag   int32 // 会话标记
	UserId int32
}

会话: 会话是一个单独玩家的上下文,在连入后到退出前的整个生命周期内存在 根据业务自行扩展上下文

type User

type User struct {
	Id            int32
	Name          string
	Level         uint8
	Score         int32
	LastLoginTime int64
	CreateTime    int64
}

一个DEMO的User定义

Jump to

Keyboard shortcuts

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