void IEquipped.Equipped(EquippedEventArgs eventArgs) { if ((EquipmentSlotDefines.SlotMasks[eventArgs.Slot] & _allowedSlots) != _allowedSlots) { return; } IsFunctional = true; if (eventArgs.User.TryGetComponent(out InternalsComponent? internals)) { ConnectedInternalsEntity = eventArgs.User; internals.ConnectBreathTool(Owner); } }
public void Equipped(EquippedEventArgs eventArgs) { EquippedToSlot(); }
void IEquipped.Equipped(EquippedEventArgs eventArgs) { eventArgs.User.PopupMessage("equipped " + Owner.Name); }
void IEquipped.Equipped(EquippedEventArgs eventArgs) { eventArgs.User.PopupMessage("equipped " + _entMan.GetComponent <MetaDataComponent>(Owner).EntityName); }
/// <summary> /// Handles when the <see cref="Character"/> equips an item. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="EquippedEventArgs{ItemEntity}"/> instance containing the event data.</param> void EquippedHandler(EquippedBase<ItemEntity> sender, EquippedEventArgs<ItemEntity> e) { _updateModStats = true; OnEquipped(e.Item, e.Slot); }