mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 08:34:52 -07:00
nicer description file
This commit is contained in:
parent
ad47988d91
commit
3461b60183
3 changed files with 35 additions and 33 deletions
|
|
@ -17,6 +17,8 @@ while (<file>) {
|
|||
@line = split(/:/);
|
||||
$type = shift(@line);
|
||||
$name1 = shift(@line);
|
||||
($name2 = $name1) =~ s/_(.)/\U$1\E/g;
|
||||
$name2 =~ s/^(.)/\U$1\E/;
|
||||
if ($type == 0) {
|
||||
$baseClass = 'Command';
|
||||
$parentConstructorCall = "$baseClass(\"$name1\")";
|
||||
|
|
@ -34,7 +36,7 @@ while (<file>) {
|
|||
$constructorParamsCpp = "int _gameId";
|
||||
}
|
||||
|
||||
$className = 'Command_' . shift(@line);
|
||||
$className = 'Command_' . $name2;
|
||||
print headerfile "class $className : public $baseClass {\n"
|
||||
. "\tQ_OBJECT\n"
|
||||
. "private:\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue