now use custom emotes with tweens instead of transistions
This commit is contained in:
parent
d93b30f982
commit
595c5ca64d
21 changed files with 106 additions and 62 deletions
|
@ -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});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue