phaser4-rex-plugins
Version:
20 lines (17 loc) • 418 B
JavaScript
var GetRoomState = function (filterString) {
return filterString.split('|')[0];
}
var GetRoomType = function (filterString) {
return filterString.split('|')[1];
}
var GetFilterString = function (roomState, roomType) {
if (roomType === undefined) {
roomType = '';
}
return `${roomState}|${roomType}`;
}
export {
GetRoomState,
GetRoomType,
GetFilterString
};