fms

package
v0.0.0-...-d361f56 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapServer

type MapServer struct {
	sync.Mutex

	UpdateInterval time.Duration
	// contains filtered or unexported fields
}

func NewMapServer

func NewMapServer(i *freeroam.Server, config freeroam.FMSConfig) *MapServer

func (*MapServer) Handle

func (s *MapServer) Handle(w http.ResponseWriter, r *http.Request)

func (*MapServer) Run

func (s *MapServer) Run()

func (*MapServer) SendPlayers

func (s *MapServer) SendPlayers()

type PlayerInfo

type PlayerInfo struct {
	Name     string `json:"name"`
	X        int    `json:"x"`
	Y        int    `json:"y"`
	Rotation int    `json:"rotation"`
}

Jump to

Keyboard shortcuts

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