public DefendModeData(DefendModeType type, int value, int currentValue, bool isKey) { this.type = type; this.targetValue = value; this.currentValue = currentValue; this.uniqueID = 0; this.isKey = isKey; }
public DefendModeData(int uniqueID, bool isKey) { this.type = DefendModeType.Certain; this.targetValue = 0; this.currentValue = 0; this.uniqueID = uniqueID; this.isKey = isKey; }
public void AddModeData(DefendModeType modeType, int targetValue, int currentValue, bool isKey = false) { DefendModeData item = new DefendModeData(modeType, targetValue, currentValue, isKey); this._defendModeDataList.Add(item); if (isKey) { this.RefreshDisplay(item, 0); } }
public LDEvtWaitLevelDefendState(string typeStr, double value) { this.defendModeType = (DefendModeType)((int)Enum.Parse(typeof(DefendModeType), typeStr)); if ((this.defendModeType == DefendModeType.Single) || (this.defendModeType == DefendModeType.Group)) { this.targetValue = (int)value; this.uniqueID = 0; } else if (this.defendModeType == DefendModeType.Certain) { this.targetValue = 0; this.uniqueID = (int)value; } else { this.targetValue = (int)value; this.uniqueID = 0; } }
public EvtLevelDefendState(DefendModeType defendModeType, int targetValue) { this.modeType = defendModeType; this.targetValue = targetValue; this.uniqueID = 0; }
public EvtLevelDefendState(int uniqueID) { this.modeType = DefendModeType.Certain; this.targetValue = 0; this.uniqueID = uniqueID; }