runner

package
v0.0.0-...-5fc1a02 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunnerClient

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

func StartRunner

func StartRunner(config *config.Config) (client *RunnerClient, err error)

StartRunner creates a new process to execute the AI runner. `code` is used as the AI's source.

func (*RunnerClient) Close

func (client *RunnerClient) Close()

Close closes the connection to the AI runner

func (*RunnerClient) Load

func (client *RunnerClient) Load(source string) error

func (*RunnerClient) Tick

func (client *RunnerClient) Tick(player protocol.Entity, state protocol.WorldState) (protocol.TickResult, error)

Tick runs a tick in the AI runner, and waits for the result

Jump to

Keyboard shortcuts

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