-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
Rn we need to look at the implementation logparser.go to figure out what Data each event holds. Might be worth having concrete event struct per events:
type PlayerJoinedEvent struct {
Name string
Time time.Time
...
}
type PlayerSayEvent struct {
Name string
Message string
...
}then on the receiver side:
ev := <-wpr.GameEvents()
if ev.Type == events.PlayerSayEvent {
playerSayEv := ev.(events.PlayerSayEvent)
}Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed