フライパンセーブデータ追加
This commit is contained in:
parent
9fce153e71
commit
47004aa75e
|
|
@ -7,6 +7,7 @@ public static class Const {
|
||||||
public static readonly string DefaultAppVersion = "0.1.0";
|
public static readonly string DefaultAppVersion = "0.1.0";
|
||||||
|
|
||||||
// parameter
|
// parameter
|
||||||
|
public static readonly int DefaultPanId = 1;
|
||||||
|
|
||||||
// tag
|
// tag
|
||||||
public static readonly string GameDataTag = "GameData";
|
public static readonly string GameDataTag = "GameData";
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,8 @@ public sealed class GameData {
|
||||||
public List<StorageTank> StorageTanks;
|
public List<StorageTank> StorageTanks;
|
||||||
[DataMember(Name = "Data21")]
|
[DataMember(Name = "Data21")]
|
||||||
public int Heart = 0;
|
public int Heart = 0;
|
||||||
|
[DataMember(Name = "Data22")]
|
||||||
|
public int[] Pans;
|
||||||
|
|
||||||
// public void ChangeAvatar(AvatarData avatarData){
|
// public void ChangeAvatar(AvatarData avatarData){
|
||||||
// newAvatarIdList.Remove(avatarData.id);
|
// newAvatarIdList.Remove(avatarData.id);
|
||||||
|
|
@ -104,6 +106,10 @@ public sealed class GameData {
|
||||||
// if(avatarIdList.Count < 1){
|
// if(avatarIdList.Count < 1){
|
||||||
// avatarIdList.Add(Const.DefaultAvatarId);
|
// avatarIdList.Add(Const.DefaultAvatarId);
|
||||||
// }
|
// }
|
||||||
|
if (Pans.Length < 1)
|
||||||
|
{
|
||||||
|
Pans = new[] {Const.DefaultPanId};
|
||||||
|
}
|
||||||
// 追加した要素の初期化用
|
// 追加した要素の初期化用
|
||||||
// TODO Release前にまっさらにする
|
// TODO Release前にまっさらにする
|
||||||
}
|
}
|
||||||
|
|
@ -112,6 +118,7 @@ public sealed class GameData {
|
||||||
// newAvatarIdList = newAvatarIdArray == null ? new List<int>() : newAvatarIdArray.ToList();
|
// newAvatarIdList = newAvatarIdArray == null ? new List<int>() : newAvatarIdArray.ToList();
|
||||||
// lastAdRewardTimeList = lastAdRewardTimeArray == null ? new List<long>() : lastAdRewardTimeArray.ToList();
|
// lastAdRewardTimeList = lastAdRewardTimeArray == null ? new List<long>() : lastAdRewardTimeArray.ToList();
|
||||||
ShopStock = shopStock?.ToList() ?? new List<int>();
|
ShopStock = shopStock?.ToList() ?? new List<int>();
|
||||||
|
Pans = Pans ?? new int[0];
|
||||||
}
|
}
|
||||||
private Dictionary<int, int> ArrayToDictionary(KeyValueOfintint[] array){
|
private Dictionary<int, int> ArrayToDictionary(KeyValueOfintint[] array){
|
||||||
var dictionary = new Dictionary<int, int>();
|
var dictionary = new Dictionary<int, int>();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue