Files
MinFt/Client/Assets/Scripts/Tables/MapData.cs
Liubing\LB 3d8d4d18f3 first commit
先修复一下,错误的场景

删除不必要的钓场资产

修复into场景

update:更新meta文件,修复报错

update:修复资源

修复第一章节建造

修复建造第三章

update:删除多余内容

update:更新README.md

update:还原图标

update:更新README

update:更新配置
2026-04-28 02:17:22 +08:00

266 lines
16 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using Bright.Serialization;
using System.Collections.Generic;
using SimpleJSON;
namespace cfg
{
public sealed partial class MapData : Bright.Config.BeanBase
{
public JSONNode json;
public MapData(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["IsABTest"].IsBoolean) { throw new SerializationException(); } IsABTest = _json["IsABTest"]; }
{ if(!_json["Name"]["key"].IsString) { throw new SerializationException(); } Name_l10n_key = _json["Name"]["key"]; if(!_json["Name"]["text"].IsString) { throw new SerializationException(); } Name = _json["Name"]["text"]; }
{ if(!_json["EnvName"].IsString) { throw new SerializationException(); } EnvName = _json["EnvName"]; }
{ if(!_json["BGM"].IsString) { throw new SerializationException(); } BGM = _json["BGM"]; }
{ if(!_json["Brightness"].IsNumber) { throw new SerializationException(); } Brightness = (SceneBrightness)_json["Brightness"].AsInt; }
{ if(!_json["WaterType"].IsNumber) { throw new SerializationException(); } WaterType = (SceneWaterType)_json["WaterType"].AsInt; }
{ if(!_json["AquariumBg"].IsString) { throw new SerializationException(); } AquariumBg = _json["AquariumBg"]; }
{ if(!_json["AquariumPrefab"].IsString) { throw new SerializationException(); } AquariumPrefab = _json["AquariumPrefab"]; }
{ if(!_json["Bg"].IsString) { throw new SerializationException(); } Bg = _json["Bg"]; }
{ if(!_json["TravelMapIcon"].IsString) { throw new SerializationException(); } TravelMapIcon = _json["TravelMapIcon"]; }
{ if(!_json["LevelRequired"].IsNumber) { throw new SerializationException(); } LevelRequired = _json["LevelRequired"]; }
{ if(!_json["FishBuff"].IsNumber) { throw new SerializationException(); } FishBuff = _json["FishBuff"]; }
{ if(!_json["FishHPMag"].IsNumber) { throw new SerializationException(); } FishHPMag = _json["FishHPMag"]; }
{ if(!_json["EscapeDistanceMag"].IsNumber) { throw new SerializationException(); } EscapeDistanceMag = _json["EscapeDistanceMag"]; }
{ if(!_json["EscapeSpeedMag"].IsNumber) { throw new SerializationException(); } EscapeSpeedMag = _json["EscapeSpeedMag"]; }
{ if(!_json["Splines"].IsString) { throw new SerializationException(); } Splines = _json["Splines"]; }
{ var __json0 = _json["SwimmingAreaX"]; if(!__json0.IsArray) { throw new SerializationException(); } SwimmingAreaX = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } SwimmingAreaX.Add(__v0); } }
{ var __json0 = _json["SwimmingAreaZ"]; if(!__json0.IsArray) { throw new SerializationException(); } SwimmingAreaZ = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } SwimmingAreaZ.Add(__v0); } }
{ if(!_json["CameraMaxAngle"].IsNumber) { throw new SerializationException(); } CameraMaxAngle = _json["CameraMaxAngle"]; }
{ if(!_json["FishMaxAngle"].IsNumber) { throw new SerializationException(); } FishMaxAngle = _json["FishMaxAngle"]; }
{ if(!_json["InitWeight"].IsNumber) { throw new SerializationException(); } InitWeight = _json["InitWeight"]; }
{ var __json0 = _json["DownloadPkg"]; if(!__json0.IsArray) { throw new SerializationException(); } DownloadPkg = new System.Collections.Generic.List<string>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } DownloadPkg.Add(__v0); } }
{ var __json0 = _json["BombList"]; if(!__json0.IsArray) { throw new SerializationException(); } BombList = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BombList.Add(__v0); } }
{ var __json0 = _json["fishList"]; if(!__json0.IsArray) { throw new SerializationException(); } FishList = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } FishList.Add(__v0); } }
{ var __json0 = _json["DropFishList"]; if(!__json0.IsArray) { throw new SerializationException(); } DropFishList = new System.Collections.Generic.List<FishItemList>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { FishItemList __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = FishItemList.DeserializeFishItemList(__e0); } DropFishList.Add(__v0); } }
{ var __json0 = _json["FishCardItemList"]; if(!__json0.IsArray) { throw new SerializationException(); } FishCardItemList = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } FishCardItemList.Add(__v0); } }
{ var __json0 = _json["FishCardList"]; if(!__json0.IsArray) { throw new SerializationException(); } FishCardList = new System.Collections.Generic.List<System.Collections.Generic.List<int>>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { System.Collections.Generic.List<int> __v0; { var __json1 = __e0; if(!__json1.IsArray) { throw new SerializationException(); } __v0 = new System.Collections.Generic.List<int>(__json1.Count); foreach(JSONNode __e1 in __json1.Children) { int __v1; { if(!__e1.IsNumber) { throw new SerializationException(); } __v1 = __e1; } __v0.Add(__v1); } } FishCardList.Add(__v0); } }
{ var __json0 = _json["PointsRequire"]; if(!__json0.IsArray) { throw new SerializationException(); } PointsRequire = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } PointsRequire.Add(__v0); } }
{ var __json0 = _json["PointsReward"]; if(!__json0.IsArray) { throw new SerializationException(); } PointsReward = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } PointsReward.Add(__v0); } }
{ if(!_json["ConstrutionCost"].IsNumber) { throw new SerializationException(); } ConstrutionCost = _json["ConstrutionCost"]; }
{ if(!_json["LureScalePercent"].IsNumber) { throw new SerializationException(); } LureScalePercent = _json["LureScalePercent"]; }
json = _json;
PostInit();
}
public MapData(int ID, bool IsABTest, string Name, string EnvName, string BGM, SceneBrightness Brightness, SceneWaterType WaterType, string AquariumBg, string AquariumPrefab, string Bg, string TravelMapIcon, int LevelRequired, int FishBuff, float FishHPMag, float EscapeDistanceMag, float EscapeSpeedMag, string Splines, System.Collections.Generic.List<float> SwimmingAreaX, System.Collections.Generic.List<float> SwimmingAreaZ, float CameraMaxAngle, float FishMaxAngle, int InitWeight, System.Collections.Generic.List<string> DownloadPkg, System.Collections.Generic.List<int> BombList, System.Collections.Generic.List<int> fishList, System.Collections.Generic.List<FishItemList> DropFishList, System.Collections.Generic.List<int> FishCardItemList, System.Collections.Generic.List<System.Collections.Generic.List<int>> FishCardList, System.Collections.Generic.List<int> PointsRequire, System.Collections.Generic.List<int> PointsReward, int ConstrutionCost, float LureScalePercent )
{
this.ID = ID;
this.IsABTest = IsABTest;
this.Name = Name;
this.EnvName = EnvName;
this.BGM = BGM;
this.Brightness = Brightness;
this.WaterType = WaterType;
this.AquariumBg = AquariumBg;
this.AquariumPrefab = AquariumPrefab;
this.Bg = Bg;
this.TravelMapIcon = TravelMapIcon;
this.LevelRequired = LevelRequired;
this.FishBuff = FishBuff;
this.FishHPMag = FishHPMag;
this.EscapeDistanceMag = EscapeDistanceMag;
this.EscapeSpeedMag = EscapeSpeedMag;
this.Splines = Splines;
this.SwimmingAreaX = SwimmingAreaX;
this.SwimmingAreaZ = SwimmingAreaZ;
this.CameraMaxAngle = CameraMaxAngle;
this.FishMaxAngle = FishMaxAngle;
this.InitWeight = InitWeight;
this.DownloadPkg = DownloadPkg;
this.BombList = BombList;
this.FishList = fishList;
this.DropFishList = DropFishList;
this.FishCardItemList = FishCardItemList;
this.FishCardList = FishCardList;
this.PointsRequire = PointsRequire;
this.PointsReward = PointsReward;
this.ConstrutionCost = ConstrutionCost;
this.LureScalePercent = LureScalePercent;
PostInit();
}
public static MapData DeserializeMapData(JSONNode _json)
{
return new MapData(_json);
}
public int ID { get; private set; }
/// <summary>
/// 0否<br/>1是<br/>是AB Test的场景不会在列表中展示
/// </summary>
public bool IsABTest { get; private set; }
/// <summary>
/// key
/// </summary>
public string Name { get; private set; }
public string Name_l10n_key { get; }
public string EnvName { get; private set; }
/// <summary>
/// 音频资源
/// </summary>
public string BGM { get; private set; }
/// <summary>
/// Dark暗<br/>Bright亮<br/>这会影响到地图中掉落的漂流瓶种类
/// </summary>
public SceneBrightness Brightness { get; private set; }
/// <summary>
/// 浅海ShallowSea<br/>深海DeepSea<br/>湖泊Lake<br/>溪流River
/// </summary>
public SceneWaterType WaterType { get; private set; }
/// <summary>
/// 水族馆界面的节点<br/>用于控制背景
/// </summary>
public string AquariumBg { get; private set; }
/// <summary>
/// 水族箱界面的prefab名称
/// </summary>
public string AquariumPrefab { get; private set; }
/// <summary>
/// 小地图界面用
/// </summary>
public string Bg { get; private set; }
/// <summary>
/// 旅行地图图片
/// </summary>
public string TravelMapIcon { get; private set; }
/// <summary>
/// 到达该等级可以解锁下一张图
/// </summary>
public int LevelRequired { get; private set; }
/// <summary>
/// 对应FishBuff表主键
/// </summary>
public int FishBuff { get; private set; }
/// <summary>
/// 所有场景的鱼血量乘以这个数字
/// </summary>
public float FishHPMag { get; private set; }
/// <summary>
/// 鱼逃跑技能的y和z会乘以这个数值不能比地图的最远距离z更小
/// </summary>
public float EscapeDistanceMag { get; private set; }
/// <summary>
/// 鱼逃速度 *= 这个参数
/// </summary>
public float EscapeSpeedMag { get; private set; }
public string Splines { get; private set; }
/// <summary>
/// 鱼游动区域的X轴最近距离
/// </summary>
public System.Collections.Generic.List<float> SwimmingAreaX { get; private set; }
/// <summary>
/// 鱼游动区域的Z轴最近距离
/// </summary>
public System.Collections.Generic.List<float> SwimmingAreaZ { get; private set; }
/// <summary>
/// 鱼游到FishMaxAngle的时候对应相机最大偏移CameraMaxAngle
/// </summary>
public float CameraMaxAngle { get; private set; }
public float FishMaxAngle { get; private set; }
/// <summary>
/// 对应drop表主键
/// </summary>
public int InitWeight { get; private set; }
/// <summary>
/// 解锁该章节后的下载内容<br/>为对应标签
/// </summary>
public System.Collections.Generic.List<string> DownloadPkg { get; private set; }
/// <summary>
/// 可以轰炸的建筑范围<br/>为Construction表主键
/// </summary>
public System.Collections.Generic.List<int> BombList { get; private set; }
public System.Collections.Generic.List<int> FishList { get; private set; }
/// <summary>
/// 白色鱼
/// </summary>
public System.Collections.Generic.List<FishItemList> DropFishList { get; private set; }
/// <summary>
/// Item表主键
/// </summary>
public System.Collections.Generic.List<int> FishCardItemList { get; private set; }
/// <summary>
/// 绿色鱼
/// </summary>
public System.Collections.Generic.List<System.Collections.Generic.List<int>> FishCardList { get; private set; }
public System.Collections.Generic.List<int> PointsRequire { get; private set; }
/// <summary>
/// 读drop
/// </summary>
public System.Collections.Generic.List<int> PointsReward { get; private set; }
public int ConstrutionCost { get; private set; }
/// <summary>
/// 配3=3%,表里填的是累计值
/// </summary>
public float LureScalePercent { get; private set; }
public const int __ID__ = -1794075898;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary<string, object> _tables)
{
foreach(var _e in DropFishList) { _e?.Resolve(_tables); }
PostResolve();
}
public void TranslateText(System.Func<string, string, string> translator)
{
Name = translator(Name_l10n_key, Name);
foreach(var _e in DropFishList) { _e?.TranslateText(translator); }
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "IsABTest:" + IsABTest + ","
+ "Name:" + Name + ","
+ "EnvName:" + EnvName + ","
+ "BGM:" + BGM + ","
+ "Brightness:" + Brightness + ","
+ "WaterType:" + WaterType + ","
+ "AquariumBg:" + AquariumBg + ","
+ "AquariumPrefab:" + AquariumPrefab + ","
+ "Bg:" + Bg + ","
+ "TravelMapIcon:" + TravelMapIcon + ","
+ "LevelRequired:" + LevelRequired + ","
+ "FishBuff:" + FishBuff + ","
+ "FishHPMag:" + FishHPMag + ","
+ "EscapeDistanceMag:" + EscapeDistanceMag + ","
+ "EscapeSpeedMag:" + EscapeSpeedMag + ","
+ "Splines:" + Splines + ","
+ "SwimmingAreaX:" + Bright.Common.StringUtil.CollectionToString(SwimmingAreaX) + ","
+ "SwimmingAreaZ:" + Bright.Common.StringUtil.CollectionToString(SwimmingAreaZ) + ","
+ "CameraMaxAngle:" + CameraMaxAngle + ","
+ "FishMaxAngle:" + FishMaxAngle + ","
+ "InitWeight:" + InitWeight + ","
+ "DownloadPkg:" + Bright.Common.StringUtil.CollectionToString(DownloadPkg) + ","
+ "BombList:" + Bright.Common.StringUtil.CollectionToString(BombList) + ","
+ "FishList:" + Bright.Common.StringUtil.CollectionToString(FishList) + ","
+ "DropFishList:" + Bright.Common.StringUtil.CollectionToString(DropFishList) + ","
+ "FishCardItemList:" + Bright.Common.StringUtil.CollectionToString(FishCardItemList) + ","
+ "FishCardList:" + Bright.Common.StringUtil.CollectionToString(FishCardList) + ","
+ "PointsRequire:" + Bright.Common.StringUtil.CollectionToString(PointsRequire) + ","
+ "PointsReward:" + Bright.Common.StringUtil.CollectionToString(PointsReward) + ","
+ "ConstrutionCost:" + ConstrutionCost + ","
+ "LureScalePercent:" + LureScalePercent + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}