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));
        }
示例#2
0
 public void OnObjectUsed() => ObjectUsed?.Invoke(this, EventArgs.Empty);