refactor: API

This commit is contained in:
cha0s 2022-05-02 08:12:59 -05:00
parent af32353790
commit 6914485cb5
2 changed files with 4 additions and 4 deletions

View File

@ -53,11 +53,11 @@ export default (flecks) => {
}
},
startInforming: (synchronized) => {
startInformingAbout: (synchronized) => {
this.$$synchronizer.startSynchronizing(synchronized);
},
stopInforming: (synchronized) => {
stopInformingAbout: (synchronized) => {
this.$$synchronizer.stopSynchronizing(synchronized);
},

View File

@ -52,13 +52,13 @@ export default class Universe {
const onCurrentRoomChanged = (oldRoom, newRoom) => {
if (oldRoom) {
const room = this.room(oldRoom);
entity.stopInforming(room);
entity.stopInformingAbout(room);
room.removeEntity(entity);
}
if (newRoom) {
const room = this.room(newRoom);
room.addEntity(entity);
entity.startInforming(room);
entity.startInformingAbout(room);
}
};
entity.on('currentRoomChanged', onCurrentRoomChanged);