Skip to main content

AltaEvent

A class in Root.Township, the global namespace.

A serializable event with no arguments that fires both an inspector UnityEvent and a C# event. Exceptions in either are caught and logged.

Constructors​

MemberWhat it is
AltaEvent()Creates an AltaEvent with default values.

Fields​

2 private and internal fields
MemberWhat it is
private static Logger loggerNLog logger shared by all AltaEvent types.
private UnityEvent triggeredThe inspector UnityEvent run first on Invoke.

Properties​

MemberWhat it is
static Logger Logger { get; }Shared logger, also used by the generic AltaEvent types.
1 private and internal property
MemberWhat it is
private UnityEventBase IAltaEventValidation.EventBase { get; }The inspector UnityEvent, for validation tools.

Events​

MemberWhat it is
event Action InvokedThe C# side of the event.

Methods​

MemberWhat it is
void Invoke()Fires the inspector event, then the C# Invoked event, logging any exception from each.
static AltaEvent op_Addition(AltaEvent altaEvent, Action eventHandler)+ adds a C# handler to Invoked.
static AltaEvent op_Subtraction(AltaEvent altaEvent, Action eventHandler)- removes a C# handler from Invoked.

Used in​

Members of other types that take, return or hold a AltaEvent:

ForgedModel<TB, TA>.onCompleted, Smelter.mouldBreak, StewManager.garnishRejected, CosmeticPresetSlot.gotTrophy, CosmeticPresetsManager.beganUsingFromStore, CosmeticPresetsManager.requestPresetFromStore, CosmeticPresetsManager.stopedUsingFromStore, CosmeticRotatingSlot.gotTrophy, MainMenuShopItem.successfullPurchase, ShopInterface.successfullPurchase, ImpactHitTrigger.trigger, Phantom.fadeOnDayServer, RepeatIfHasTarget.ticked, DockedOffset.docked, DockedOffset.undocked, NonPhysicalLever.activated, NonPhysicalLever.deactivated, MenuToggleSetting.onDeselected, MenuToggleSetting.onSelected, Book.pageLocationChanged, CameraEventsListener.onPostRender, CameraEventsListener.onPreRender, TaxManager.noCoinsLeft, SimpleInteractPoint.interacted, SimpleInteractPoint.released, TreeSpawner.treeAdded, TreeSpawner.treeRemoved, AnalyticalButton.onBecameActive, AnalyticalButton.pressed, AnalyticalButton.released, AnimationTrigger.Disabled, AnimationTrigger.Enabled, AnimationTrigger.onDisable, AnimationTrigger.onEnable, BasicTouchScreenButton.onPressed, BasicTouchScreenButton.onReleased, ChildCheckOnOwned.hasChild, ChildCheckOnOwned.hasNoChild, CoinPress.pressed, ColorBoardItem.dipped, ConsumptionManager.rejectEdibleConsumption, ConsumptionManager.rejectLiquidConsumption, DockCounter.thresholdDropped, DockCounter.thresholdReached, DockEvents.firstDocked, DockEvents.itemDocked, DockEvents.itemUndocked, DockEvents.lastUndocked, DurabilityModule.brokeOnServer, BasicChiselable.brokenClient, BasicChiselable.brokenServer, FestiveFeature.activated, FestiveFeature.changedWhileSpawned, FestiveFeature.deactivated, FrequencyLimiter.invoked, Fuse.finishedOnServer, Fuse.started, Fuse.stopped, GachaHandle.onActivated, GachaHandle.onReset and 46 more.