示例#1
0
 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));
 }
示例#2
0
 private bool HasAcb(ISoundFileData data)
 {
     if (data == null)
     {
         return(false);
     }
     return(HasCacheFile(data.Acb));
 }
示例#3
0
        [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;
        }
示例#4
0
        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());
        }
示例#5
0
 public (IAccessLocation acb, IAccessLocation awb) GetServerLocation(ISoundFileData data)
 {
     return(m_default, m_default);
 }
示例#6
0
 /// <summary>
 ///
 /// </summary>
 public void Add(string dirPath, ISoundFileData data)
 {
     m_list.Add(new SoundFileData(dirPath, data));
 }
示例#7
0
 internal static void Log_Download_Sound(ISoundFileData fileData)
 {
     Log($" Start Sound Download : { fileData.CueSheet } : {fileData.Acb.Path},{fileData.Awb.Path}");
 }
示例#8
0
 public (IAccessLocation acb, IAccessLocation awb) GetServerLocation(ISoundFileData data)
 {
     return(data.ToLocation(m_server));
 }
示例#9
0
 public (IAccessLocation acb, IAccessLocation awb) GetSaveLocation(ISoundFileData data)
 {
     return(data.ToLocation(m_storage));
 }