How to use the @casual-simulation/aux-common.calculateBooleanTagValue function in @casual-simulation/aux-common

To help you get started, we’ve selected a few @casual-simulation/aux-common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github casual-simulation / aux / src / aux-server / aux-web / aux-player / scene / PlayerSimulation3D.ts View on Github external
this._rotatable = calculateBooleanTagValue(
                                calc,
                                bot,
                                `aux.context.rotatable`,
                                true
                            );

                            this._inventoryVisible = calculateBooleanTagValue(
                                calc,
                                bot,
                                `aux.context.inventory.visible`,
                                true
                            );

                            this._inventoryPannable = calculateBooleanTagValue(
                                calc,
                                bot,
                                `aux.context.inventory.pannable`,
                                false
                            );

                            this._inventoryResizable = calculateBooleanTagValue(
                                calc,
                                bot,
                                `aux.context.inventory.resizable`,
                                true
                            );

                            this._inventoryRotatable = calculateBooleanTagValue(
                                calc,
                                bot,
github casual-simulation / aux / src / aux-vm-node / managers / AuxUserAuthenticator.ts View on Github external
private _calculateUserAccountInfo(
        context: BotCalculationContext,
        bot: Bot
    ): UserAccountInfo {
        return {
            username: calculateBotValue(context, bot, 'aux.account.username'),
            roles: getBotRoles(context, bot),
            locked: calculateBooleanTagValue(
                context,
                bot,
                'aux.account.locked',
                false
            ),
        };
    }
github casual-simulation / aux / src / aux-server / aux-web / aux-player / scene / PlayerSimulation3D.ts View on Github external
this._zoomMax = calculateNumericalTagValue(
                                calc,
                                bot,
                                `aux.context.zoomable.max`,
                                null
                            );

                            this._rotatable = calculateBooleanTagValue(
                                calc,
                                bot,
                                `aux.context.rotatable`,
                                true
                            );

                            this._inventoryVisible = calculateBooleanTagValue(
                                calc,
                                bot,
                                `aux.context.inventory.visible`,
                                true
                            );

                            this._inventoryPannable = calculateBooleanTagValue(
                                calc,
                                bot,
                                `aux.context.inventory.pannable`,
                                false
                            );

                            this._inventoryResizable = calculateBooleanTagValue(
                                calc,
                                bot,
github casual-simulation / aux / src / aux-server / aux-web / aux-player / scene / PlayerSimulation3D.ts View on Github external
this._zoomMin = calculateNumericalTagValue(
                                calc,
                                bot,
                                `aux.context.zoomable.min`,
                                null
                            );

                            this._zoomMax = calculateNumericalTagValue(
                                calc,
                                bot,
                                `aux.context.zoomable.max`,
                                null
                            );

                            this._rotatable = calculateBooleanTagValue(
                                calc,
                                bot,
                                `aux.context.rotatable`,
                                true
                            );

                            this._inventoryVisible = calculateBooleanTagValue(
                                calc,
                                bot,
                                `aux.context.inventory.visible`,
                                true
                            );

                            this._inventoryPannable = calculateBooleanTagValue(
                                calc,
                                bot,
github casual-simulation / aux / src / aux-server / aux-web / aux-player / scene / PlayerSimulation3D.ts View on Github external
this._inventoryVisible = calculateBooleanTagValue(
                                calc,
                                bot,
                                `aux.context.inventory.visible`,
                                true
                            );

                            this._inventoryPannable = calculateBooleanTagValue(
                                calc,
                                bot,
                                `aux.context.inventory.pannable`,
                                false
                            );

                            this._inventoryResizable = calculateBooleanTagValue(
                                calc,
                                bot,
                                `aux.context.inventory.resizable`,
                                true
                            );

                            this._inventoryRotatable = calculateBooleanTagValue(
                                calc,
                                bot,
                                `aux.context.inventory.rotatable`,
                                true
                            );

                            this._inventoryZoomable = calculateBooleanTagValue(
                                calc,
                                bot,
github casual-simulation / aux / src / aux-server / aux-web / aux-player / scene / PlayerSimulation3D.ts View on Github external
this._inventoryPannable = calculateBooleanTagValue(
                                calc,
                                bot,
                                `aux.context.inventory.pannable`,
                                false
                            );

                            this._inventoryResizable = calculateBooleanTagValue(
                                calc,
                                bot,
                                `aux.context.inventory.resizable`,
                                true
                            );

                            this._inventoryRotatable = calculateBooleanTagValue(
                                calc,
                                bot,
                                `aux.context.inventory.rotatable`,
                                true
                            );

                            this._inventoryZoomable = calculateBooleanTagValue(
                                calc,
                                bot,
                                `aux.context.inventory.zoomable`,
                                true
                            );

                            this._inventoryHeight = calculateNumericalTagValue(
                                calc,
                                bot,
github casual-simulation / aux / src / aux-vm-node / managers / AuxUserAuthenticator.ts View on Github external
private _calculateUserTokenInfo(
        context: BotCalculationContext,
        bot: Bot
    ): UserTokenInfo {
        return {
            id: bot.id,
            token: calculateBotValue(context, bot, 'aux.token'),
            username: calculateBotValue(context, bot, 'aux.token.username'),
            locked: calculateBooleanTagValue(
                context,
                bot,
                'aux.token.locked',
                false
            ),
        };
    }
github casual-simulation / aux / src / aux-server / aux-web / aux-player / scene / PlayerSimulation3D.ts View on Github external
this._inventoryResizable = calculateBooleanTagValue(
                                calc,
                                bot,
                                `aux.context.inventory.resizable`,
                                true
                            );

                            this._inventoryRotatable = calculateBooleanTagValue(
                                calc,
                                bot,
                                `aux.context.inventory.rotatable`,
                                true
                            );

                            this._inventoryZoomable = calculateBooleanTagValue(
                                calc,
                                bot,
                                `aux.context.inventory.zoomable`,
                                true
                            );

                            this._inventoryHeight = calculateNumericalTagValue(
                                calc,
                                bot,
                                `aux.context.inventory.height`,
                                0
                            );

                            this._playerZoom = calculateNumericalTagValue(
                                calc,
                                bot,
github casual-simulation / aux / src / aux-server / aux-web / aux-player / scene / PlayerSimulation3D.ts View on Github external
this._panMinY = calculateNumericalTagValue(
                                calc,
                                bot,
                                `aux.context.pannable.min.y`,
                                null
                            );

                            this._panMaxY = calculateNumericalTagValue(
                                calc,
                                bot,
                                `aux.context.pannable.max.y`,
                                null
                            );

                            this._zoomable = calculateBooleanTagValue(
                                calc,
                                bot,
                                `aux.context.zoomable`,
                                true
                            );

                            this._zoomMin = calculateNumericalTagValue(
                                calc,
                                bot,
                                `aux.context.zoomable.min`,
                                null
                            );

                            this._zoomMax = calculateNumericalTagValue(
                                calc,
                                bot,