TimeMachine

A time machine makes it possible to programmatically adjust and skip time that is used by Fluid nodes.

The main use of a TimeMachine is to artificially control passage of time while running tests. This means that a test can imitate a change in time without waiting for it, speeding up tests.

Constructors

this
this(Node next)
Undocumented in source.

Members

Functions

afterResize
void afterResize(Vector2 )
Undocumented in source. Be warned that the author may not have intended to support it.
beforeResize
void beforeResize(Vector2 )
Undocumented in source. Be warned that the author may not have intended to support it.
now
MonoTime now()
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
TimeMachine opOpAssign(Duration rhs)

Add, or subtract time from the machine's clock.

Mixins

__anonymous
mixin controlIO
Undocumented in source.

Variables

time
MonoTime time;
Undocumented in source.

Inherited Members

From NodeChain

next
Node next(Node value)

Set the next node in chain.

next
inout(Node) next()
nextChain
inout(NodeChain) nextChain()
beforeResize
void beforeResize(Vector2 space)
Undocumented in source. Be warned that the author may not have intended to support it.
afterResize
void afterResize(Vector2 space)
Undocumented in source. Be warned that the author may not have intended to support it.
beforeDraw
void beforeDraw(Rectangle outer, Rectangle inner)
Undocumented in source. Be warned that the author may not have intended to support it.
afterDraw
void afterDraw(Rectangle outer, Rectangle inner)
Undocumented in source. Be warned that the author may not have intended to support it.
resizeImpl
void resizeImpl(Vector2 space)
Undocumented in source. Be warned that the author may not have intended to support it.
drawImpl
void drawImpl(Rectangle outer, Rectangle inner)
Undocumented in source. Be warned that the author may not have intended to support it.

From TimeIO

now
MonoTime now()
timeSince
Duration timeSince(MonoTime event)

See Also

core.time.MonoTime, fluid.io.time.TimeIO

Meta