spot_session

package
v0.0.0-...-fee577c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpotSession

type SpotSession struct {
	sync.RWMutex

	ZoneController *zone.Controller

	DamageController *damage.Controller

	GameController *game_controller.GameController
	// Channel for sending game event (one of StartGameEvent, EndGameEvent)
	GameEventBroadcaster *broadcast.Broadcaster
	LastGameEvent        interface{}

	// Map with players posiiton
	//
	// key - player uuid
	// value - player state
	PlayersStateMap *player_state.PlayerStateMap
	// contains filtered or unexported fields
}

func NewSpotSession

func NewSpotSession(spotId uuid.UUID, spotPosition s2.LatLng, spotRadiusInM float32, nextZonePeriod time.Duration, duration time.Duration) *SpotSession

func (*SpotSession) Close

func (ss *SpotSession) Close()

func (*SpotSession) NewPlayersState

func (ss *SpotSession) NewPlayersState(key uuid.UUID, value *player_state.PlayerState) error

func (*SpotSession) Start

func (ss *SpotSession) Start(hunterUuid uuid.UUID, playersList *player_list.PlayerList) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL