Magically import images and more into Gamecraft as blocks
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

27 lines
662B

  1. using GamecraftModdingAPI;
  2. namespace Pixi.Common
  3. {
  4. /// <summary>
  5. /// Thing importer.
  6. /// This imports the thing by converting it to a common block format that Pixi can understand.
  7. /// </summary>
  8. public interface Importer
  9. {
  10. int Priority { get; }
  11. bool Optimisable { get; }
  12. string Name { get; }
  13. BlueprintProvider BlueprintProvider { get; }
  14. bool Qualifies(string name);
  15. BlockJsonInfo[] Import(string name);
  16. void PreProcess(string name, ref ProcessedVoxelObjectNotation[] blocks);
  17. void PostProcess(string name, ref Block[] blocks);
  18. }
  19. }