Modding:Adding Code at Startup: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
m (Adjusted section order)
mNo edit summary
Line 51: Line 51:


===Implementation===
===Implementation===
The mod-sensitive cache is implemented in a similar fashion to the game-sensitive cache, but there is no special handling for a <code>Reset()</code> method and there are a few other subtle differences.
The mod-sensitive cache is implemented in a similar fashion to the game-sensitive cache (see section below), but there is no special handling for a <code>Reset()</code> method and there are a few other subtle differences.


Classes with <code>[HasModSensitiveStaticCache]</code> attribute are treated as follows (in this order):
Classes with <code>[HasModSensitiveStaticCache]</code> attribute are treated as follows (in this order):

Navigation menu