基本游戏玩家和登录扩展实现
This commit is contained in:
parent
973ea1fd3d
commit
26674fefa5
|
@ -5,6 +5,12 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
func NewPlayerLoginLauncher[PlayerID comparable](player game.Player[PlayerID]) *PlayerLoginLauncher[PlayerID] {
|
||||
return &PlayerLoginLauncher[PlayerID]{
|
||||
Player: player,
|
||||
}
|
||||
}
|
||||
|
||||
type PlayerLoginLauncher[PlayerID comparable] struct {
|
||||
game.Player[PlayerID]
|
||||
loggedTime time.Time // 登录时间
|
||||
|
|
Loading…
Reference in New Issue