game

package
v0.0.0-...-7de579e Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Name() string

	Id() int32

	PartyName() string

	PartyId() int32

	PartyPlayers() map[int32]PartyPlayer

	SendPacket(packet []byte)
}

type Creator

type Creator func(client Client) Game

type Game

type Game interface {
	HandleGameStarted()

	HandleGameEnded()

	HandlePacket(packet []byte) error

	Draw(screen *ebiten.Image)

	Update()

	Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)
}

type PartyPlayer

type PartyPlayer struct {
	Name string
	Id   int32
}

type Type

type Type struct {
	Creator     Creator
	Name        string
	DisplayName string
}

Jump to

Keyboard shortcuts

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