基本游戏玩家和登录扩展实现

This commit is contained in:
kercylan98 2023-04-22 13:33:18 +08:00
parent 973ea1fd3d
commit 26674fefa5
1 changed files with 6 additions and 0 deletions

View File

@ -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 // 登录时间