Changes

Jump to navigation Jump to search
Line 67: Line 67:     
From Beta 1.7+ you can use define symbols for non-dll-based mods that are compiled by the game, e.g.
 
From Beta 1.7+ you can use define symbols for non-dll-based mods that are compiled by the game, e.g.
#if !SWINCBETA && !SWINCRELEASE
+
<pre class='language-cs'>#if !SWINCBETA && !SWINCRELEASE
    (this is beta pre 1.7)
+
    (this is beta pre 1.7)
#elif SWINCBETA1_7 || SWINCBETA1_8
+
#elif SWINCBETA1_7 || SWINCBETA1_8
    (Something broke in beta 1.9, so this is sectioned off)
+
    (Something broke in beta 1.9, so this is sectioned off)
#elif SWINCBETA1_9 || SWINCBETA1_10
+
#elif SWINCBETA1_9 || SWINCBETA1_10
    (Something broke in beta 1.11, so this is sectioned off)
+
    (Something broke in beta 1.11, so this is sectioned off)
#else
+
#else
    (This is for all future versions beta 1.11+)
+
    (This is for all future versions beta 1.11+)
#endif
+
#endif</pre>
    
The game will define 3 symbols SWINC'''TYPE''' (SWINCBETA or SWINCRELEASE), SWINCTYPE'''MAJOR''' (SWINCBETA1, SWINCBETA2, etc.) and SWINCTYPEMAJOR'''_MINOR''' (SWINCBETA1_7, SWINCBETA1_8, etc.)
 
The game will define 3 symbols SWINC'''TYPE''' (SWINCBETA or SWINCRELEASE), SWINCTYPE'''MAJOR''' (SWINCBETA1, SWINCBETA2, etc.) and SWINCTYPEMAJOR'''_MINOR''' (SWINCBETA1_7, SWINCBETA1_8, etc.)

Navigation menu