state-machine ~master (2022-03-22T06:56:00.8510032)
Dub
Repo
StateMachine.opDispatch
state_machine
base
StateMachine
Undocumented in source. Be warned that the author may not have intended to support it.
string
[]
opDispatch
[@property getter]
typeof
(
variable
)[
string
]
opDispatch
[@property getter]
bool
opDispatch
[@property getter]
typeof
(
variable
)
opDispatch
()
void
opDispatch
()
bool
opDispatch
()
mixintemplate
StateMachine
(alias variable, states...)
bool
opDispatch
(
string
op
)
(
)
if
(
op.length
> 2 &&
op
[0 .. 2] == "to"
&&
[
__states__
].
map
!
toTitle.countUntil
(
op
[2 .. $]) != -1
)
if
(
(
(
is
(
typeof
(
variable
) :
int
) ||
is
(
typeof
(
variable
) :
string
)
)
&&
states.length
> 0
)
||
(
is
(
typeof
(
variable
) == enum) &&
states.length
== 0
)
)
Meta
Source
See Implementation
state_machine
base
StateMachine
properties
opDispatch