From c9c5b5d7c2a238310ce7bde336f76d2d1b6f9f29 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Sat, 15 Jan 2022 16:29:02 +0100 Subject: moved shapes to loading area & fixed asset paths --- assets/addons/voxel-core/classes/reader.gd | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 assets/addons/voxel-core/classes/reader.gd (limited to 'assets/addons/voxel-core/classes/reader.gd') diff --git a/assets/addons/voxel-core/classes/reader.gd b/assets/addons/voxel-core/classes/reader.gd deleted file mode 100644 index 7c17b8a..0000000 --- a/assets/addons/voxel-core/classes/reader.gd +++ /dev/null @@ -1,21 +0,0 @@ -class_name Reader -extends Reference -# Makeshift interface class inhereted by all file readers. - - - -## Public Methods -# Calls on appropriate file reader according to file_path's extension. -# file_path : String : path to file to be read -# return : Dictionary : read results, contains: { error : int, voxels : Dictionary, palette : Dictionary } -static func read_file(file_path : String) -> Dictionary: - var result = { "error": ERR_FILE_UNRECOGNIZED } - match file_path.get_extension(): - "png", "bmp", "dds", "exr", "hdr", "jpg", "jpeg", "tga", "svg", "svgz", "webp": - result = ImageReader.read_file(file_path) - "vox": result = VoxReader.read_file(file_path) - "qb": continue - "qbt": continue - "vxm": continue - "gpl": result = GPLReader.read_file(file_path) - return result -- cgit v1.2.3-54-g00ecf