public override void OnAttrChanged(GameData.AttrType attrType, long oldValue, long newValue) { if (attrType == GameData.AttrType.Lv) { this.OnChangeLv(oldValue, newValue); } }
public override void SetValue(GameData.AttrType type, long value, bool isFirstTry) { switch (type) { case GameData.AttrType.Fighting: this.Fighting = value; return; case GameData.AttrType.Diamond: case GameData.AttrType.Gold: IL_1E: if (type == GameData.AttrType.MoveSpeed) { this.MoveSpeed = (int)value; return; } if (type == GameData.AttrType.ActSpeed) { this.ActSpeed = (int)value; return; } if (type != GameData.AttrType.Lv) { return; } this.Lv = (int)value; return; case GameData.AttrType.VipLv: this.VipLv = (int)value; return; } goto IL_1E; }
public override long GetValue(GameData.AttrType type) { switch (type) { case GameData.AttrType.Fighting: return(this.Fighting); case GameData.AttrType.Diamond: case GameData.AttrType.Gold: IL_1E: if (type == GameData.AttrType.MoveSpeed) { return((long)this.MoveSpeed); } if (type == GameData.AttrType.ActSpeed) { return((long)this.ActSpeed); } if (type == GameData.AttrType.RealMoveSpeed) { return((long)this.RealMoveSpeed); } if (type == GameData.AttrType.RealActionSpeed) { return((long)this.RealActionSpeed); } if (type != GameData.AttrType.Lv) { Debug.LogError("未找到属性值:" + type); return(0L); } return((long)this.Lv); case GameData.AttrType.VipLv: return((long)this.VipLv); } goto IL_1E; }
public override void SwapValue(GameData.AttrType type, long oldValue, long newValue) { this.BattleBaseAttrs.SwapValue(type, oldValue, newValue); }
public override long TryAddValue(GameData.AttrType type, long tryAddValue) { return(this.BattleBaseAttrs.TryAddValue(type, tryAddValue)); }
public override long GetValue(GameData.AttrType type) { return(this.BattleBaseAttrs.GetValue(type)); }
public override void SetValue(GameData.AttrType type, long value, bool isFirstTry) { this.BattleBaseAttrs.SetValue(type, value, isFirstTry); }
public override void RemoveValue(GameData.AttrType type, int value, bool isFirstTry) { this.BattleBaseAttrs.RemoveValue(type, value, isFirstTry); }