UNPKG

rl-loadout-lib

Version:

Load Rocket League assets into three.js

48 lines 1.61 kB
import { Color } from 'three'; /** * Color configuration of a loadout. */ export declare class PaintConfig { /** * Primary color. */ primary: Color; /** * Accent color. */ accent: Color; /** * Paint color of the car body. Undefined if unpainted. */ body?: Color; /** * Paint color of the car decal. Undefined if unpainted. */ decal?: Color; /** * Paint color of the car wheels. Undefined if unpainted. */ wheel?: Color; /** * Paint color of the car topper. Undefined if unpainted. */ topper?: Color; /** * Paint color of the car antenna. Undefined if unpainted. */ antenna?: Color; } /** * Create a color configuration object based on in-game color IDs, converting the IDs to THREE Color objects with RGB values. * @param isOrange Whether the loadout is orange or not * @param primaryColorId in-game ID of the primary color * @param accentColorId in-game ID of the accent color * @param bodyPaintId in-game ID of the body paint * @param decalPaintId in-game ID of the decal paint * @param wheelPaintId in-game ID of the wheel paint * @param topperPaintId in-game ID of the topper paint * @param antennaPaintId in-game ID of the antenna paint * @return color configuration with RGB values */ export declare function createPaintConfig(isOrange?: boolean, primaryColorId?: number, accentColorId?: number, bodyPaintId?: number, decalPaintId?: number, wheelPaintId?: number, topperPaintId?: number, antennaPaintId?: number): PaintConfig; //# sourceMappingURL=paint-config.d.ts.map