private static void Initialize() { Opts = new AppOptions(); Mgr = new AppManager(Opts, GenerateGraphicsContext(), MainMenuMode.MainMenuModeFactory); Mgr.GoToTitleScreenMode(); }
public TextureManager(AppManager mgr) { if (mgr == null) throw new ArgumentNullException(); Mgr = mgr; InitializeTextures(); }
private static void Cleanup() { Mgr.Dispose(); Mgr = null; //Persist your options here if you haven't already. Opts = null; }
protected TopDown2dModeBase(AppManager mgr) : base(mgr) { }
public void Dispose() { CleanupTextures(); Mgr = null; }
public static ModeBase ZombieModeFactory(AppManager mgr) { return new ZombieMode(mgr); }
protected ZombieMode(AppManager mgr) : base(mgr) { }
public static ModeBase FireworksModeFactory(AppManager mgr) { return new FireworksMode(mgr); }
public FireworksMode(AppManager mgr) : base(mgr) { }
public MainMenuMode(AppManager mgr) : base(mgr) { }
public IsometricMode(AppManager mgr) : base(mgr) { }
protected TwinStickShooterMode(AppManager mgr) : base(mgr) { }
public static ModeBase ImageViewerModeFactory(AppManager mgr) { return new ImageViewerMode(mgr); }
public ImageViewerMode(AppManager mgr) : base(mgr) { }
public static ModeBase DrawEngineTestModeFactory(AppManager mgr) { return new SpaceRocketsMode(mgr); }
public SpaceRocketsMode(AppManager mgr) : base(mgr) { }
public static ModeBase MainMenuModeFactory(AppManager mgr) { return new MainMenuMode(mgr); }
public static ModeBase TwinStickShooterModeFactory(AppManager mgr) { return new TwinStickShooterMode(mgr); }
protected Isometric2dModeBase(AppManager mgr) : base(mgr) { }
public static ModeBase IsometricModeFactory(AppManager mgr) { return new IsometricMode(mgr); }
protected MainMenuMode(AppManager mgr) : base(mgr) { }