mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -07:00
initial commit for rooms
This commit is contained in:
parent
76a13be3c3
commit
d8d4563292
22 changed files with 428 additions and 452 deletions
|
|
@ -34,10 +34,10 @@ while (<file>) {
|
|||
} elsif ($type == 1) {
|
||||
$type = 'cmd';
|
||||
$namePrefix = 'Command';
|
||||
$baseClass = 'ChatCommand';
|
||||
$parentConstructorCall = "$baseClass(\"$name1\", _channel)";
|
||||
$constructorParamsH = "const QString &_channel = QString()";
|
||||
$constructorParamsCpp = "const QString &_channel";
|
||||
$baseClass = 'RoomCommand';
|
||||
$parentConstructorCall = "$baseClass(\"$name1\", _roomId)";
|
||||
$constructorParamsH = "int _roomId = -1";
|
||||
$constructorParamsCpp = "int _roomId";
|
||||
} elsif ($type == 2) {
|
||||
$type = 'cmd';
|
||||
$namePrefix = 'Command';
|
||||
|
|
@ -60,12 +60,12 @@ while (<file>) {
|
|||
$constructorParamsH = "";
|
||||
$constructorParamsCpp = "";
|
||||
} elsif ($type == 5) {
|
||||
$type = 'chat_event';
|
||||
$type = 'room_event';
|
||||
$namePrefix = 'Event';
|
||||
$baseClass = 'ChatEvent';
|
||||
$parentConstructorCall = "$baseClass(\"$name1\", _channel)";
|
||||
$constructorParamsH = "const QString &_channel = QString()";
|
||||
$constructorParamsCpp = "const QString &_channel";
|
||||
$baseClass = 'RoomEvent';
|
||||
$parentConstructorCall = "$baseClass(\"$name1\", _roomId)";
|
||||
$constructorParamsH = "int _roomId = -1";
|
||||
$constructorParamsCpp = "int _roomId";
|
||||
} elsif ($type == 6) {
|
||||
$type = 'game_event_context';
|
||||
$namePrefix = 'Context';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue