Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 public void OnObjectUsed() => ObjectUsed?.Invoke(this, EventArgs.Empty);