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
Click to show internal directories.
Click to hide internal directories.