Back to ACE

ACE.NotifyContraptionPointsInvalidated

S

Part of ACE namespace

function ACE.NotifyContraptionPointsInvalidated(con, ent, reason, armorDirty, nonArmorDirty, event)
View on GitHub|lua/acf/server/sv_pointshandling.lua:247-274
👁️ 0 viewsUpdated 1 month ago

Description

Public point lifecycle hooks: ACE_OnContraptionPointsInvalidated(con, change) reports every known pricing-input mutation, even when the cache is already dirty or the resulting point delta is zero. change contains Revision, Entity, Reason, Armor, and NonArmor. Consumers can call ACE.EnsureContraptionPoints from this hook when they need the updated total immediately. ACE_OnContraptionPointsRecalculated(con, change) reports Revision, OldTotal, Total, OldByType, ByType, Armor, and NonArmor as detached snapshots after a rebuild.

Parameters

NameTypeDescription
conany
entany
reasonany
armorDirtyany
nonArmorDirtyany
eventany

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.