52 lines
720 B
C#
52 lines
720 B
C#
using System;
|
|
using System.IO;
|
|
using UnityEngine;
|
|
|
|
[Serializable]
|
|
public class raw_file_class
|
|
{
|
|
public bool assigned;
|
|
|
|
public bool created;
|
|
|
|
public string file;
|
|
|
|
public string filename;
|
|
|
|
public raw_mode_enum mode;
|
|
|
|
public int length;
|
|
|
|
public Vector2 resolution;
|
|
|
|
public bool square;
|
|
|
|
public bool loaded;
|
|
|
|
public bool linked;
|
|
|
|
public byte[] bytes;
|
|
|
|
public FileStream fs;
|
|
|
|
public float product1;
|
|
|
|
public float product2;
|
|
|
|
public raw_file_class()
|
|
{
|
|
created = true;
|
|
file = string.Empty;
|
|
filename = string.Empty;
|
|
mode = raw_mode_enum.Windows;
|
|
square = true;
|
|
linked = true;
|
|
}
|
|
|
|
public virtual bool exists()
|
|
{
|
|
FileInfo fileInfo = new FileInfo(file);
|
|
return fileInfo.Exists ? true : false;
|
|
}
|
|
}
|