Ejemplo n.º 1
0
    //	Events

    protected virtual void OnEquipmentChange(EquipmentChangeEvent e)
    {
        EventHandler <EquipmentChangeEvent> handler = EquipmentChange;

        if (handler != null)
        {
            handler(this, e);
        }
    }
Ejemplo n.º 2
0
    private void OnEquipmentChange(object sender, EquipmentChangeEvent e)
    {
        UpdateViewModels();

        if (inventoryUpdated == false)
        {
            UpdateInventory();
            UpdateHotbar();
            inventoryUpdated = true;
        }
    }