Documentation ¶
Index ¶
- func OpenURL(path string) error
- type Ballpit
- type CreditSection
- type Credits
- type GPTOptions
- type HatMessage
- type Intro
- type Jukebox
- type Loading
- type Lobby
- func (s *Lobby) AddNetPlayer(ctx states.Context, peer *rnet.Peer)
- func (s *Lobby) CancelNetworking()
- func (s *Lobby) Draw(ctx states.DrawContext)
- func (s *Lobby) Enter(ctx states.Context, v interface{}) error
- func (s *Lobby) Finalize(ctx states.Context) error
- func (s *Lobby) GetNetPlayer(peer *rnet.Peer) *PlayerEntry
- func (s *Lobby) Init(ctx states.Context) error
- func (s *Lobby) JoinHost(address string) error
- func (s *Lobby) RemoveNetPlayer()
- func (s *Lobby) SendToNetPlayers(msg rnet.Message)
- func (s *Lobby) StartHost(address string) error
- func (s *Lobby) Update(ctx states.Context) error
- type Menu
- type PlayerEntry
- func (e *PlayerEntry) Draw(ctx states.DrawContext)
- func (e *PlayerEntry) Init(s *Lobby, ctx states.Context) error
- func (e *PlayerEntry) SetController(dir int)
- func (e *PlayerEntry) SetPlayer(player game.Player)
- func (e *PlayerEntry) SyncController(ctx states.Context)
- func (e *PlayerEntry) SyncDifficulty(ctx states.Context, i int)
- func (e *PlayerEntry) SyncHat(ctx states.Context)
- func (e *PlayerEntry) Update(ctx states.Context, offsetX float64) error
- type PreIntro
- type StartMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ballpit ¶
type Ballpit struct { }
func (*Ballpit) Draw ¶
func (s *Ballpit) Draw(ctx states.DrawContext)
type CreditSection ¶
type Credits ¶
type Credits struct {
// contains filtered or unexported fields
}
func (*Credits) Draw ¶
func (c *Credits) Draw(ctx states.DrawContext)
type GPTOptions ¶
type GPTOptions struct {
// contains filtered or unexported fields
}
func (*GPTOptions) Draw ¶
func (s *GPTOptions) Draw(ctx states.DrawContext)
type HatMessage ¶
type HatMessage struct {
Hat int
}
func (HatMessage) Ident ¶
func (m HatMessage) Ident() uint8
func (HatMessage) ToBytes ¶
func (m HatMessage) ToBytes() (b []byte)
type Intro ¶
type Intro struct {
// contains filtered or unexported fields
}
func (*Intro) Draw ¶
func (i *Intro) Draw(ctx states.DrawContext)
type Jukebox ¶
type Jukebox struct {
// contains filtered or unexported fields
}
func (*Jukebox) Draw ¶
func (j *Jukebox) Draw(ctx states.DrawContext)
type Loading ¶
type Loading struct {
// contains filtered or unexported fields
}
func (*Loading) Draw ¶
func (l *Loading) Draw(ctx states.DrawContext)
type Lobby ¶
type Lobby struct {
// contains filtered or unexported fields
}
func (*Lobby) CancelNetworking ¶
func (s *Lobby) CancelNetworking()
func (*Lobby) Draw ¶
func (s *Lobby) Draw(ctx states.DrawContext)
func (*Lobby) GetNetPlayer ¶
func (s *Lobby) GetNetPlayer(peer *rnet.Peer) *PlayerEntry
func (*Lobby) RemoveNetPlayer ¶
func (s *Lobby) RemoveNetPlayer()
func (*Lobby) SendToNetPlayers ¶
type Menu ¶
type Menu struct {
// contains filtered or unexported fields
}
func (*Menu) Draw ¶
func (m *Menu) Draw(ctx states.DrawContext)
type PlayerEntry ¶
type PlayerEntry struct {
// contains filtered or unexported fields
}
PlayerEntry represents the lobby entry for a player.
func (*PlayerEntry) Draw ¶
func (e *PlayerEntry) Draw(ctx states.DrawContext)
func (*PlayerEntry) SetController ¶
func (e *PlayerEntry) SetController(dir int)
func (*PlayerEntry) SetPlayer ¶
func (e *PlayerEntry) SetPlayer(player game.Player)
func (*PlayerEntry) SyncController ¶
func (e *PlayerEntry) SyncController(ctx states.Context)
func (*PlayerEntry) SyncDifficulty ¶
func (e *PlayerEntry) SyncDifficulty(ctx states.Context, i int)
func (*PlayerEntry) SyncHat ¶
func (e *PlayerEntry) SyncHat(ctx states.Context)
type PreIntro ¶
type PreIntro struct {
// contains filtered or unexported fields
}
func (*PreIntro) Draw ¶
func (p *PreIntro) Draw(ctx states.DrawContext)
type StartMessage ¶
type StartMessage struct { }
func (StartMessage) Ident ¶
func (m StartMessage) Ident() uint8
func (StartMessage) ToBytes ¶
func (m StartMessage) ToBytes() (b []byte)
Click to show internal directories.
Click to hide internal directories.