Exemplo n.º 1
0
 public Territory(Xiv.TerritoryType type)
     : this(type.Sheet.Collection.PackCollection, type.Name, type.Bg)
 {
 }
        protected virtual System.IO.FileInfo GetTargetFile(Xiv.Items.Equipment item, Xiv.Stain stain)
        {
            const int DirectorySeperationInterval = 100;

            var fileName = string.Format("{0} - {1}", item.Key, item.Name);
            if (stain != null)
                fileName += string.Format(" (s{0:D4} {1})", stain.Key, stain.Name);
            return new System.IO.FileInfo(System.IO.Path.Combine("Renders", (item.Key - item.Key % DirectorySeperationInterval).ToString(), fileName));
        }
 protected virtual string GetName(Xiv.Items.Equipment item, Xiv.Stain stain)
 {
     var sb = new StringBuilder();
     sb.Append(item.Name);
     if(stain != null && stain.Key > 0)
         sb.AppendFormat(" (s{0:D4} {1})", stain.Key, stain.Name);
     return sb.ToString();
 }
 protected System.IO.FileInfo GetTargetFile(Xiv.Items.Equipment item)
 {
     return GetTargetFile(item, null);
 }
 protected string GetName(Xiv.Items.Equipment item)
 {
     return GetName(item, null);
 }