Пример #1
0
    public void SetHPVal(string key, int oldVal, int newVal)
    {
        ItemEntityHP item = null;

        if (itemDic.TryGetValue(key, out item))
        {
            item.SetHPVal(oldVal, newVal);
        }
    }
Пример #2
0
    private void SetHPVal(object sender, GameEventArgs e)
    {
        SetHPValEventArgs ne   = e as SetHPValEventArgs;
        ItemEntityHP      item = null;

        if (itemDic.TryGetValue(ne.Name, out item))
        {
            item.SetHPVal(ne.OldVal, ne.NewVal);
        }
    }