mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-16 17:41:29 +00:00
Add corpse to perl-doc-parser.pl
This commit is contained in:
parent
88ed2e64bb
commit
b87e355db3
@ -5,6 +5,7 @@ sub usage() {
|
|||||||
print "Usage:\n";
|
print "Usage:\n";
|
||||||
print " --client - Prints methods for just client class methods\n";
|
print " --client - Prints methods for just client class methods\n";
|
||||||
print " --mob - Prints methods for just mob class methods\n";
|
print " --mob - Prints methods for just mob class methods\n";
|
||||||
|
print " --corpse - Prints methods for just corpse class methods\n";
|
||||||
print " --all - Prints methods for all classes\n";
|
print " --all - Prints methods for all classes\n";
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
@ -45,7 +46,7 @@ for my $file (@files) {
|
|||||||
chomp;
|
chomp;
|
||||||
$line = $_;
|
$line = $_;
|
||||||
|
|
||||||
if ($line=~/Client::|Mob::/i && $line=~/_croak/i) {
|
if ($line=~/Client::|Mob::|Corpse::/i && $line=~/_croak/i) {
|
||||||
|
|
||||||
#::: Client export
|
#::: Client export
|
||||||
if ($export=~/all|client/i) {
|
if ($export=~/all|client/i) {
|
||||||
@ -59,6 +60,12 @@ for my $file (@files) {
|
|||||||
$object_prefix = "\$mob->";
|
$object_prefix = "\$mob->";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#::: Corpse export
|
||||||
|
if ($export=~/all|corpse/i) {
|
||||||
|
$split_key = "Corpse::";
|
||||||
|
$object_prefix = "\$corpse->";
|
||||||
|
}
|
||||||
|
|
||||||
#::: Split on croak usage
|
#::: Split on croak usage
|
||||||
@data = split($split_key, $line);
|
@data = split($split_key, $line);
|
||||||
$usage = trim($data[1]);
|
$usage = trim($data[1]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user