军团战 添加地形配置
parent
43bd9e607d
commit
f9a7bdc98d
|
|
@ -27,9 +27,10 @@ public sealed partial class DataLegionPveBuff : Luban.BeanBase
|
|||
{ if(!_buf["AtkRangeParam"].IsNumber) { throw new SerializationException(); } AtkRangeParam = _buf["AtkRangeParam"]; }
|
||||
{ if(!_buf["BuffDesc"].IsString) { throw new SerializationException(); } BuffDesc = _buf["BuffDesc"]; }
|
||||
{ if(!_buf["BuffDisplayIcon"].IsString) { throw new SerializationException(); } BuffDisplayIcon = _buf["BuffDisplayIcon"]; }
|
||||
{ if(!_buf["Terrain"].IsNumber) { throw new SerializationException(); } Terrain = _buf["Terrain"]; }
|
||||
}
|
||||
|
||||
public DataLegionPveBuff(int Id, System.Collections.Generic.List<int> ChessIds, float AttackParam, float DefParam, int AtkRangeParam, string BuffDesc, string BuffDisplayIcon )
|
||||
public DataLegionPveBuff(int Id, System.Collections.Generic.List<int> ChessIds, float AttackParam, float DefParam, int AtkRangeParam, string BuffDesc, string BuffDisplayIcon, int Terrain )
|
||||
{
|
||||
this.Id = Id;
|
||||
this.ChessIds = ChessIds;
|
||||
|
|
@ -38,6 +39,7 @@ public sealed partial class DataLegionPveBuff : Luban.BeanBase
|
|||
this.AtkRangeParam = AtkRangeParam;
|
||||
this.BuffDesc = BuffDesc;
|
||||
this.BuffDisplayIcon = BuffDisplayIcon;
|
||||
this.Terrain = Terrain;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -74,6 +76,10 @@ public sealed partial class DataLegionPveBuff : Luban.BeanBase
|
|||
/// 展示的buff图标
|
||||
/// </summary>
|
||||
public string BuffDisplayIcon { get; private set; }
|
||||
/// <summary>
|
||||
/// 所属地形id
|
||||
/// </summary>
|
||||
public int Terrain { get; private set; }
|
||||
|
||||
public const int __ID__ = 1401192842;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
|
@ -92,6 +98,7 @@ public sealed partial class DataLegionPveBuff : Luban.BeanBase
|
|||
+ "AtkRangeParam:" + AtkRangeParam + ","
|
||||
+ "BuffDesc:" + BuffDesc + ","
|
||||
+ "BuffDisplayIcon:" + BuffDisplayIcon + ","
|
||||
+ "Terrain:" + Terrain + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,72 @@
|
|||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.LegionCfg
|
||||
{
|
||||
public sealed partial class DataLegionPveTerrain : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataLegionPveTerrain(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["TerrainID"].IsNumber) { throw new SerializationException(); } TerrainID = _buf["TerrainID"]; }
|
||||
{ if(!_buf["TerrainNameKey"].IsString) { throw new SerializationException(); } TerrainNameKey = _buf["TerrainNameKey"]; }
|
||||
{ if(!_buf["IconPath"].IsString) { throw new SerializationException(); } IconPath = _buf["IconPath"]; }
|
||||
}
|
||||
|
||||
public DataLegionPveTerrain(int TerrainID, string TerrainNameKey, string IconPath )
|
||||
{
|
||||
this.TerrainID = TerrainID;
|
||||
this.TerrainNameKey = TerrainNameKey;
|
||||
this.IconPath = IconPath;
|
||||
|
||||
}
|
||||
|
||||
public static DataLegionPveTerrain DeserializeDataLegionPveTerrain(JSONNode _buf)
|
||||
{
|
||||
return new LegionCfg.DataLegionPveTerrain(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 地形id
|
||||
/// </summary>
|
||||
public int TerrainID { get; private set; }
|
||||
/// <summary>
|
||||
/// 地形名称
|
||||
/// </summary>
|
||||
public string TerrainNameKey { get; private set; }
|
||||
/// <summary>
|
||||
/// 地形图标路径
|
||||
/// </summary>
|
||||
public string IconPath { get; private set; }
|
||||
|
||||
public const int __ID__ = -1502526818;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "TerrainID:" + TerrainID + ","
|
||||
+ "TerrainNameKey:" + TerrainNameKey + ","
|
||||
+ "IconPath:" + IconPath + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 61d6f7f258a877647848e3263112e292
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.LegionCfg
|
||||
{
|
||||
public partial class LegionPveTerrain
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, LegionCfg.DataLegionPveTerrain> _dataMap;
|
||||
private readonly System.Collections.Generic.List<LegionCfg.DataLegionPveTerrain> _dataList;
|
||||
|
||||
public LegionPveTerrain(JSONNode _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, LegionCfg.DataLegionPveTerrain>();
|
||||
_dataList = new System.Collections.Generic.List<LegionCfg.DataLegionPveTerrain>();
|
||||
|
||||
foreach(JSONNode _ele in _buf.Children)
|
||||
{
|
||||
LegionCfg.DataLegionPveTerrain _v;
|
||||
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = global::cfg.LegionCfg.DataLegionPveTerrain.DeserializeDataLegionPveTerrain(_ele); }
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.TerrainID, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, LegionCfg.DataLegionPveTerrain> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<LegionCfg.DataLegionPveTerrain> DataList => _dataList;
|
||||
|
||||
public LegionCfg.DataLegionPveTerrain GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public LegionCfg.DataLegionPveTerrain Get(int key) {
|
||||
if (_dataMap.TryGetValue(key, out var v)) {
|
||||
return v;
|
||||
} else {
|
||||
UnityEngine.Debug.LogError($"table key not found: {key}");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
public LegionCfg.DataLegionPveTerrain this[int key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0ce1f2f4c74565a4da5ba9de9d5f7d4b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -159,6 +159,7 @@ public partial class Tables
|
|||
public LegionCfg.LegionPveMonster LegionPveMonster {get; }
|
||||
public LevelCfg.DispatchMap DispatchMap {get; }
|
||||
public LegionCfg.LegionPveBuff LegionPveBuff {get; }
|
||||
public LegionCfg.LegionPveTerrain LegionPveTerrain {get; }
|
||||
public ActorCfg.RoleTestTeamConfig RoleTestTeamConfig {get; }
|
||||
public FightCfg.FightTrainConfig FightTrainConfig {get; }
|
||||
public LevelCfg.FiringRangeConfig FiringRangeConfig {get; }
|
||||
|
|
@ -313,6 +314,7 @@ public partial class Tables
|
|||
LegionPveMonster = new LegionCfg.LegionPveMonster(loader("legioncfg_legionpvemonster"));
|
||||
DispatchMap = new LevelCfg.DispatchMap(loader("levelcfg_dispatchmap"));
|
||||
LegionPveBuff = new LegionCfg.LegionPveBuff(loader("legioncfg_legionpvebuff"));
|
||||
LegionPveTerrain = new LegionCfg.LegionPveTerrain(loader("legioncfg_legionpveterrain"));
|
||||
RoleTestTeamConfig = new ActorCfg.RoleTestTeamConfig(loader("actorcfg_roletestteamconfig"));
|
||||
FightTrainConfig = new FightCfg.FightTrainConfig(loader("fightcfg_fighttrainconfig"));
|
||||
FiringRangeConfig = new LevelCfg.FiringRangeConfig(loader("levelcfg_firingrangeconfig"));
|
||||
|
|
@ -469,6 +471,7 @@ public partial class Tables
|
|||
LegionPveMonster.ResolveRef(this);
|
||||
DispatchMap.ResolveRef(this);
|
||||
LegionPveBuff.ResolveRef(this);
|
||||
LegionPveTerrain.ResolveRef(this);
|
||||
RoleTestTeamConfig.ResolveRef(this);
|
||||
FightTrainConfig.ResolveRef(this);
|
||||
FiringRangeConfig.ResolveRef(this);
|
||||
|
|
@ -624,6 +627,7 @@ public partial class Tables
|
|||
loader("legioncfg_legionpvemonster");
|
||||
loader("levelcfg_dispatchmap");
|
||||
loader("legioncfg_legionpvebuff");
|
||||
loader("legioncfg_legionpveterrain");
|
||||
loader("actorcfg_roletestteamconfig");
|
||||
loader("fightcfg_fighttrainconfig");
|
||||
loader("levelcfg_firingrangeconfig");
|
||||
|
|
@ -779,6 +783,7 @@ public partial class Tables
|
|||
loader("legioncfg_legionpvemonster");
|
||||
loader("levelcfg_dispatchmap");
|
||||
loader("legioncfg_legionpvebuff");
|
||||
loader("legioncfg_legionpveterrain");
|
||||
loader("actorcfg_roletestteamconfig");
|
||||
loader("fightcfg_fighttrainconfig");
|
||||
loader("levelcfg_firingrangeconfig");
|
||||
|
|
|
|||
|
|
@ -8,7 +8,8 @@
|
|||
"DefParam": 0,
|
||||
"AtkRangeParam": 0,
|
||||
"BuffDesc": "Assets/Art_Out/UI/Texture/UI_Pic_Level/BuffNamePic/UI_Ground_Attack.png",
|
||||
"BuffDisplayIcon": "Assets/Art_Out/UI/Texture/Icon/BuffIcon/UI_AtkUp.png"
|
||||
"BuffDisplayIcon": "Assets/Art_Out/UI/Texture/Icon/BuffIcon/UI_AtkUp.png",
|
||||
"Terrain": 0
|
||||
},
|
||||
{
|
||||
"Id": 2,
|
||||
|
|
@ -19,7 +20,8 @@
|
|||
"DefParam": 0.1,
|
||||
"AtkRangeParam": 0,
|
||||
"BuffDesc": "Assets/Art_Out/UI/Texture/UI_Pic_Level/BuffNamePic/UI_Ground_Defence.png",
|
||||
"BuffDisplayIcon": "Assets/Art_Out/UI/Texture/Icon/BuffIcon/UI_Armor.png"
|
||||
"BuffDisplayIcon": "Assets/Art_Out/UI/Texture/Icon/BuffIcon/UI_Armor.png",
|
||||
"Terrain": 0
|
||||
},
|
||||
{
|
||||
"Id": 3,
|
||||
|
|
@ -30,6 +32,7 @@
|
|||
"DefParam": 0,
|
||||
"AtkRangeParam": 1,
|
||||
"BuffDesc": "Assets/Art_Out/UI/Texture/UI_Pic_Level/BuffNamePic/UI_Ground_AttackDistance.png",
|
||||
"BuffDisplayIcon": "Assets/Art_Out/UI/Texture/Icon/BuffIcon/UI_AtkUp.png"
|
||||
"BuffDisplayIcon": "Assets/Art_Out/UI/Texture/Icon/BuffIcon/UI_AtkUp.png",
|
||||
"Terrain": 0
|
||||
}
|
||||
]
|
||||
|
|
@ -0,0 +1 @@
|
|||
[]
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ce84730578091a54b9c2afb1cd2ee844
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Reference in New Issue