142 lines
7.8 KiB
C#
142 lines
7.8 KiB
C#
using UnityEngine;
|
|
|
|
public static class Const {
|
|
|
|
public static readonly string UnityVersion = "2021.3.3f1";
|
|
|
|
public static readonly string DefaultAppVersion = "1.1.0";
|
|
|
|
// parameter
|
|
public static readonly int DefaultMachineLevel = 1;
|
|
public static readonly int DefaultRecipeId = 1;
|
|
public static readonly int DefaultPanId = 1;
|
|
public static readonly int DefaultCityId = 1;
|
|
public static readonly int ShopTankId = 20;
|
|
public static readonly int MaxShopLevel = 20; // Max 店舗レベル
|
|
public static readonly int TankCapacity = 20;
|
|
public static readonly int SpecialShopLevel = 9999;
|
|
public static readonly int SpecialCategory = 9999;
|
|
public static readonly int NotSetMaterialId = 0;
|
|
public static readonly string RedColorString = "#fb6346";
|
|
public static readonly int DailyMissionResetOffset = 0;
|
|
public static readonly int[] MainTutorial = { 1, 10, 3, 11, 4 };
|
|
public static readonly int[] FieldTutorial = { 5, 12, 6 };
|
|
public static readonly int[] ShoppingTutorial = { 7, 13, 8};
|
|
public static readonly int[] ManagementTutorial = { 9 };
|
|
public static readonly int[] AutoCookTutorial = { 14 };
|
|
public static readonly float VipCustomerRewardStock = 30;
|
|
public static readonly float VipCustomerRewardRate = 0.2f;
|
|
public static readonly int AutoCookAvailableLevel = 7;
|
|
public static readonly int ShopCustomizeDefaultSignBoardId = 1;
|
|
public static readonly int ShopCustomizeDefaultDecoration1Id = 2;
|
|
public static readonly int ShopCustomizeDefaultCartId = 3;
|
|
public static readonly int ShopCustomizeDefaultStockId = 4;
|
|
public static readonly int ShopCustomizeDefaultDecoration2Id = 5;
|
|
public static readonly int DailyMissionCompleteRewardShopCustomizeCoin = 5;
|
|
public static readonly int ScrollGameDailyPlayMaxCount = 4;
|
|
public static readonly int ScrollGameDailyResetOffsetHours = 0; // 翌日0時基準
|
|
public static readonly int ScrollGameAvailableLevel = 8;
|
|
public static readonly int WorldMapAvailableLevel = 20;
|
|
public static readonly int WorldMapTutorialScriptId = 21;
|
|
public static readonly int WorldTripLimitScriptId = 25;
|
|
public static readonly (int cityId,int cityLevel) MaxCityLevel = (2, 2);
|
|
|
|
// tag
|
|
public static readonly string GameDataTag = "GameData";
|
|
public static readonly string VibrationTag = "Vibration";
|
|
public static readonly string LanguageDataTypeTag = "LanguageDataType";
|
|
public static readonly string LocalNotificationTag = "LocalNotification";
|
|
public static readonly string ProductViewTypeTag = "ProductViewType";
|
|
public static readonly string ChangeCityFlagTag = "ChangeCityFlag";
|
|
|
|
// sns
|
|
public static readonly string LineURL = "http://nav.cx/aVZ8nEK";
|
|
public static readonly string FacebookURL = "https://www.facebook.com/usayaApp/";
|
|
public static readonly string TwitterURL = "https://twitter.com/usayaApp";
|
|
|
|
// sheet
|
|
public static readonly string AvatarDataSheet = "AvatarData";
|
|
public static readonly string ShopDataSheet = "ShopData";
|
|
public static readonly string ShopLevelDataSheet = "ShopLevelData";
|
|
public static readonly string ProductDataSheet = "ProductData";
|
|
public static readonly string PanDataSheet = "PanData";
|
|
public static readonly string RarityDataSheet = "RarityData";
|
|
public static readonly string FieldUpgradeDataSheet = "FieldUpgradeData";
|
|
public static readonly string TankPriceDataSheet = "TankPriceData";
|
|
public static readonly string MissionDataSheet = "MissionData";
|
|
public static readonly string BulkOrderDataSheet = "BulkOrderData";
|
|
public static readonly string BulkOrderTextDataSheet = "BulkOrderTextData";
|
|
public static readonly string ScriptDataSheet = "ScriptData";
|
|
public static readonly string TutorialScriptDataSheet = "TutorialData";
|
|
public static readonly string AutoCookDataSheet = "AutoCookData";
|
|
public static readonly string ShopCustomizeDataSheet = "ShopCustomizeData";
|
|
public static readonly string ShopCustomizeLevelDataSheet = "ShopCustomizeLevelData";
|
|
public static readonly string ShopCustomizeBonusDataSheet = "ShopCustomizeBonusData";
|
|
public static readonly string ScrollGamePlaceDataSheet = "ScrollGamePlaceData";
|
|
public static readonly string ScrollGameStageDataSheet = "ScrollGameStageData";
|
|
public static readonly string ScrollGameStageDifficultyDataSheet = "ScrollGameStageDifficultyData";
|
|
public static readonly string CityDataSheet = "CityData";
|
|
public static readonly string FundingDataSheet = "FundingData";
|
|
public static readonly string PartTimerDataSheet = "PartTimerData";
|
|
public static readonly string CityShopLevelDataSheet = "CityShopLevelData";
|
|
public static readonly string ItemConditionDataSheet = "ItemConditionData";
|
|
public static readonly string ScriptConditionDataSheet = "ScriptConditionData";
|
|
|
|
// language
|
|
public static readonly string LangJapanDataSheet = "LangJapanData";
|
|
public static readonly string LangEnglishDataSheet = "LangEnglishData";
|
|
public static readonly string LangChineseTraditionaldDataSheet = "LangChineseTraditionaldData";
|
|
public static readonly string LangChineseSimplifiedDataSheet = "LangChineseSimplifiedData";
|
|
public static readonly string UILangJapanDataSheet = "UILangJapanData";
|
|
public static readonly string UILangEnglishDataSheet = "UILangEnglishData";
|
|
public static readonly string UILangChineseTraditionaldDataSheet = "UILangChineseTraditionaldData";
|
|
public static readonly string UILangChineseSimplifiedDataSheet = "UILangChineseSimplifiedData";
|
|
|
|
public sealed class SheetData {
|
|
public string name;
|
|
public string className;
|
|
public SheetData(string name) : this(name, name){}
|
|
public SheetData(string name, string className){
|
|
this.name = name;
|
|
this.className = className;
|
|
}
|
|
}
|
|
public static readonly SheetData[] BaseSheetNameList = new SheetData[]{
|
|
// new SheetData(Const.AvatarDataSheet),
|
|
new SheetData(Const.ShopDataSheet),
|
|
new SheetData(Const.ShopLevelDataSheet),
|
|
new SheetData(Const.ProductDataSheet),
|
|
new SheetData(Const.PanDataSheet),
|
|
new SheetData(Const.RarityDataSheet),
|
|
new SheetData(Const.FieldUpgradeDataSheet),
|
|
new SheetData(Const.TankPriceDataSheet),
|
|
new SheetData(Const.MissionDataSheet),
|
|
new SheetData(Const.BulkOrderDataSheet),
|
|
new SheetData(Const.BulkOrderTextDataSheet),
|
|
new SheetData(Const.ScriptDataSheet),
|
|
new SheetData(Const.TutorialScriptDataSheet),
|
|
new SheetData(Const.AutoCookDataSheet),
|
|
new SheetData(Const.ShopCustomizeDataSheet),
|
|
new SheetData(Const.ShopCustomizeLevelDataSheet),
|
|
new SheetData(Const.ShopCustomizeBonusDataSheet),
|
|
new SheetData(Const.ScrollGamePlaceDataSheet),
|
|
new SheetData(Const.ScrollGameStageDataSheet),
|
|
new SheetData(Const.ScrollGameStageDifficultyDataSheet),
|
|
new SheetData(Const.CityDataSheet),
|
|
new SheetData(Const.FundingDataSheet),
|
|
new SheetData(Const.PartTimerDataSheet),
|
|
new SheetData(Const.CityShopLevelDataSheet),
|
|
new SheetData(Const.ItemConditionDataSheet),
|
|
new SheetData(Const.ScriptConditionDataSheet),
|
|
};
|
|
public static readonly SheetData[] LanguageSheetNameList = new SheetData[]{
|
|
new SheetData(Const.LangJapanDataSheet, "LanguageData"),
|
|
// new SheetData(Const.LangEnglishDataSheet, "LanguageData"),
|
|
// new SheetData(Const.LangChineseTraditionaldDataSheet, "LanguageData"),
|
|
// new SheetData(Const.LangChineseSimplifiedDataSheet, "LanguageData"),
|
|
new SheetData(Const.UILangJapanDataSheet, "LanguageData"),
|
|
// new SheetData(Const.UILangEnglishDataSheet, "LanguageData"),
|
|
// new SheetData(Const.UILangChineseTraditionaldDataSheet, "LanguageData"),
|
|
// new SheetData(Const.UILangChineseSimplifiedDataSheet, "LanguageData"),
|
|
};
|
|
} |