Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlayerPublicState ¶
type PlayerState ¶
type PlayerState struct { Position s2.LatLng Health float32 // Flag shows status of non-hunter player // Will be true, if player was caught by hunter IsCaught bool // Channel for sending state about players states Broadcaster *broadcast.Broadcaster }
func NewPlayerState ¶
func NewPlayerState() *PlayerState
type PlayerStateMap ¶
func NewPlayerStateMap ¶
func NewPlayerStateMap() *PlayerStateMap
func (*PlayerStateMap) Delete ¶
func (m *PlayerStateMap) Delete(key uuid.UUID)
func (*PlayerStateMap) Load ¶
func (m *PlayerStateMap) Load(key uuid.UUID) (value *PlayerState, ok bool)
func (*PlayerStateMap) Range ¶
func (m *PlayerStateMap) Range(f func(k uuid.UUID, v *PlayerState))
func (*PlayerStateMap) Store ¶
func (m *PlayerStateMap) Store(key uuid.UUID, value *PlayerState)
Click to show internal directories.
Click to hide internal directories.