Skip to content

Commit 64e1969

Browse files
committed
feat: handle room title
1 parent c59c8a8 commit 64e1969

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

electron/main/game/game.parser.ts

+8
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,14 @@ export class GameParserImpl implements GameParser {
453453
case 'popStream': // <popStream/>
454454
this.emitPopStreamGameEvent();
455455
break;
456+
case 'streamWindow': // <streamWindow id='room' subtitle=' - [The Crossing, Hodierna Way]' />
457+
if (attributes.id === 'room') {
458+
this.emitRoomGameEvent({
459+
tagId: 'room name',
460+
roomText: attributes.subtitle?.slice(3) ?? '[unknown]',
461+
});
462+
}
463+
break;
456464
case 'compass': // <compass>...</compass>
457465
this.compassDirections = [];
458466
break;

0 commit comments

Comments
 (0)