« blib/lib/Aion/Emitter/ListenersRun.pm
↑ Summary
/tmp/.liveman/Aion-Emitter-0.1.2-0/aion!emitter.t/lib/Listener/RadiusListener.pm »
| 1 | package Listener::WeightListener; | ||
| 2 | |||
| 3 | 1 | ▶ | use Aion; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | #@listen Event::BallEvent | ||
| 6 | 1 | ▶ | sub listen { |
|
Subroutine
listen: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 7 | 1 | my ($self, $event) = @_; | |
| 8 | |||
| 9 | 1 | $event->weight(12); | |
| 10 | } | ||
| 11 | |||
| 12 | #@listen Event::BallEvent#mini „Minimize version” | ||
| 13 | 1 | ▶ | sub minimize { |
|
Subroutine
minimize: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 14 | 1 | my ($self, $event) = @_; | |
| 15 | |||
| 16 | 1 | $event->weight(3); | |
| 17 | } | ||
| 18 | |||
| 19 | 1 | 1; | |