package event type PlayerLogout struct { ActorId string // actor id PlayerId string // player id } func NewPlayerLogout(actorId string, playerId string) PlayerLogout { event := PlayerLogout{ ActorId: actorId, PlayerId: playerId, } return event } func (PlayerLogout) Name() string { return PlayerLogoutKey } func (p PlayerLogout) UniqueId() string { return p.PlayerId }