using System; using System.Collections.Generic; using System.Linq; using System.Text; public class SQDressData { public static bool isPlus = false; /// /// ドレスデータNo /// 0-10 共通衣装 /// 100 SSR /// 7000000- ショップ /// public int dressID; /// /// ドレス名 /// public string dressName; /// /// カードのアイコンID /// public int cardID; /// /// カードのアイコンID /// 特訓後のほう /// public int cardIDPlus; /// /// キャラID /// public int charaID; /// /// カード名 /// public string cardName; /// /// タイプ /// public int type; /// /// SSRドレスモデルのファイルID /// 共通/ショップ衣装はdressIDから /// public int openDressID; /// /// ソロライブが存在するか /// public int soloLive; private const string _commonshop = "dressselect_{0:D3}.unity3d"; private const string _ssrcardicon = "card_{0}_m.unity3d"; /// /// ユニークなドレスID /// 共通/ショップ衣装はdressID /// SSR衣装はドレスIDを返す /// public int activeDressID { get { if (dressID == 100) return openDressID; //SSRのとき if (dressID > 7000000) return dressID + charaID; //ショップ衣装の時 return dressID; //共通衣装の時 } } /// /// ユニークなドレス名 /// 共通/ショップ衣装はdress名 /// SSR衣装はカード名を返す /// public string dressKeyName { get { if (dressID == 100) { return cardName; } else { return dressName; } } } /// /// アイコンファイルのIDを返す /// public int dressIconKey { get { if (dressID == 100) { if (isPlus) { return cardIDPlus; } else { return cardID; } } else { return dressID; } } } public static string getIconfilename(int key) { if (key < 100) { return string.Format(_commonshop, key); } else if(key > 7000000) { return string.Format(_commonshop, key); } else { return string.Format(_ssrcardicon, key); } } }