修改unlock type枚举名字
parent
9522592a89
commit
a559460b5b
|
|
@ -23,10 +23,10 @@ namespace Framework.Condition
|
|||
|
||||
public void Init()
|
||||
{
|
||||
m_conditions = new ICondition[(int)cfg.ActorCfg.UnlockType.Max];
|
||||
for (int i = 1; i < (int)cfg.ActorCfg.UnlockType.Max; i++)
|
||||
m_conditions = new ICondition[(int)ConditionType.Max];
|
||||
for (int i = 1; i < (int)ConditionType.Max; i++)
|
||||
{
|
||||
var conditionType = ((cfg.ActorCfg.UnlockType)i).ToString();
|
||||
var conditionType = ((ConditionType)i).ToString();
|
||||
var typeName = CONDITION_PREFIX + conditionType;
|
||||
var type = CommonUtilsFramework.GamePlayAssembly.GetType(typeName);
|
||||
if (type == null)
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@
|
|||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace cfg.ActorCfg
|
||||
namespace cfg
|
||||
{
|
||||
public enum UnlockType
|
||||
public enum ConditionType
|
||||
{
|
||||
/// <summary>
|
||||
/// 无
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: cab9f2cfcf3a40043ba68dd45fb720b0
|
||||
guid: 16657df5452d12146b2d86e2cbb34850
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
|
@ -19,14 +19,14 @@ public sealed partial class DataCondition : Bright.Config.BeanBase
|
|||
public DataCondition(JSONNode _json)
|
||||
{
|
||||
{ if(!_json["Id"].IsNumber) { throw new SerializationException(); } Id = _json["Id"]; }
|
||||
{ if(!_json["Type"].IsNumber) { throw new SerializationException(); } Type = (ActorCfg.UnlockType)_json["Type"].AsInt; }
|
||||
{ if(!_json["Type"].IsNumber) { throw new SerializationException(); } Type = (ConditionType)_json["Type"].AsInt; }
|
||||
{ if(!_json["Param1"].IsNumber) { throw new SerializationException(); } Param1 = _json["Param1"]; }
|
||||
{ if(!_json["Param2"].IsNumber) { throw new SerializationException(); } Param2 = _json["Param2"]; }
|
||||
{ if(!_json["Param3"].IsNumber) { throw new SerializationException(); } Param3 = _json["Param3"]; }
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public DataCondition(int Id, ActorCfg.UnlockType Type, int Param1, int Param2, int Param3 )
|
||||
public DataCondition(int Id, ConditionType Type, int Param1, int Param2, int Param3 )
|
||||
{
|
||||
this.Id = Id;
|
||||
this.Type = Type;
|
||||
|
|
@ -48,7 +48,7 @@ public sealed partial class DataCondition : Bright.Config.BeanBase
|
|||
/// <summary>
|
||||
/// 解锁类型
|
||||
/// </summary>
|
||||
public ActorCfg.UnlockType Type { get; private set; }
|
||||
public ConditionType Type { get; private set; }
|
||||
/// <summary>
|
||||
/// 参数1
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Reference in New Issue