[DLL] GC.GetEngineUserInterface()->setDirty

Joined
Jul 31, 2014
Messages
836
Hi all,

Does anyone know what the following code snippet actually does? (Dirty_Bit name may vary)

Code:
GC.GetEngineUserInterface()->setDirty(GameData_DIRTY_BIT, true);

The "Change/Set/Update X variable" usually has this inside, and I am not entirely sure of what it does...
 
GC.GetEngineUserInterface()->setDirty() causes one of the Lua SerialEventXyzDirty events to trigger, which one depends on the value of the "dirty bit",eg GameData_DIRTY_BIT triggers Events.SerialEventGameDataDirty(), UnitInfo_DIRTY_BIT triggers Events.SerialEventUnitInfoDirty(), CityInfo_DIRTY_BIT triggers Events.SerialEventCityInfoDirty(), etc
 
Back
Top Bottom