Documentation
¶
Overview ¶
Package motiontest is what motion's tests share: an installer and a world with motion, stepped as a game steps it.
Index ¶
- func Start(t testing.TB, w *world.Plugin, m *motion.Plugin, rules []act.Rule, ...) *goke.ECS
- func Step(w *world.Plugin, m *motion.Plugin) func(goke.RunCtx, time.Duration)
- type InstallCtx
- func (c *InstallCtx) Draws(...render.Source)
- func (c *InstallCtx) ECS() *goke.ECS
- func (c *InstallCtx) Hosts(h ...host.Host)
- func (c *InstallCtx) Looks(func())
- func (*InstallCtx) Pool() *parallel.Pool
- func (c *InstallCtx) RegSys(factory func() goke.System) goke.Runnable
- func (c *InstallCtx) Setup(providers ...goke.SetupProvider)
- func (c *InstallCtx) UseModule(m goke.Module)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InstallCtx ¶
type InstallCtx struct {
// contains filtered or unexported fields
}
InstallCtx is the plugin.Installer a Stage would hand over, minus the engine.
func (*InstallCtx) Draws ¶
func (c *InstallCtx) Draws(...render.Source)
func (*InstallCtx) ECS ¶
func (c *InstallCtx) ECS() *goke.ECS
func (*InstallCtx) Hosts ¶
func (c *InstallCtx) Hosts(h ...host.Host)
Hosts keeps the hosts a plugin tells of.
func (*InstallCtx) Looks ¶
func (c *InstallCtx) Looks(func())
func (*InstallCtx) Pool ¶ added in v0.4.0
func (*InstallCtx) Pool() *parallel.Pool
func (*InstallCtx) Setup ¶
func (c *InstallCtx) Setup(providers ...goke.SetupProvider)
func (*InstallCtx) UseModule ¶
func (c *InstallCtx) UseModule(m goke.Module)