public static (IAccessLocation acb, IAccessLocation awb) ToLocation(this ISoundFileData data, IAccessPoint storage) { if (data.HasAwb()) { return(storage.ToLocation(data.Acb.Path), storage.ToLocation(data.Awb.Path)); } return(storage.ToLocation(data.Acb.Path), new UrlLocation(data.Awb.Identifier, string.Empty)); }
private bool HasAcb(ISoundFileData data) { if (data == null) { return(false); } return(HasCacheFile(data.Acb)); }
[SerializeField] private string[] m_labels = new string[0]; // 分類ラベル public SoundFileData(string dirPath, ISoundFileData data) { this.CueSheetName = data.CueSheet; this.DirPath = dirPath; this.AcbHash = data.Acb.Hash; this.AcbSize = data.Acb.Size; this.AwbHash = data.Awb.Hash; this.AwbSize = data.Awb.Size; this.m_labels = data.Labels ?? Array.Empty <string>(); this.m_awbPath = data.Awb.Path; this.m_acbPath = data.Acb.Path; }
public static string ToDetail(this ISoundFileData self) { ms_builder.Length = 0; ms_builder .AppendLine("[Path]") .AppendLine(self.CueSheet) .AppendLine("[Acb]") .AppendFormat(self.Acb.ToString()).AppendLine() .AppendLine("[Awb]") .AppendFormat(self.Awb.ToString()).AppendLine() .AppendLine() ; ms_builder.AppendLine("[Labels]"); foreach (var label in self.Labels) { ms_builder.Append(" -").AppendLine(label); } return(ms_builder.ToString()); }
public (IAccessLocation acb, IAccessLocation awb) GetServerLocation(ISoundFileData data) { return(m_default, m_default); }
/// <summary> /// /// </summary> public void Add(string dirPath, ISoundFileData data) { m_list.Add(new SoundFileData(dirPath, data)); }
internal static void Log_Download_Sound(ISoundFileData fileData) { Log($" Start Sound Download : { fileData.CueSheet } : {fileData.Acb.Path},{fileData.Awb.Path}"); }
public (IAccessLocation acb, IAccessLocation awb) GetServerLocation(ISoundFileData data) { return(data.ToLocation(m_server)); }
public (IAccessLocation acb, IAccessLocation awb) GetSaveLocation(ISoundFileData data) { return(data.ToLocation(m_storage)); }