add scroll game param
This commit is contained in:
parent
cb15b3a7b4
commit
6efd668189
|
|
@ -0,0 +1,8 @@
|
||||||
|
namespace MyGame.Scenes.MiniGame.Scripts
|
||||||
|
{
|
||||||
|
public class ScrollGameScoreData
|
||||||
|
{
|
||||||
|
public int Id;
|
||||||
|
public int Score;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5926a78d10f24c7cb6e2015911ea3f5e
|
||||||
|
timeCreated: 1655970230
|
||||||
|
|
@ -31,6 +31,7 @@ public static class Const {
|
||||||
public static readonly int ShopCustomizeDefaultStockId = 4;
|
public static readonly int ShopCustomizeDefaultStockId = 4;
|
||||||
public static readonly int ShopCustomizeDefaultDecoration2Id = 5;
|
public static readonly int ShopCustomizeDefaultDecoration2Id = 5;
|
||||||
public static readonly int DailyMissionCompleteRewardShopCustomizeCoin = 5;
|
public static readonly int DailyMissionCompleteRewardShopCustomizeCoin = 5;
|
||||||
|
public static readonly int ScrollGameDailyPlayMaxCount = 4;
|
||||||
|
|
||||||
// tag
|
// tag
|
||||||
public static readonly string GameDataTag = "GameData";
|
public static readonly string GameDataTag = "GameData";
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
using MyGame.Scenes.marketing.Scripts;
|
using MyGame.Scenes.marketing.Scripts;
|
||||||
|
using MyGame.Scenes.MiniGame.Scripts;
|
||||||
using MyGame.Scripts;
|
using MyGame.Scripts;
|
||||||
|
|
||||||
public enum AdRewardType {
|
public enum AdRewardType {
|
||||||
|
|
@ -175,6 +176,16 @@ public sealed class GameData {
|
||||||
[DataMember(Name = "Data61")]
|
[DataMember(Name = "Data61")]
|
||||||
public ShopCustomizeSettings ShopCustomizeSettings;
|
public ShopCustomizeSettings ShopCustomizeSettings;
|
||||||
|
|
||||||
|
// スクロールゲーム
|
||||||
|
[DataMember(Name = "Data62")]
|
||||||
|
public int ScrollGameTodayPlayCount;
|
||||||
|
[DataMember(Name = "Data63")]
|
||||||
|
public long ScrollGameLastPlayTime = DateTime.UtcNow.ToBinary();
|
||||||
|
[DataMember(Name = "Data64")]
|
||||||
|
public List<ScrollGameScoreData> ScrollGamePlaceScoreList;
|
||||||
|
[DataMember(Name = "Data65")]
|
||||||
|
public List<ScrollGameScoreData> ScrollGameStageScoreList;
|
||||||
|
|
||||||
|
|
||||||
// mission
|
// mission
|
||||||
[DataMember(Name = "Data1001")]
|
[DataMember(Name = "Data1001")]
|
||||||
|
|
@ -503,6 +514,8 @@ public sealed class GameData {
|
||||||
AutoCookProducts = AutoCookProducts ?? Array.Empty<int>();
|
AutoCookProducts = AutoCookProducts ?? Array.Empty<int>();
|
||||||
ShopCustomizeSettings = ShopCustomizeSettings ?? new ShopCustomizeSettings();
|
ShopCustomizeSettings = ShopCustomizeSettings ?? new ShopCustomizeSettings();
|
||||||
ShopCustomizeMyItems = ShopCustomizeMyItems ?? Array.Empty<int>();
|
ShopCustomizeMyItems = ShopCustomizeMyItems ?? Array.Empty<int>();
|
||||||
|
ScrollGamePlaceScoreList = ScrollGamePlaceScoreList ?? new List<ScrollGameScoreData>();
|
||||||
|
ScrollGameStageScoreList = ScrollGameStageScoreList ?? new List<ScrollGameScoreData>();
|
||||||
}
|
}
|
||||||
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>();
|
||||||
|
|
|
||||||
|
|
@ -166,6 +166,13 @@ public enum ShopCustomizeBonusCategory
|
||||||
AdWalker = 3,
|
AdWalker = 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum ScrollGameDifficulty
|
||||||
|
{
|
||||||
|
Easy = 1,
|
||||||
|
Normal = 2,
|
||||||
|
Hard = 3,
|
||||||
|
}
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public sealed class MissionData
|
public sealed class MissionData
|
||||||
{
|
{
|
||||||
|
|
@ -518,6 +525,7 @@ public sealed class ScrollGamePlaceData
|
||||||
public int placeId;
|
public int placeId;
|
||||||
public int needScore;
|
public int needScore;
|
||||||
public int itemId;
|
public int itemId;
|
||||||
|
public int recipeId;
|
||||||
public int customizeId;
|
public int customizeId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -526,6 +534,7 @@ public sealed class ScrollGameStageData
|
||||||
{
|
{
|
||||||
public int id;
|
public int id;
|
||||||
public int placeId;
|
public int placeId;
|
||||||
|
public int difficulty;
|
||||||
public int needScore;
|
public int needScore;
|
||||||
public string beginPrefabName;
|
public string beginPrefabName;
|
||||||
public string randomPrefabName;
|
public string randomPrefabName;
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,8 @@ public enum GameScenes
|
||||||
CustomizationDetails,
|
CustomizationDetails,
|
||||||
Customize,
|
Customize,
|
||||||
CustomizeExplanation,
|
CustomizeExplanation,
|
||||||
|
MiniGame,
|
||||||
|
WatchMovieMiniGame,
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum SceneType
|
public enum SceneType
|
||||||
|
|
|
||||||
|
|
@ -140,4 +140,7 @@ EditorBuildSettings:
|
||||||
- enabled: 1
|
- enabled: 1
|
||||||
path: Assets/MyGame/Scenes/MiniGame/MiniGameStageTest.unity
|
path: Assets/MyGame/Scenes/MiniGame/MiniGameStageTest.unity
|
||||||
guid: 764d0f7b58a7c43efb0d780f9af61b71
|
guid: 764d0f7b58a7c43efb0d780f9af61b71
|
||||||
|
- enabled: 1
|
||||||
|
path: Assets/MyGame/Scenes/MiniGame/WatchMovieMiniGame.unity
|
||||||
|
guid: e39bbcad90cf4704f9164a3d6d574a76
|
||||||
m_configObjects: {}
|
m_configObjects: {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue