Example #1
0
        // Public for use in DGA
        public static void InvokeAfterGiftGiven(NPC npc, SObject obj, Farmer farmer)
        {
            Log.Trace("Event: AfterGiftGiven");
            if (SpaceEvents.AfterGiftGiven == null)
            {
                return;
            }
            var arg = new EventArgsGiftGiven(npc, obj);

            Util.InvokeEvent("SpaceEvents.AfterGiftGiven", SpaceEvents.AfterGiftGiven.GetInvocationList(), farmer, arg);
        }
Example #2
0
        internal static void InvokeAfterGiftGiven(NPC npc, StardewValley.Object obj, Farmer farmer)
        {
            Log.trace("Event: AfterGiftGiven");
            if (AfterGiftGiven == null)
            {
                return;
            }
            var arg = new EventArgsGiftGiven(npc, obj);

            Util.invokeEvent("SpaceEvents.AfterGiftGiven", AfterGiftGiven.GetInvocationList(), farmer, arg);
        }