public void SaveCurrentTime(string tag) { ES2.Save(PSGameUtils.DateTimeToString(DateTime.Now), DataFilename + tag); }
public void CreateNewData() { Debug.Log("データの新規作成"); ES2.Save(0, DataFilename + "?tag=gettedGolds"); ES2.Save(false, DataFilename + "?tag=isAdFree"); ES2.Save(0, DataFilename + "?tag=totalWins"); ES2.Save(0, DataFilename + "?tag=expOnLevel"); ES2.Save(0, DataFilename + "?tag=pendingExp"); ES2.Save(false, DataFilename + "?tag=isLiked"); ES2.Save(false, DataFilename + "?tag=earnedLoginBonus"); ES2.Save(PSGameUtils.DateTimeToString(DateTime.Now), DataFilename + "?tag=lastLoginTime"); ES2.Save(0.0f, DataFilename + "?tag=SPOfferLeft"); ES2.Save(0, DataFilename + "?tag=RenzokuLogin"); ES2.Save(0, DataFilename + "?tag=DayFromInstall"); ES2.Save(0L, DataFilename + "?tag=Currency_Doller"); ES2.Save(0L, DataFilename + "?tag=Currency_Gold"); ES2.Save("", DataFilename + "?tag=Countly"); ES2.Save(1, DataFilename + "?tag=playerLevel"); Debug.Log("作成 1"); //LakeEncironmentでセーブしてる ES2.Save(new int[3] { -1, -1, -1 }, DataFilename + "?tag=Field_weatherRireki"); ES2.Save(0, DataFilename + "?tag=Field_startKion"); ES2.Save(Vector3.zero, DataFilename + "?tag=Field_windDirection"); Debug.Log("作成 1-1"); Dictionary <string, int> lureHas_Hard = new Dictionary <string, int> (); for (int i = 0; i < Constants.LureDatas.itemTittles.Length; i++) { lureHas_Hard.Add(Constants.LureDatas.itemTittles[i], 0); } Debug.Log("作成 1-2"); ES2.Save(lureHas_Hard, DataFilename + "?tag=lureHas_Hard"); Debug.Log("作成 1-3"); Dictionary <string, bool> RigHas = new Dictionary <string, bool> (); for (int i = 0; i < Constants.RigDatas.itemTittles.Length; i++) { RigHas.Add(Constants.RigDatas.itemTittles[i], i == 0?true:false); } Debug.Log("作成 1-4"); Dictionary <string, int> SettedRig = new Dictionary <string, int> (); Dictionary <string, int> lureHas_Soft = new Dictionary <string, int> (); for (int i = 0; i < Constants.SoftLureDatas.itemTittles.Length; i++) { lureHas_Soft.Add(Constants.SoftLureDatas.itemTittles[i], 0); SettedRig.Add(Constants.SoftLureDatas.itemTittles[i], 0); } Debug.Log("作成 1-5"); ES2.Save(SettedRig, DataFilename + "?tag=settedRig"); ES2.Save(RigHas, DataFilename + "?tag=rigHas"); ES2.Save(lureHas_Soft, DataFilename + "?tag=lureHas_Soft"); Debug.Log("作成 2"); Dictionary <string, int> lureHas_Line = new Dictionary <string, int> (); for (int i = 0; i < Constants.LineDatas.itemTittles.Length; i++) { lureHas_Line.Add(Constants.LineDatas.itemTittles[i], 0); } ES2.Save(lureHas_Line, DataFilename + "?tag=lureHas_Line"); Debug.Log("作成 3"); Dictionary <string, int> lureHas_Rods = new Dictionary <string, int> (); for (int i = 0; i < Constants.RodsDatas.itemTittles.Length; i++) { lureHas_Rods.Add(Constants.RodsDatas.itemTittles[i], 0); } ES2.Save(lureHas_Rods, DataFilename + "?tag=lureHas_Rods"); Debug.Log("作成 4"); ES2.Save("", DataFilename + "?tag=prevEntry"); ES2.Save("", DataFilename + "?tag=culEntry"); Debug.Log("作成 5"); string[] tackles = new string[Constants.RodsDatas.itemTittles.Length]; for (int i = 0; i < Constants.RodsDatas.itemTittles.Length; i++) { CurrentTackle tcke = new CurrentTackle(); tcke.name = Constants.RodsDatas.itemTittles[i]; tcke.isMainTackle = false; tcke.lineNum = -1; tcke.isSoft = false; tcke.lureNum = -1; tackles[i] = tcke.ToStringData(); } ES2.Save(tackles, DataFilename + "?tag=tackleSlots"); Debug.Log("作成完了"); }