5180 fichiers 38.5 Mo 0 téléchargements 275 vues mis à jour il y a 6 heures ui
nitro-v36-with-renderer-v36 / src / api / octane / session / IsPlayTestRestricted.ts
IsPlayTestRestricted.ts 877 o Télécharger le fichier
import { GetRoomEngine, IRoomSession } from '@octane/renderer';

/**
 * Playtest mode (the wired menu preference) for the building rights the hotel refuses on top of AIR:
 * placing from the inventory (Builders Club too), the dimmer and toner settings, the stack helper
 * height and the build height. AIR's own playtest check only covers moving, picking up and using
 * furni; the server (`RoomPlayTestSupport.isBuildingRefused`) refuses these too, and the room's free
 * furni movements mode lifts both, as it lifts AIR's checks.
 *
 * Room owners still read `isRoomOwner` in playtest, so a widget that lets owners through on that
 * shortcut asks this as well.
 */
export function IsPlayTestRestricted(roomSession: IRoomSession): boolean {
    if (!roomSession || !roomSession.playTestMode) return false;

    return !GetRoomEngine()?.activeRoomHasFreeFurniMovementsMode;
}
15Sujets
1Dépôts
20Membres
2En ligne
Profile
Inscrit
Dernière visite
Messages
0
Votes positifs
0
Votes négatifs
0

Nous utilisons des cookies pour assurer le bon fonctionnement du site et améliorer votre expérience. en savoir plus

Autoriser