gametask

package
v0.0.0-...-10e2223 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameTask

type GameTask struct {
	SessionConn *rpc.Client
	WorldRules  *domain.WorldRules
}

GameTask handle game requests

func New

func New() *GameTask

New constructor

func (*GameTask) ListenChat

func (task *GameTask) ListenChat(in inputs.ChatInput, out *outputs.ListenMessagesOutput) error

ListenChat task

func (*GameTask) MoveCharacter

func (task *GameTask) MoveCharacter(in inputs.MoveCharacterInput, out *outputs.CheckSessionOutput) error

MoveCharacter task

func (*GameTask) SendChat

func (task *GameTask) SendChat(in inputs.ChatInput, out *outputs.CheckSessionOutput) error

SendChat task

func (*GameTask) SpawnCharacter

func (task *GameTask) SpawnCharacter(in inputs.SpawnCharacterInput, out *outputs.CheckSessionOutput) error

SpawnCharacter task

Jump to

Keyboard shortcuts

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