diff options
author | Jesse Luehrs <doy@tozt.net> | 2009-10-31 15:16:49 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2009-10-31 15:28:04 -0500 |
commit | 188ad8e49c1fa2802eaa55b3d4ae978f2c58c23c (patch) | |
tree | 89333ab23955cceb45dada36ffe89a7a23c855b3 /lib/Bot/Games/OO.pm | |
parent | da36dca6178721b1c91b5e680d01e2595c2b1801 (diff) | |
download | bot-games-188ad8e49c1fa2802eaa55b3d4ae978f2c58c23c.tar.gz bot-games-188ad8e49c1fa2802eaa55b3d4ae978f2c58c23c.zip |
convert Bot::Games to use IM::Engine::Plugin::Commands
Diffstat (limited to 'lib/Bot/Games/OO.pm')
-rw-r--r-- | lib/Bot/Games/OO.pm | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/lib/Bot/Games/OO.pm b/lib/Bot/Games/OO.pm index 177af74..119718d 100644 --- a/lib/Bot/Games/OO.pm +++ b/lib/Bot/Games/OO.pm @@ -1,24 +1,10 @@ package Bot::Games::OO; -use Moose (); +use IM::Engine::Plugin::Commands::OO (); use MooseX::AttributeHelpers; use Moose::Exporter; -use Moose::Util::MetaRole; Moose::Exporter->setup_import_methods( - also => ['Moose'], + also => ['IM::Engine::Plugin::Commands::OO'], ); -sub init_meta { - shift; - my %options = @_; - Moose->init_meta(%options); - Moose::Util::MetaRole::apply_metaclass_roles( - for_class => $options{for_class}, - metaclass_roles => ['MooseX::NonMoose::Meta::Role::Class'], - constructor_metaclass_roles => - ['MooseX::NonMoose::Meta::Role::Constructor'], - ); - return $options{for_class}->meta; -} - 1; |