fix(play): def_command

This commit is contained in:
same mf who else 2026-03-25 22:27:31 +02:00
parent cf57f44933
commit 30d378a6ee

View file

@ -71,11 +71,11 @@ impl Thread {
// FIXME: support attrs (docstrings) // FIXME: support attrs (docstrings)
$($Variant $({ $($arg: $Arg),* })?),* $($Variant $({ $($arg: $Arg),* })?),*
} }
impl ::tengri::Command<$State> for $Command { impl ::tengri::dizzle::Act<$State> for $Command {
fn execute (&self, $state: &mut $State) -> Perhaps<Self> { fn act (&self, $state: &mut $State) -> Perhaps<Self> {
match self { match self {
$(Self::$Variant $({ $($arg),* })? => $body,)* $(Self::$Variant $({ $($arg),* })? => $body,)*
_ => unimplemented!("Command<{}>: {self:?}", stringify!($State)), _ => unimplemented!("Act<{}>: {self:?}", stringify!($State)),
} }
} }
} }