diff options
author | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-15 16:29:02 +0100 |
---|---|---|
committer | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-15 16:29:02 +0100 |
commit | c9c5b5d7c2a238310ce7bde336f76d2d1b6f9f29 (patch) | |
tree | c6e935fea995752a0b307e56892e8422fb734c0e /assets/addons/voxel-core/classes/reader.gd | |
parent | 98f356e68b759bf84300290315d4ada09c41f79b (diff) |
moved shapes to loading area & fixed asset paths
Diffstat (limited to 'assets/addons/voxel-core/classes/reader.gd')
-rw-r--r-- | assets/addons/voxel-core/classes/reader.gd | 21 |
1 files changed, 0 insertions, 21 deletions
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<Vec3, int>, palette : Dictionary<int, Dictionary<String, Variant> } -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 |