event

package
v1.3.13 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 0 Imported by: 0

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

type PlayerCreate struct {
	PlayerId   int64
	PlayerName string
	Gender     int32
}

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

type PlayerLogout struct {
	ActorId  string // actor id
	PlayerId int64  // player id
}

func NewPlayerLogout

func NewPlayerLogout(actorId string, playerId int64) PlayerLogout

func (PlayerLogout) Name

func (PlayerLogout) Name() string

func (PlayerLogout) UniqueId

func (p PlayerLogout) UniqueId() int64

Jump to

Keyboard shortcuts

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