session

package
v0.0.0-...-36a93ca Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Player

type Player struct {
	ID             uint32
	UDPAddr        *net.UDPAddr
	Reliable       *pulsenet.ReliableChannel
	InputBuffer    map[uint16]game.InputPacket
	Entity         *game.Entity
	LastSnapshot   map[uint32]game.SnapshotEntry
	LastAckedInput uint16
}

type Session

type Session struct {
	Players  map[uint32]*Player
	Entities map[uint32]*game.Entity
	World    map[game.SectorCoord][]game.Entity
}

func NewSession

func NewSession() *Session

Source Files

  • player.go
  • session.go

Jump to

Keyboard shortcuts

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