| 1 | package Exobrain::Intent::HabitRPG; | ||
| 2 | |||
| 3 | use v5.10.0; | ||
| 4 | use Moose; | ||
| 5 | use Method::Signatures; | ||
| 6 | |||
| 7 | |||
| 8 | method summary() { | ||
| 9 | return join(' ' , "HabitRPG: Move" , $self->task, $self->direction); | ||
| 10 | } | ||
| 11 | |||
| 12 | BEGIN { with 'Exobrain::Intent'; }; | ||
| 13 | |||
| 14 | payload task => ( isa => 'Str' , required => 1 ); | ||
| 15 | payload direction => ( isa => 'Str' , required => 1 ); # TODO - Restrict to up/down | ||
| 16 | |||
| 17 | 1; | ||
| 18 | |||
| 19 | __END__ |