public void LoadClothing(Resource.ResourceManager content) { // apparently when an actor is loaded we need to look // for the most recent [Actor]CLOTHES[Timeblock].ANM file. // So start at the current timeblock and work backwards. Game.Timeblock now = Game.GameManager.CurrentTime; MomResource clothesAnm = null; for (int timeblock = (int)now; timeblock >= 0; timeblock--) { try { string file = _code + "CLOTHES" + Game.GameManager.GetTimeBlockString((Timeblock)timeblock); clothesAnm = content.Load <MomResource>(file); // guess we found it break; } catch (System.IO.FileNotFoundException) { // didn't find it, so keep looking } } if (clothesAnm != null) { clothesAnm.Play(); } }
public static TimeBlockSplash ShowTimeBlockSplash(Resource.ResourceManager globalContent, Game.Timeblock timeblock) { if (_mainMenu != null) { _mainMenu.Dismiss(); _layers.Remove(_mainMenu); } TimeBlockSplash splash = new TimeBlockSplash(globalContent, timeblock, Game.GameManager.TickCount); _layers.Add(splash); return(splash); }