UNPKG

prendy

Version:

Make games with prerendered backdrops using babylonjs and repond

17 lines (16 loc) 637 B
import { getRefs, onNextTick } from "repond"; export function initCamSegmentEffects(callbacksMap) { onNextTick(() => { getRefs().global.main.camSegmentRulesOptions = callbacksMap; }); // return { // startAll() { // // This sets an options object in global refs that gets checked when changing segment, // // so no rules are actually started here, but it uses the same format as the other rule makers // getRefs().global.main.camSegmentRulesOptions = callbacksMap as CamSegmentRulesOptionsUntyped; // }, // stopAll() { // /* nothing to stop */ // }, // }; }