public static void NotifyObjectUsed(ICharacter character, IWorldObject worldObject) { if (worldObject is null) { Api.Logger.Error("Object is null for " + nameof(NotifyObjectUsed)); return; } Api.SafeInvoke(() => ObjectUsed?.Invoke(character, worldObject)); }
public void OnObjectUsed() => ObjectUsed?.Invoke(this, EventArgs.Empty);