| 1 | package Game::Mahjong::Install::Files; | ||
| 2 | |||
| 3 | $self = { | ||
| 4 | 'deps' => [], | ||
| 5 | 'inc' => '', | ||
| 6 | 'libs' => '', | ||
| 7 | 'typemaps' => [] | ||
| 8 | }; | ||
| 9 | |||
| 10 | @deps = @{ $self->{deps} }; | ||
| 11 | @typemaps = @{ $self->{typemaps} }; | ||
| 12 | $libs = $self->{libs}; | ||
| 13 | $inc = $self->{inc}; | ||
| 14 | |||
| 15 | $CORE = undef; | ||
| 16 | foreach (@INC) { | ||
| 17 | if ( -f $_ . "/Game/Mahjong/Install/Files.pm") { | ||
| 18 | $CORE = $_ . "/Game/Mahjong/Install/"; | ||
| 19 | last; | ||
| 20 | } | ||
| 21 | } | ||
| 22 | |||
| 23 | sub deps { @{ $self->{deps} }; } | ||
| 24 | |||
| 25 | sub Inline { | ||
| 26 | my ($class, $lang) = @_; | ||
| 27 | +{ map { (uc($_) => $self->{$_}) } qw(inc libs typemaps) }; | ||
| 28 | } | ||
| 29 | |||
| 30 | 1; |