Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NoneEventKey = "none_event" // 未使用 PlayerLoginKey = "player_login" // 角色登陆事件 PlayerLogoutKey = "player_logout" // 角色登出事件 PlayerCreateKey = "player_create" // 角色创建事件 )
Functions ¶
This section is empty.
Types ¶
type PlayerCreate ¶
func NewPlayerCreate ¶
func NewPlayerCreate(playerId int64, playerName string, gender int32) PlayerCreate
func (PlayerCreate) Name ¶
func (PlayerCreate) Name() string
func (PlayerCreate) UniqueId ¶
func (p PlayerCreate) UniqueId() int64
type PlayerLogin ¶
type PlayerLogin struct { ActorId string // actor id PlayerId int64 // player id LoginDays int // 累计登录天数(每天+1) ContinueDays int // 连续登录天数(超过一天则归零) MaxContinueDays int // 最大连续登录天数 }
func NewPlayerLogin ¶
func NewPlayerLogin(actorId string, playerId int64) PlayerLogin
func (PlayerLogin) Name ¶
func (PlayerLogin) Name() string
func (PlayerLogin) UniqueId ¶
func (p PlayerLogin) UniqueId() int64
type PlayerLogout ¶
func NewPlayerLogout ¶
func NewPlayerLogout(actorId string, playerId int64) PlayerLogout
func (PlayerLogout) Name ¶
func (PlayerLogout) Name() string
func (PlayerLogout) UniqueId ¶
func (p PlayerLogout) UniqueId() int64
Click to show internal directories.
Click to hide internal directories.