now use custom emotes with tweens instead of transistions

This commit is contained in:
kharhamel 2021-05-21 16:25:12 +02:00
parent d93b30f982
commit 595c5ca64d
21 changed files with 106 additions and 62 deletions

View file

@ -11,7 +11,7 @@ class EmoteEventStream {
public stream = this._stream.asObservable();
onMessage(userId: number, emoteName:string) {
fire(userId: number, emoteName:string) {
this._stream.next({userId, emoteName});
}
}

View file

@ -149,7 +149,7 @@ export class RoomConnection implements RoomConnection {
payload = subMessage.getItemeventmessage();
} else if (subMessage.hasEmoteeventmessage()) {
const emoteMessage = subMessage.getEmoteeventmessage() as EmoteEventMessage;
emoteEventStream.onMessage(emoteMessage.getActoruserid(), emoteMessage.getEmote());
emoteEventStream.fire(emoteMessage.getActoruserid(), emoteMessage.getEmote());
} else {
throw new Error('Unexpected batch message type');
}