Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/remapper/src/mod.ts>LightRemapper

A framework for Beat Saber map scripting.
Go to Latest
class LightRemapper
import { LightRemapper } from "https://deno.land/x/remapper@3.0.0/src/mod.ts";

Properties

addToEnd: (offset: number, step?: number) => unknown

Effects the ending sequence of lightIDs.

appendIDs: (lightID: LightID, initialize?) => unknown

Adds lightIDs to the event.

IDs: (lightIDs?: LightID) => unknown

Events will pass if they have lightIDs, or contain one of the lightIDs you specify.

initIDs: (lightID: LightID, spread?) => unknown

Initialize lightIDs if event has none.

normalizeLinear: (step: number, start?) => unknown

Normalizes a sequence of lightIDs to a sequence of: 1, 2, 3, 4, 5... etc.

normalizeWithChanges: (map: number[][]) => unknown

Normalizes a sequence of lightIDs to a sequence of: 1, 2, 3, 4, 5... etc. Accounts for differences changing at different points.

range: (range: number | [number, number]) => unknown

Checks if any lightIDs on this event are in this range.

remapEnd: (map: number[][], offset?) => unknown

Remap lightIDs assuming the output is a sequence of 1, 2, 3, 4, 5...

type: (type: number) => unknown

Events will pass if they have this type.

Methods

private
complexifyLightIDs(lightID: LightID, callback: (ids: number[]) => number[])
setIDs(lightID: LightID)

Sets the lightID of the event.