Пример #1
0
 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)));
 }
Пример #2
0
 internal static bool InvokeOnPlayerChangeAccessory([ThisBind] object @this,
                                                    [InputBind(typeof(int), "which")] int which)
 {
     return(EventCommon.SafeCancellableInvoke(OnChangeAccessory, @this, new CancelEventArgs()));
 }
Пример #3
0
 internal static bool InvokeOnPlayerChangePants([ThisBind] object @this,
                                                [InputBind(typeof(Color), "color")] Color which)
 {
     return(EventCommon.SafeCancellableInvoke(OnChangePantsColour, @this, new CancelEventArgs()));
 }
Пример #4
0
 internal static bool InvokeBeforePlayerTakesDamage()
 {
     return(EventCommon.SafeCancellableInvoke(OnBeforePlayerTakesDamage, null, new EventArgsOnBeforePlayerTakesDamage()));
 }
Пример #5
0
 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()));
 }
Пример #6
0
 internal static bool InvokeOnPlayerChangeGender([ThisBind] object @this,
                                                 [InputBind(typeof(bool), "male")] bool male)
 {
     return(EventCommon.SafeCancellableInvoke(OnChangeGender, @this, new CancelEventArgs()));
 }
Пример #7
0
 internal static bool InvokeOnFarmerPushing([ThisBind] object @this)
 {
     return(EventCommon.SafeCancellableInvoke(OnFarmerPushing, @this, new CancelEventArgs()));
 }
Пример #8
0
 internal static bool InvokeOnMakeSound([ThisBind] object @this)
 {
     return(EventCommon.SafeCancellableInvoke(OnMakeSound, @this, new CancelEventArgs()));
 }
Пример #9
0
 internal static bool InvokeOnBeforeEatGrass([ThisBind] object @this)
 {
     return(EventCommon.SafeCancellableInvoke(OnBeforeEatGrass, @this, new EventArgsOnAnimalEatGrass()));
 }
Пример #10
0
 internal static bool InvokeOnBeforeLocationLoadObjects([ThisBind] object @this)
 {
     return(EventCommon.SafeCancellableInvoke(OnBeforeLocationLoadObjects, @this, new CancelEventArgs()));
 }
Пример #11
0
 internal static bool InvokeOnBeforeLoad([InputBind(typeof(string), "filename")] string filename)
 {
     return(EventCommon.SafeCancellableInvoke(OnBeforeLoad, null, new EventArgsOnBeforeLoad(filename)));
 }
Пример #12
0
 internal static bool InvokeBeforeUpdate(
     [ThisBind] object @this,
     [InputBind(typeof(GameTime), "gameTime")] GameTime gt)
 {
     return(EventCommon.SafeCancellableInvoke(OnBeforeUpdateTick, @this, new EventArgsOnBeforeGameUpdate(gt)));
 }
Пример #13
0
 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)));
 }