From 188ad8e49c1fa2802eaa55b3d4ae978f2c58c23c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 31 Oct 2009 15:16:49 -0500 Subject: convert Bot::Games to use IM::Engine::Plugin::Commands --- lib/Bot/Games/OO.pm | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'lib/Bot/Games/OO.pm') 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; -- cgit v1.2.3-54-g00ecf