/// <summary> /// 根据字符串来获取对应的效果枚举类型 /// </summary> public static BattleStatusType GetBattleState(string type_str) { DBBattleState.StateInfo info = DBBattleState.GetInstance().GetBattleStateInfo(type_str); if (info != null) { return((BattleStatusType)(1 << info.value)); } else { return(BattleStatusType.BATTLE_STATUS_TYPE_INVALID); } }
public DBBattleState(string strName, string strPath) : base(strName, strPath) { mkInstance = this; }