mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
Add --hateentry to perl-doc-parser.pl - format perl_hateentry.cpp
This commit is contained in:
@@ -9,6 +9,7 @@ sub usage() {
|
||||
print " --door - Prints methods for just door class methods\n";
|
||||
print " --group - Prints methods for just group class methods\n";
|
||||
print " --corpse - Prints methods for just corpse class methods\n";
|
||||
print " --hateentry - Prints methods for just hateentry class methods\n";
|
||||
print " --all - Prints methods for all classes\n";
|
||||
exit(1);
|
||||
}
|
||||
@@ -49,7 +50,7 @@ for my $file (@files) {
|
||||
chomp;
|
||||
$line = $_;
|
||||
|
||||
if ($line=~/Client::|Mob::|Corpse::|EntityList::|Doors::|Group::/i && $line=~/_croak/i) {
|
||||
if ($line=~/Client::|Mob::|Corpse::|EntityList::|Doors::|Group::|HateEntry::/i && $line=~/_croak/i) {
|
||||
|
||||
#::: Client export
|
||||
if ($export=~/all|client/i) {
|
||||
@@ -87,6 +88,12 @@ for my $file (@files) {
|
||||
$object_prefix = "\$group->";
|
||||
}
|
||||
|
||||
#::: Hateentry export
|
||||
if ($export=~/all|hateentry/i) {
|
||||
$split_key = "HateEntry::";
|
||||
$object_prefix = "\$hate_entry->";
|
||||
}
|
||||
|
||||
#::: Split on croak usage
|
||||
@data = split($split_key, $line);
|
||||
$usage = trim($data[1]);
|
||||
|
||||
Reference in New Issue
Block a user