line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Declare our package |
2
|
|
|
|
|
|
|
package Games::AssaultCube::Log::Line::DemoStart; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
# import the Moose stuff |
5
|
1
|
|
|
1
|
|
2734
|
use Moose; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# Initialize our version |
8
|
|
|
|
|
|
|
use vars qw( $VERSION ); |
9
|
|
|
|
|
|
|
$VERSION = '0.04'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
extends 'Games::AssaultCube::Log::Line::Base'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
has 'tostr' => ( |
14
|
|
|
|
|
|
|
isa => 'Str', |
15
|
|
|
|
|
|
|
is => 'ro', |
16
|
|
|
|
|
|
|
lazy => 1, |
17
|
|
|
|
|
|
|
default => sub { |
18
|
|
|
|
|
|
|
my $self = shift; |
19
|
|
|
|
|
|
|
return "Demo recording started"; |
20
|
|
|
|
|
|
|
}, |
21
|
|
|
|
|
|
|
); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# TODO improve validation for everything here, ha! |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
no Moose; |
26
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
__END__ |
30
|
|
|
|
|
|
|
=head1 NAME |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
Games::AssaultCube::Log::Line::DemoStart - Describes the DemoStart event in a log line |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 ABSTRACT |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Describes the DemoStart event in a log line |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 DESCRIPTION |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
This module holds the "DemoStart" event data from a log line. Normally, you would not use this class directly |
41
|
|
|
|
|
|
|
but via the L<Games::AssaultCube::Log::Line> class. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
This line is emitted when the AC server starts recording a demo. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head2 Attributes |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Those attributes hold information about the event. As this class extends the L<Games::AssaultCube::Log::Line::Base> |
48
|
|
|
|
|
|
|
class, you can also use it's attributes too. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
No extra attributes. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 AUTHOR |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Apocalypse E<lt>apocal@cpan.orgE<gt> |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Props goes to the BS clan for the support! |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
This project is sponsored by L<http://cubestats.net> |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Copyright 2009 by Apocalypse |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
65
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=cut |