Skip to content

Commit

Permalink
feat: handle room title
Browse files Browse the repository at this point in the history
  • Loading branch information
KatoakDR committed Jan 1, 2024
1 parent c59c8a8 commit 64e1969
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions electron/main/game/game.parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,14 @@ export class GameParserImpl implements GameParser {
case 'popStream': // <popStream/>
this.emitPopStreamGameEvent();
break;
case 'streamWindow': // <streamWindow id='room' subtitle=' - [The Crossing, Hodierna Way]' />
if (attributes.id === 'room') {
this.emitRoomGameEvent({
tagId: 'room name',
roomText: attributes.subtitle?.slice(3) ?? '[unknown]',
});
}
break;
case 'compass': // <compass>...</compass>
this.compassDirections = [];
break;
Expand Down

0 comments on commit 64e1969

Please sign in to comment.