serialization.d.ts 1.1 KB

123456789101112131415161718192021222324
  1. import type { Scene } from "../scene";
  2. /**
  3. * The default function that serializes values in a context object to a serialization object
  4. * @param key the key where the value should be stored in the serialization object
  5. * @param value the value to store
  6. * @param serializationObject the object where the value will be stored
  7. */
  8. export declare function defaultValueSerializationFunction(key: string, value: any, serializationObject: any): void;
  9. /**
  10. * The default function that parses values stored in a serialization object
  11. * @param key the key to the value that will be parsed
  12. * @param serializationObject the object that will be parsed
  13. * @param scene
  14. * @returns
  15. */
  16. export declare function defaultValueParseFunction(key: string, serializationObject: any, scene: Scene): any;
  17. /**
  18. * Given a name of a flow graph block class, return if this
  19. * class needs to be created with a path converter. Used in
  20. * parsing.
  21. * @param className the name of the flow graph block class
  22. * @returns a boolean indicating if the class needs a path converter
  23. */
  24. export declare function needsPathConverter(className: string): boolean;