internal BlockJsonInfo VoxelObjectNotation() { return(new BlockJsonInfo { name = block == BlockIDs.Invalid ? metadata.Split(' ')[0] : block.ToString(), color = ColorSpaceUtility.UnquantizeToArray(color), position = ConversionUtility.Float3ToFloatArray(position), rotation = ConversionUtility.Float3ToFloatArray(rotation), scale = ConversionUtility.Float3ToFloatArray(scale), }); }
internal ProcessedVoxelObjectNotation Process() { BlockIDs block = ConversionUtility.BlockIDsToEnum(name.Split('\t')[0]); return(new ProcessedVoxelObjectNotation { block = block, blueprint = block == BlockIDs.Invalid, color = ColorSpaceUtility.QuantizeToBlockColor(color), metadata = name, position = ConversionUtility.FloatArrayToFloat3(position), rotation = ConversionUtility.FloatArrayToFloat3(rotation), scale = ConversionUtility.FloatArrayToFloat3(scale), }); }