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 FakeCreateAccountInput ¶
func FakeCreateAccountInput()
FakeCreateAccountInput instance a new CreateAccountInput
func FakeCreateCharacterInput ¶
func FakeCreateCharacterInput()
FakeCreateCharacterInput instance a new CreateCharacterInput
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
Click to show internal directories.
Click to hide internal directories.