@dcl/ecs
Version:
Decentraland ECS
8 lines (7 loc) • 333 B
TypeScript
import { Entity } from '../../engine/entity';
import type { ComponentDefinition } from '../../engine';
import { CrdtMessageType } from '../../serialization/crdt/types';
/**
* @public
*/
export type OnChangeFunction = (entity: Entity, operation: CrdtMessageType, component?: ComponentDefinition<any>, componentValue?: any) => void;