@@ -280,7 +280,7 @@ public override void LoadingThreadProc()
280280 mResourceManager . LoadAllResources ( ) ;
281281 Resources . ExtractResources ( mResourceManager , AtlasResources . mAtlasResources ) ;
282282 AtlasResources . mAtlasResources . ExtractResources ( ) ;
283- ReanimatorXnaHelpers . ReanimatorLoadDefinitions ( ref GameConstants . gLawnReanimationArray , 119 ) ;
283+ ReanimatorXnaHelpers . ReanimatorLoadDefinitions ( ref GameConstants . gLawnReanimationArray , ( int ) ReanimationType . NumReanims ) ;
284284 TodStringFile . TodStringListSetColors ( GameConstants . gLawnStringFormats , GameConstants . gLawnStringFormatCount ) ;
285285 if ( mLoadingFailed || mShutdown || mCloseRequest )
286286 {
@@ -290,9 +290,9 @@ public override void LoadingThreadProc()
290290 mZenGarden = new ZenGarden ( ) ;
291291 mReanimatorCache = new ReanimatorCache ( ) ;
292292 mReanimatorCache . ReanimatorCacheInitialize ( ) ;
293- TodFoley . TodFoleyInitialize ( null , 103 ) ;
294- GlobalMembersTrail . TrailLoadDefinitions ( GameConstants . gLawnTrailArray , 1 ) ;
295- TodParticleGlobal . TodParticleLoadDefinitions ( ref GameConstants . gLawnParticleArray , 102 ) ;
293+ TodFoley . TodFoleyInitialize ( null , ( int ) FoleyType . FoleyCount ) ;
294+ GlobalMembersTrail . TrailLoadDefinitions ( GameConstants . gLawnTrailArray , ( int ) TrailType . NumTrails ) ;
295+ TodParticleGlobal . TodParticleLoadDefinitions ( ref GameConstants . gLawnParticleArray , ( int ) ParticleEffect . ParticleCount ) ;
296296 PreloadForUser ( ) ;
297297 if ( ! mLoadingFailed && ! mShutdown )
298298 {
@@ -3208,9 +3208,9 @@ public void DelayLoadGamePlayResources(bool doLoad)
32083208 if ( Main . LOW_MEMORY_DEVICE )
32093209 {
32103210 ResourceManager . mReanimContentManager . Unload ( ) ;
3211- ReanimatorXnaHelpers . ReanimatorLoadDefinitions ( ref GameConstants . gLawnReanimationArray , 119 ) ;
3211+ ReanimatorXnaHelpers . ReanimatorLoadDefinitions ( ref GameConstants . gLawnReanimationArray , ( int ) ReanimationType . NumReanims ) ;
32123212 ResourceManager . mParticleContentManager . Unload ( ) ;
3213- TodParticleGlobal . TodParticleLoadDefinitions ( ref GameConstants . gLawnParticleArray , 102 ) ;
3213+ TodParticleGlobal . TodParticleLoadDefinitions ( ref GameConstants . gLawnParticleArray , ( int ) ParticleEffect . ParticleCount ) ;
32143214 }
32153215 }
32163216 else if ( gamePlayLoaded && ! doLoad )
@@ -3253,9 +3253,9 @@ public void DelayLoadZenGardenResources(bool doLoad)
32533253 if ( Main . LOW_MEMORY_DEVICE )
32543254 {
32553255 ResourceManager . mReanimContentManager . Unload ( ) ;
3256- ReanimatorXnaHelpers . ReanimatorLoadDefinitions ( ref GameConstants . gLawnReanimationArray , 119 ) ;
3256+ ReanimatorXnaHelpers . ReanimatorLoadDefinitions ( ref GameConstants . gLawnReanimationArray , ( int ) ReanimationType . NumReanims ) ;
32573257 ResourceManager . mParticleContentManager . Unload ( ) ;
3258- TodParticleGlobal . TodParticleLoadDefinitions ( ref GameConstants . gLawnParticleArray , 102 ) ;
3258+ TodParticleGlobal . TodParticleLoadDefinitions ( ref GameConstants . gLawnParticleArray , ( int ) ParticleEffect . ParticleCount ) ;
32593259 }
32603260 }
32613261 else if ( zenGardenLoaded && ! doLoad )
0 commit comments