dcl-scene-writer
Version:
Programmatically write DCL scenes
15 lines (14 loc) • 916 B
TypeScript
import * as DCL from 'decentraland-ecs';
import { SceneWriter } from './SceneWriter';
export declare class LightweightWriter extends SceneWriter {
protected instanceCount: number;
protected nameMapping: Record<string, number>;
addEntity(name: string, entity: DCL.Entity): void;
getEntityName(entity: DCL.IEntity): string;
protected stepPrologue(): string;
protected stepStartEntity(_: DCL.Entity, name: string): string;
protected stepSetEntityParent(_: DCL.Entity, name: string, parent?: DCL.IEntity): string;
protected stepWriteComponentDeclaration(entity: DCL.Entity, component: any, componentName: string, componentCode: string): string;
protected stepSetComponentParent(_: DCL.Entity, entityName: string, componentName: string, component: any): string;
protected writeComponent(instanceName: string, constructorName: string, component: DCL.ObservableComponent): string;
}