internal static bool InvokeOnBeforeWarp([InputBind(typeof(GameLocation), "locationAfterWarp")] GameLocation locationAfterWarp, [InputBind(typeof(int), "tileX")] int tileX, [InputBind(typeof(int), "tileY")] int tileY, [InputBind(typeof(int), "facingDirectionAfterWarp")] int facingDirectionAfterWarp) { return(EventCommon.SafeCancellableInvoke(OnBeforeWarp, null, new EventArgsOnBeforeWarp(locationAfterWarp, tileX, tileY, facingDirectionAfterWarp))); }
internal static bool InvokeOnPlayerChangeAccessory([ThisBind] object @this, [InputBind(typeof(int), "which")] int which) { return(EventCommon.SafeCancellableInvoke(OnChangeAccessory, @this, new CancelEventArgs())); }
internal static bool InvokeOnPlayerChangePants([ThisBind] object @this, [InputBind(typeof(Color), "color")] Color which) { return(EventCommon.SafeCancellableInvoke(OnChangePantsColour, @this, new CancelEventArgs())); }
internal static bool InvokeBeforePlayerTakesDamage() { return(EventCommon.SafeCancellableInvoke(OnBeforePlayerTakesDamage, null, new EventArgsOnBeforePlayerTakesDamage())); }
internal static bool InvokeOnBeforeGainExperience([ThisBind] object @this, [InputBind(typeof(int), "which")] int which, [InputBind(typeof(int), "howMuch")] int howMuch) { return(EventCommon.SafeCancellableInvoke(OnBeforeGainExperience, @this, new CancelEventArgs())); }
internal static bool InvokeOnPlayerChangeGender([ThisBind] object @this, [InputBind(typeof(bool), "male")] bool male) { return(EventCommon.SafeCancellableInvoke(OnChangeGender, @this, new CancelEventArgs())); }
internal static bool InvokeOnFarmerPushing([ThisBind] object @this) { return(EventCommon.SafeCancellableInvoke(OnFarmerPushing, @this, new CancelEventArgs())); }
internal static bool InvokeOnMakeSound([ThisBind] object @this) { return(EventCommon.SafeCancellableInvoke(OnMakeSound, @this, new CancelEventArgs())); }
internal static bool InvokeOnBeforeEatGrass([ThisBind] object @this) { return(EventCommon.SafeCancellableInvoke(OnBeforeEatGrass, @this, new EventArgsOnAnimalEatGrass())); }
internal static bool InvokeOnBeforeLocationLoadObjects([ThisBind] object @this) { return(EventCommon.SafeCancellableInvoke(OnBeforeLocationLoadObjects, @this, new CancelEventArgs())); }
internal static bool InvokeOnBeforeLoad([InputBind(typeof(string), "filename")] string filename) { return(EventCommon.SafeCancellableInvoke(OnBeforeLoad, null, new EventArgsOnBeforeLoad(filename))); }
internal static bool InvokeBeforeUpdate( [ThisBind] object @this, [InputBind(typeof(GameTime), "gameTime")] GameTime gt) { return(EventCommon.SafeCancellableInvoke(OnBeforeUpdateTick, @this, new EventArgsOnBeforeGameUpdate(gt))); }
public static bool OnChatBoxDraw([ThisBind] object @this, [InputBind(typeof(SpriteBatch), "b")] SpriteBatch b) { return(EventCommon.SafeCancellableInvoke(ChatBoxDraw, @this, new EventArgsChatBoxDraw((StardewValley.Menus.ChatBox)@this, b))); }