Beispiel #1
0
 internal static bool InvokeOnBeforeEatGrass([ThisBind] object @this)
 {
     return(EventCommon.SafeCancellableInvoke(OnBeforeEatGrass, @this, new EventArgsOnAnimalEatGrass()));
 }
Beispiel #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());
 }
Beispiel #4
0
 internal static void InvokeAfterBundleConstructed([ThisBind] object @this)
 {
     EventCommon.SafeInvoke(OnAfterBundleConstructed, @this);
 }
Beispiel #5
0
 internal static void InvokeOnBeforeSave()
 {
     EventCommon.SafeInvoke(OnBeforeSave, null);
 }
Beispiel #6
0
 // Triggered by PropertyWatcher
 internal static void InvokeOnAfterLoadProgress(int current)
 {
     EventCommon.SafeInvoke(OnAfterLoadProgress, null, new EventArgsOnProgress(current));
 }
 internal static void InvokeAfterUnloadedContent([ThisBind] object @this)
 {
     EventCommon.SafeInvoke(OnAfterUnloadedContent, @this);
 }
 internal static void InvokeShowEndOfNightMenus()
 {
     EventCommon.SafeInvoke(OnShowEndOfNightMenus, null);
 }
 internal static void InvokeAfterGameInitialise([ThisBind] object @this)
 {
     EventCommon.SafeInvoke(OnAfterGameInitialised, @this, new EventArgsOnGameInitialised());
 }
 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);
 }
Beispiel #13
0
        internal static void InvokeAfterTimeChanged()
        {
            var oldTime = Game1.timeOfDay - 10;

            EventCommon.SafeInvoke(OnAfterTimeChanged, null, new EventArgsIntChanged(oldTime, Game1.timeOfDay));
        }
Beispiel #14
0
 internal static bool InvokeOnFarmerPushing([ThisBind] object @this)
 {
     return(EventCommon.SafeCancellableInvoke(OnFarmerPushing, @this, new CancelEventArgs()));
 }
 // 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));
 }
 internal static bool InvokeBeforeUpdate(
     [ThisBind] object @this,
     [InputBind(typeof(GameTime), "gameTime")] GameTime gt)
 {
     return(EventCommon.SafeCancellableInvoke(OnBeforeUpdateTick, @this, new EventArgsOnBeforeGameUpdate(gt)));
 }
Beispiel #18
0
 internal static void InvokeOnModError(Assembly erroredAssembly, Exception ex)
 {
     EventCommon.SafeInvoke(OnModError, null, new EventArgsOnModError(erroredAssembly, ex));
 }
 internal static void InvokeAfterUpdate([ThisBind] object @this)
 {
     TimeEvents.DidShouldTimePassCheckThisFrame = false;
     EventCommon.SafeInvoke(OnAfterUpdateTick, @this);
 }
Beispiel #20
0
 internal static bool InvokeOnBeforeLoad([InputBind(typeof(string), "filename")] string filename)
 {
     return(EventCommon.SafeCancellableInvoke(OnBeforeLoad, null, new EventArgsOnBeforeLoad(filename)));
 }
 internal static void InvokeAfterGameLoaded(
     [InputBind(typeof(bool), "loadedGame")] bool loadedGame)
 {
     EventCommon.SafeInvoke(OnAfterGameLoaded, null, new EventArgsOnAfterGameLoaded(loadedGame));
 }
Beispiel #22
0
 // Triggered by PropertyWatcher
 internal static void InvokeOnAfterSave()
 {
     EventCommon.SafeInvoke(OnAfterSave, null, new EventArgsOnAfterSave());
 }
 internal static void OnAfterOpenedMail([ThisBind] object @this, [InputBind(typeof(string), "text")] string text)
 {
     EventCommon.SafeInvoke(AfterOpenedLetter, @this, new EventArgsOpenedLetter(text));
 }