engine/core.js
/**
       Remove the given entity from the occupants of this cell.
     */
Remove the given entity from the occupants of this cell.
Remove the given entity from the occupants of this cell .
leave(entity) {
        for (let i = 0; i < this.occupants.length; i++) {
            if (this.occupants[i] === entity) {
                this.occupants.splice(i, 1);
                return;
            }
        }
    }
leave ( entity ) { for ( let i = 0 ; i < this . occupants . length ; i ++ ) { if ( this . occupants [ i ] === entity ) { this . occupants . splice ( i , 1 ) ; return ; } } }
Remove the given entity from the occupants of this cell.
Remove the given entity from the occupants of this cell .