UNPKG

polygonjs-engine

Version:

node-based webgl 3D engine https://polygonjs.com

43 lines (42 loc) 2.5 kB
/** * Updates the flags of specific nodes * * @remarks * This can be useful to show/hide objects, or to cook specific networks * * */ import { NodeParamsConfig } from '../utils/params/ParamsConfig'; import { TypedEventNode } from './_Base'; import { EventContext } from '../../scene/utils/events/_BaseEventsController'; declare class SetFlagParamsConfig extends NodeParamsConfig { /** @param mask to select which nodes this can change the flags of */ mask: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.STRING>; sep0: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.SEPARATOR>; /** @param toggle on to update the display flag */ tdisplay: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BOOLEAN>; /** @param sets how the display flag will be updated (set to a value or toggle) */ displayMode: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.INTEGER>; /** @param new display flag state */ display: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BOOLEAN>; sep1: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.SEPARATOR>; /** @param toggle on to update the bypass flag */ tbypass: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BOOLEAN>; /** @param sets how the bypass flag will be updated (set to a value or toggle) */ bypassMode: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.INTEGER>; /** @param new bypass flag state */ bypass: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BOOLEAN>; /** @param button to trigger the node. Useful to debug */ execute: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BUTTON>; } export declare class SetFlagEventNode extends TypedEventNode<SetFlagParamsConfig> { params_config: SetFlagParamsConfig; static type(): string; initializeNode(): void; process_event(event_context: EventContext<Event>): Promise<void>; private _update_node_flags; private _update_node_display_flag; private _update_node_bypass_flag; static PARAM_CALLBACK_execute(node: SetFlagEventNode): void; } export {};