| 123456789101112131415161718192021 |
- package events
- import (
- "battlecamp-go/player"
- )
- type GameStart struct {
- Type string `json:"type"`
- GameId int64 `json:"gameId"`
- }
- type GameEnd struct {
- Type string `json:"type"`
- GameId int64 `json:"gameId"`
- Payload string `json:"payload"`
- }
- type PlayerUpdate struct {
- GameId int64 `json:"gameId"`
- Players []*player.Player `json:"players"`
- }
|