onefile

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGame

func NewGame(sendQueue chan interface{}) cos.Game

NewGame initializes a new Game which can send packets using the given sendQueue

func RunExample

func RunExample()

RunExample actually executes the example; typically this would be just called main() and the package would be main

Types

type Game

type Game struct {
	// contains filtered or unexported fields
}

Game typically goes in a different file and is your implementation of cos.Game

func (*Game) OnDisconnected

func (g *Game) OnDisconnected()

func (*Game) OnReceiveMessage

func (g *Game) OnReceiveMessage(packet srvpkts.Packet)

func (*Game) Tick

func (g *Game) Tick(delta time.Duration)

Jump to

Keyboard shortcuts

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