Example #1
0
 internal static bool InvokeOnBeforeEatGrass([ThisBind] object @this)
 {
     return(EventCommon.SafeCancellableInvoke(OnBeforeEatGrass, @this, new EventArgsOnAnimalEatGrass()));
 }
Example #2
0
 internal static bool InvokeOnMakeSound([ThisBind] object @this)
 {
     return(EventCommon.SafeCancellableInvoke(OnMakeSound, @this, new CancelEventArgs()));
 }
 internal static void InvokePostGetDwarfShopStock()
 {
     EventCommon.SafeInvoke(OnPostGetDwarfShopStock, null, new EventArgsOnGetDwarfShopStock());
 }
Example #4
0
 internal static void InvokeAfterBundleConstructed([ThisBind] object @this)
 {
     EventCommon.SafeInvoke(OnAfterBundleConstructed, @this);
 }
Example #5
0
 internal static void InvokeOnBeforeSave()
 {
     EventCommon.SafeInvoke(OnBeforeSave, null);
 }
Example #6
0
 // Triggered by PropertyWatcher
 internal static void InvokeOnAfterLoadProgress(int current)
 {
     EventCommon.SafeInvoke(OnAfterLoadProgress, null, new EventArgsOnProgress(current));
 }
Example #7
0
 internal static void InvokeAfterUnloadedContent([ThisBind] object @this)
 {
     EventCommon.SafeInvoke(OnAfterUnloadedContent, @this);
 }
 internal static void InvokeShowEndOfNightMenus()
 {
     EventCommon.SafeInvoke(OnShowEndOfNightMenus, null);
 }
Example #9
0
 internal static void InvokeAfterGameInitialise([ThisBind] object @this)
 {
     EventCommon.SafeInvoke(OnAfterGameInitialised, @this, new EventArgsOnGameInitialised());
 }
Example #10
0
 internal static void InvokeBeforeUnloadContent([ThisBind] object @this)
 {
     EventCommon.SafeInvoke(OnBeforeUnloadContent, @this);
 }
 internal static void InvokeAfterSeasonChanged()
 {
     EventCommon.SafeInvoke(OnAfterSeasonChanged, null);
 }
 internal static void InvokeBeforeSeasonChanged()
 {
     EventCommon.SafeInvoke(OnBeforeSeasonChanged, null);
 }
Example #13
0
        internal static void InvokeAfterTimeChanged()
        {
            var oldTime = Game1.timeOfDay - 10;

            EventCommon.SafeInvoke(OnAfterTimeChanged, null, new EventArgsIntChanged(oldTime, Game1.timeOfDay));
        }
Example #14
0
 internal static bool InvokeOnFarmerPushing([ThisBind] object @this)
 {
     return(EventCommon.SafeCancellableInvoke(OnFarmerPushing, @this, new CancelEventArgs()));
 }
Example #15
0
 // Invoked by property watcher
 internal static void InvokeOnHalfSecondTick()
 {
     EventCommon.SafeInvoke(OnHalfSecondTick, null);
 }
 internal static void InvokeMenuChanged(IClickableMenu priorMenu, IClickableMenu newMenu)
 {
     EventCommon.SafeInvoke(OnMenuChanged, null, new EventArgsOnMenuChanged(priorMenu, newMenu));
 }
Example #17
0
 internal static bool InvokeBeforeUpdate(
     [ThisBind] object @this,
     [InputBind(typeof(GameTime), "gameTime")] GameTime gt)
 {
     return(EventCommon.SafeCancellableInvoke(OnBeforeUpdateTick, @this, new EventArgsOnBeforeGameUpdate(gt)));
 }
Example #18
0
 internal static void InvokeOnModError(Assembly erroredAssembly, Exception ex)
 {
     EventCommon.SafeInvoke(OnModError, null, new EventArgsOnModError(erroredAssembly, ex));
 }
Example #19
0
 internal static void InvokeAfterUpdate([ThisBind] object @this)
 {
     TimeEvents.DidShouldTimePassCheckThisFrame = false;
     EventCommon.SafeInvoke(OnAfterUpdateTick, @this);
 }
Example #20
0
 internal static bool InvokeOnBeforeLoad([InputBind(typeof(string), "filename")] string filename)
 {
     return(EventCommon.SafeCancellableInvoke(OnBeforeLoad, null, new EventArgsOnBeforeLoad(filename)));
 }
Example #21
0
 internal static void InvokeAfterGameLoaded(
     [InputBind(typeof(bool), "loadedGame")] bool loadedGame)
 {
     EventCommon.SafeInvoke(OnAfterGameLoaded, null, new EventArgsOnAfterGameLoaded(loadedGame));
 }
Example #22
0
 // Triggered by PropertyWatcher
 internal static void InvokeOnAfterSave()
 {
     EventCommon.SafeInvoke(OnAfterSave, null, new EventArgsOnAfterSave());
 }
Example #23
0
 internal static void OnAfterOpenedMail([ThisBind] object @this, [InputBind(typeof(string), "text")] string text)
 {
     EventCommon.SafeInvoke(AfterOpenedLetter, @this, new EventArgsOpenedLetter(text));
 }