client

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CreateAccountInput    *inputs.CreateAccountInput
	UsedCreateAccountFlow CreateAccountFlow
	Account               *entities.Account

	CreateCharacterInput    *inputs.CreateCharacterInput
	UsedCreateCharacterFlow CreateCharacterFlow
	Character               *entities.Character

	AuthAccountInput    inputs.AuthAccountInput
	SpawnCharacterInput inputs.SpawnCharacterInput
	UsedSessionFlow     SessionFlow
	Session             *outputs.StartSessionOutput

	UsedGameFlow       GameFlow
	MoveCharacterInput inputs.MoveCharacterInput
)

Client flow vars

Functions

func BotFlow

func BotFlow()

BotFlow loop

func FakeCreateAccountInput

func FakeCreateAccountInput()

FakeCreateAccountInput instance a new CreateAccountInput

func FakeCreateCharacterInput

func FakeCreateCharacterInput()

FakeCreateCharacterInput instance a new CreateCharacterInput

func FakeName

func FakeName() string

FakeName generator

Types

type CreateAccountFlow

type CreateAccountFlow interface {
	CreateAccountOperation(in *inputs.CreateAccountInput) (*entities.Account, bool)
}

CreateAccountFlow used in client

type CreateCharacterFlow

type CreateCharacterFlow interface {
	CreateCharacterOperation(in *inputs.CreateCharacterInput) (*entities.Character, bool)
}

CreateCharacterFlow used in client

type GameFlow

type GameFlow interface {
	GameLoop() bool
	MoveCharacter(in inputs.MoveCharacterInput) (*outputs.CheckSessionOutput, bool)
	SendChat(in inputs.ChatInput) (*outputs.CheckSessionOutput, bool)
	ListenChat(in inputs.ChatInput) (*outputs.ListenMessagesOutput, bool)
}

GameFlow used play the game

type SessionFlow

type SessionFlow interface {
	StartSession(in inputs.AuthAccountInput) (*outputs.StartSessionOutput, bool)
	SpawnCharacter(in inputs.SpawnCharacterInput) (*outputs.CheckSessionOutput, bool)
}

SessionFlow used in client

Jump to

Keyboard shortcuts

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