| 1 | # Declare our package | ||
| 2 | package Games::AssaultCube::Log::Line::FlagReturned; | ||
| 3 | |||
| 4 | # import the Moose stuff | ||
| 5 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | # Initialize our version | ||
| 8 | 2 | ▶ | use vars qw( $VERSION ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 2 | $VERSION = '0.04'; | |
| 10 | |||
| 11 | 2 | extends 'Games::AssaultCube::Log::Line::FlagStole'; | |
| 12 | |||
| 13 | has 'tostr' => ( | ||
| 14 | isa => 'Str', | ||
| 15 | is => 'ro', | ||
| 16 | lazy => 1, | ||
| 17 | 0 | ▶ | default => sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 18 | 0 | my $self = shift; | |
| 19 | 0 | return $self->nick . " returned the flag"; | |
| 20 | }, | ||
| 21 | 2 | ); | |
| 22 | |||
| 23 | 2 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | 2 | __PACKAGE__->meta->make_immutable; | |
| 25 | |||
| 26 | 2 | 1; | |
| 27 | __END__ | ||