application

package
v0.0.0-...-1f2d2fe Latest Latest
Warning

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

Go to latest
Published: May 1, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CharacterProducer

func CharacterProducer(slot uint32) *actor.Props

Types

type Character

type Character struct {
	Slot uint32
}

func (*Character) Receive

func (c *Character) Receive(context actor.Context)

type World

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

func NewWorld

func NewWorld(connectionsRepo domain.ConnectionsRepository, relayPublisher domain.RelayPublisher) *World

func (*World) OnConnect

func (w *World) OnConnect(ctx context.Context, clientId string)

func (*World) OnDisconnect

func (w *World) OnDisconnect(ctx context.Context, clientId string)

func (*World) OnMessage

func (w *World) OnMessage(ctx context.Context, msg *WorldMessage)

type WorldMessage

type WorldMessage struct {
	ClientID string
	Packet   proto.Message
}

Jump to

Keyboard shortcuts

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