军团战棋子增加配置字段
parent
0fe427c3ed
commit
43bd9e607d
|
|
@ -0,0 +1,27 @@
|
|||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
namespace cfg.LegionBattleCfg
|
||||
{
|
||||
public enum ChessType
|
||||
{
|
||||
/// <summary>
|
||||
/// 主战
|
||||
/// </summary>
|
||||
Carry = 0,
|
||||
/// <summary>
|
||||
/// 火力支援
|
||||
/// </summary>
|
||||
Support = 1,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c267703b79ca8404999dfdca28a7e85c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -37,9 +37,17 @@ public sealed partial class DataLegionPveChessman : Luban.BeanBase
|
|||
{ if(!_buf["HalfShowPath"].IsString) { throw new SerializationException(); } HalfShowPath = _buf["HalfShowPath"]; }
|
||||
{ if(!_buf["DeadShowPath"].IsString) { throw new SerializationException(); } DeadShowPath = _buf["DeadShowPath"]; }
|
||||
{ if(!_buf["HitedEffectId"].IsNumber) { throw new SerializationException(); } HitedEffectId = _buf["HitedEffectId"]; }
|
||||
{ if(!_buf["ChessType"].IsNumber) { throw new SerializationException(); } ChessType = (LegionBattleCfg.ChessType)_buf["ChessType"].AsInt; }
|
||||
{ if(!_buf["MaxFatigue"].IsNumber) { throw new SerializationException(); } MaxFatigue = _buf["MaxFatigue"]; }
|
||||
{ var __json0 = _buf["ObstructedTerrain"]; if(!__json0.IsArray) { throw new SerializationException(); } ObstructedTerrain = new System.Collections.Generic.Dictionary<int, int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int _k0; { if(!__e0[0].IsNumber) { throw new SerializationException(); } _k0 = __e0[0]; } int _v0; { if(!__e0[1].IsNumber) { throw new SerializationException(); } _v0 = __e0[1]; } ObstructedTerrain.Add(_k0, _v0); } }
|
||||
{ if(!_buf["ControlAreaSize"].IsNumber) { throw new SerializationException(); } ControlAreaSize = _buf["ControlAreaSize"]; }
|
||||
{ if(!_buf["IgnoreControlArea"].IsBoolean) { throw new SerializationException(); } IgnoreControlArea = _buf["IgnoreControlArea"]; }
|
||||
{ if(!_buf["SupportAttackParam"].IsNumber) { throw new SerializationException(); } SupportAttackParam = _buf["SupportAttackParam"]; }
|
||||
{ if(!_buf["SupportDefenceParam"].IsNumber) { throw new SerializationException(); } SupportDefenceParam = _buf["SupportDefenceParam"]; }
|
||||
{ if(!_buf["TeamEditAvaliable"].IsBoolean) { throw new SerializationException(); } TeamEditAvaliable = _buf["TeamEditAvaliable"]; }
|
||||
}
|
||||
|
||||
public DataLegionPveChessman(int Id, string NameKey, string IconPath, string PrefabPath, int Attack, int Hp, int Defence, int AtkRange, int MovePoint, int AtkPoint, System.Collections.Generic.List<int> ListRestrainId, float RestrainAttack, float RestrainDef, string FullShowPath, string HalfShowPath, string DeadShowPath, int HitedEffectId )
|
||||
public DataLegionPveChessman(int Id, string NameKey, string IconPath, string PrefabPath, int Attack, int Hp, int Defence, int AtkRange, int MovePoint, int AtkPoint, System.Collections.Generic.List<int> ListRestrainId, float RestrainAttack, float RestrainDef, string FullShowPath, string HalfShowPath, string DeadShowPath, int HitedEffectId, LegionBattleCfg.ChessType ChessType, int MaxFatigue, System.Collections.Generic.Dictionary<int, int> ObstructedTerrain, int ControlAreaSize, bool IgnoreControlArea, float SupportAttackParam, float SupportDefenceParam, bool TeamEditAvaliable )
|
||||
{
|
||||
this.Id = Id;
|
||||
this.NameKey = NameKey;
|
||||
|
|
@ -58,6 +66,14 @@ public sealed partial class DataLegionPveChessman : Luban.BeanBase
|
|||
this.HalfShowPath = HalfShowPath;
|
||||
this.DeadShowPath = DeadShowPath;
|
||||
this.HitedEffectId = HitedEffectId;
|
||||
this.ChessType = ChessType;
|
||||
this.MaxFatigue = MaxFatigue;
|
||||
this.ObstructedTerrain = ObstructedTerrain;
|
||||
this.ControlAreaSize = ControlAreaSize;
|
||||
this.IgnoreControlArea = IgnoreControlArea;
|
||||
this.SupportAttackParam = SupportAttackParam;
|
||||
this.SupportDefenceParam = SupportDefenceParam;
|
||||
this.TeamEditAvaliable = TeamEditAvaliable;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -134,6 +150,38 @@ public sealed partial class DataLegionPveChessman : Luban.BeanBase
|
|||
/// 被受击者特效id
|
||||
/// </summary>
|
||||
public int HitedEffectId { get; private set; }
|
||||
/// <summary>
|
||||
/// 棋子类型 (主战/火力支援)
|
||||
/// </summary>
|
||||
public LegionBattleCfg.ChessType ChessType { get; private set; }
|
||||
/// <summary>
|
||||
/// 最大疲劳值
|
||||
/// </summary>
|
||||
public int MaxFatigue { get; private set; }
|
||||
/// <summary>
|
||||
/// 不擅长地形
|
||||
/// </summary>
|
||||
public System.Collections.Generic.Dictionary<int, int> ObstructedTerrain { get; private set; }
|
||||
/// <summary>
|
||||
/// 控制区大小
|
||||
/// </summary>
|
||||
public int ControlAreaSize { get; private set; }
|
||||
/// <summary>
|
||||
/// 是否无视控制区
|
||||
/// </summary>
|
||||
public bool IgnoreControlArea { get; private set; }
|
||||
/// <summary>
|
||||
/// 助战时对主战棋子的攻击加成
|
||||
/// </summary>
|
||||
public float SupportAttackParam { get; private set; }
|
||||
/// <summary>
|
||||
/// 助战时对主战棋子的防御加成
|
||||
/// </summary>
|
||||
public float SupportDefenceParam { get; private set; }
|
||||
/// <summary>
|
||||
/// 是否能进行编队
|
||||
/// </summary>
|
||||
public bool TeamEditAvaliable { get; private set; }
|
||||
|
||||
public const int __ID__ = -899867631;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
|
@ -162,6 +210,14 @@ public sealed partial class DataLegionPveChessman : Luban.BeanBase
|
|||
+ "HalfShowPath:" + HalfShowPath + ","
|
||||
+ "DeadShowPath:" + DeadShowPath + ","
|
||||
+ "HitedEffectId:" + HitedEffectId + ","
|
||||
+ "ChessType:" + ChessType + ","
|
||||
+ "MaxFatigue:" + MaxFatigue + ","
|
||||
+ "ObstructedTerrain:" + Luban.StringUtil.CollectionToString(ObstructedTerrain) + ","
|
||||
+ "ControlAreaSize:" + ControlAreaSize + ","
|
||||
+ "IgnoreControlArea:" + IgnoreControlArea + ","
|
||||
+ "SupportAttackParam:" + SupportAttackParam + ","
|
||||
+ "SupportDefenceParam:" + SupportDefenceParam + ","
|
||||
+ "TeamEditAvaliable:" + TeamEditAvaliable + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,15 @@
|
|||
"FullShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Full.prefab",
|
||||
"HalfShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Half.prefab",
|
||||
"DeadShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Dead.prefab",
|
||||
"HitedEffectId": 312
|
||||
"HitedEffectId": 312,
|
||||
"ChessType": 0,
|
||||
"MaxFatigue": 0,
|
||||
"ObstructedTerrain": [],
|
||||
"ControlAreaSize": 0,
|
||||
"IgnoreControlArea": false,
|
||||
"SupportAttackParam": 0,
|
||||
"SupportDefenceParam": 0,
|
||||
"TeamEditAvaliable": false
|
||||
},
|
||||
{
|
||||
"Id": 2,
|
||||
|
|
@ -39,7 +47,15 @@
|
|||
"FullShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Full.prefab",
|
||||
"HalfShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Half.prefab",
|
||||
"DeadShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Dead.prefab",
|
||||
"HitedEffectId": 312
|
||||
"HitedEffectId": 312,
|
||||
"ChessType": 0,
|
||||
"MaxFatigue": 0,
|
||||
"ObstructedTerrain": [],
|
||||
"ControlAreaSize": 0,
|
||||
"IgnoreControlArea": false,
|
||||
"SupportAttackParam": 0,
|
||||
"SupportDefenceParam": 0,
|
||||
"TeamEditAvaliable": false
|
||||
},
|
||||
{
|
||||
"Id": 3,
|
||||
|
|
@ -60,7 +76,15 @@
|
|||
"FullShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Full.prefab",
|
||||
"HalfShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Half.prefab",
|
||||
"DeadShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Dead.prefab",
|
||||
"HitedEffectId": 312
|
||||
"HitedEffectId": 312,
|
||||
"ChessType": 0,
|
||||
"MaxFatigue": 0,
|
||||
"ObstructedTerrain": [],
|
||||
"ControlAreaSize": 0,
|
||||
"IgnoreControlArea": false,
|
||||
"SupportAttackParam": 0,
|
||||
"SupportDefenceParam": 0,
|
||||
"TeamEditAvaliable": false
|
||||
},
|
||||
{
|
||||
"Id": 4,
|
||||
|
|
@ -81,7 +105,15 @@
|
|||
"FullShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Full.prefab",
|
||||
"HalfShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Half.prefab",
|
||||
"DeadShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Dead.prefab",
|
||||
"HitedEffectId": 312
|
||||
"HitedEffectId": 312,
|
||||
"ChessType": 0,
|
||||
"MaxFatigue": 0,
|
||||
"ObstructedTerrain": [],
|
||||
"ControlAreaSize": 0,
|
||||
"IgnoreControlArea": false,
|
||||
"SupportAttackParam": 0,
|
||||
"SupportDefenceParam": 0,
|
||||
"TeamEditAvaliable": false
|
||||
},
|
||||
{
|
||||
"Id": 5,
|
||||
|
|
@ -100,7 +132,15 @@
|
|||
"FullShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Full.prefab",
|
||||
"HalfShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Half.prefab",
|
||||
"DeadShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Dead.prefab",
|
||||
"HitedEffectId": 312
|
||||
"HitedEffectId": 312,
|
||||
"ChessType": 0,
|
||||
"MaxFatigue": 0,
|
||||
"ObstructedTerrain": [],
|
||||
"ControlAreaSize": 0,
|
||||
"IgnoreControlArea": false,
|
||||
"SupportAttackParam": 0,
|
||||
"SupportDefenceParam": 0,
|
||||
"TeamEditAvaliable": false
|
||||
},
|
||||
{
|
||||
"Id": 6,
|
||||
|
|
@ -121,7 +161,15 @@
|
|||
"FullShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Full.prefab",
|
||||
"HalfShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Half.prefab",
|
||||
"DeadShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Dead.prefab",
|
||||
"HitedEffectId": 312
|
||||
"HitedEffectId": 312,
|
||||
"ChessType": 0,
|
||||
"MaxFatigue": 0,
|
||||
"ObstructedTerrain": [],
|
||||
"ControlAreaSize": 0,
|
||||
"IgnoreControlArea": false,
|
||||
"SupportAttackParam": 0,
|
||||
"SupportDefenceParam": 0,
|
||||
"TeamEditAvaliable": false
|
||||
},
|
||||
{
|
||||
"Id": 7,
|
||||
|
|
@ -142,7 +190,15 @@
|
|||
"FullShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Full.prefab",
|
||||
"HalfShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Half.prefab",
|
||||
"DeadShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Dead.prefab",
|
||||
"HitedEffectId": 312
|
||||
"HitedEffectId": 312,
|
||||
"ChessType": 0,
|
||||
"MaxFatigue": 0,
|
||||
"ObstructedTerrain": [],
|
||||
"ControlAreaSize": 0,
|
||||
"IgnoreControlArea": false,
|
||||
"SupportAttackParam": 0,
|
||||
"SupportDefenceParam": 0,
|
||||
"TeamEditAvaliable": false
|
||||
},
|
||||
{
|
||||
"Id": 1001,
|
||||
|
|
@ -163,7 +219,15 @@
|
|||
"FullShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Full.prefab",
|
||||
"HalfShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Half.prefab",
|
||||
"DeadShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Dead.prefab",
|
||||
"HitedEffectId": 312
|
||||
"HitedEffectId": 312,
|
||||
"ChessType": 0,
|
||||
"MaxFatigue": 0,
|
||||
"ObstructedTerrain": [],
|
||||
"ControlAreaSize": 0,
|
||||
"IgnoreControlArea": false,
|
||||
"SupportAttackParam": 0,
|
||||
"SupportDefenceParam": 0,
|
||||
"TeamEditAvaliable": false
|
||||
},
|
||||
{
|
||||
"Id": 1002,
|
||||
|
|
@ -184,7 +248,15 @@
|
|||
"FullShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Full.prefab",
|
||||
"HalfShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Half.prefab",
|
||||
"DeadShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Dead.prefab",
|
||||
"HitedEffectId": 312
|
||||
"HitedEffectId": 312,
|
||||
"ChessType": 0,
|
||||
"MaxFatigue": 0,
|
||||
"ObstructedTerrain": [],
|
||||
"ControlAreaSize": 0,
|
||||
"IgnoreControlArea": false,
|
||||
"SupportAttackParam": 0,
|
||||
"SupportDefenceParam": 0,
|
||||
"TeamEditAvaliable": false
|
||||
},
|
||||
{
|
||||
"Id": 1003,
|
||||
|
|
@ -205,7 +277,15 @@
|
|||
"FullShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Full.prefab",
|
||||
"HalfShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Half.prefab",
|
||||
"DeadShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Dead.prefab",
|
||||
"HitedEffectId": 312
|
||||
"HitedEffectId": 312,
|
||||
"ChessType": 0,
|
||||
"MaxFatigue": 0,
|
||||
"ObstructedTerrain": [],
|
||||
"ControlAreaSize": 0,
|
||||
"IgnoreControlArea": false,
|
||||
"SupportAttackParam": 0,
|
||||
"SupportDefenceParam": 0,
|
||||
"TeamEditAvaliable": false
|
||||
},
|
||||
{
|
||||
"Id": 1004,
|
||||
|
|
@ -226,7 +306,15 @@
|
|||
"FullShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Full.prefab",
|
||||
"HalfShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Half.prefab",
|
||||
"DeadShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Dead.prefab",
|
||||
"HitedEffectId": 312
|
||||
"HitedEffectId": 312,
|
||||
"ChessType": 0,
|
||||
"MaxFatigue": 0,
|
||||
"ObstructedTerrain": [],
|
||||
"ControlAreaSize": 0,
|
||||
"IgnoreControlArea": false,
|
||||
"SupportAttackParam": 0,
|
||||
"SupportDefenceParam": 0,
|
||||
"TeamEditAvaliable": false
|
||||
},
|
||||
{
|
||||
"Id": 1005,
|
||||
|
|
@ -245,7 +333,15 @@
|
|||
"FullShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Full.prefab",
|
||||
"HalfShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Half.prefab",
|
||||
"DeadShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Dead.prefab",
|
||||
"HitedEffectId": 312
|
||||
"HitedEffectId": 312,
|
||||
"ChessType": 0,
|
||||
"MaxFatigue": 0,
|
||||
"ObstructedTerrain": [],
|
||||
"ControlAreaSize": 0,
|
||||
"IgnoreControlArea": false,
|
||||
"SupportAttackParam": 0,
|
||||
"SupportDefenceParam": 0,
|
||||
"TeamEditAvaliable": false
|
||||
},
|
||||
{
|
||||
"Id": 1006,
|
||||
|
|
@ -266,7 +362,15 @@
|
|||
"FullShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Full.prefab",
|
||||
"HalfShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Half.prefab",
|
||||
"DeadShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Dead.prefab",
|
||||
"HitedEffectId": 312
|
||||
"HitedEffectId": 312,
|
||||
"ChessType": 0,
|
||||
"MaxFatigue": 0,
|
||||
"ObstructedTerrain": [],
|
||||
"ControlAreaSize": 0,
|
||||
"IgnoreControlArea": false,
|
||||
"SupportAttackParam": 0,
|
||||
"SupportDefenceParam": 0,
|
||||
"TeamEditAvaliable": false
|
||||
},
|
||||
{
|
||||
"Id": 1007,
|
||||
|
|
@ -287,6 +391,14 @@
|
|||
"FullShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Full.prefab",
|
||||
"HalfShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Half.prefab",
|
||||
"DeadShowPath": "Assets/Art/Character/Prefabs/Legion/Chess_Ani/Chess_Mil_Dead.prefab",
|
||||
"HitedEffectId": 312
|
||||
"HitedEffectId": 312,
|
||||
"ChessType": 0,
|
||||
"MaxFatigue": 0,
|
||||
"ObstructedTerrain": [],
|
||||
"ControlAreaSize": 0,
|
||||
"IgnoreControlArea": false,
|
||||
"SupportAttackParam": 0,
|
||||
"SupportDefenceParam": 0,
|
||||
"TeamEditAvaliable": false
|
||||
}
|
||||
]
|
||||
Loading…
Reference in New Issue