public WrappedDisplayItem(Character character, AptContext context, SpriteItem parent) { Visible = true; Item = AddDisposable <DisplayItem>(character switch { Playable _ => new SpriteItem(), Button _ => new ButtonItem(), _ => new RenderItem(), });
public ShapeRenderer( Geometry shape, ContentManager contentManager, ImageMap map, string movieName) { _shape = shape; _context = new AptContext(map, movieName, contentManager); _contentManager = contentManager; }
public ShapeRenderer( Geometry shape, ContentManager contentManager, AssetStore assetStore, ImageMap map, string movieName) { _shape = shape; _context = new AptContext(map, movieName, assetStore); _renderer = new AptRenderer(null, contentManager); }
public ShapeRenderer( Geometry shape, ContentManager contentManager, GraphicsLoadContext graphicsLoadContext, AssetStore assetStore, ImageMap map, string movieName) { _shape = shape; _context = new AptContext(map, movieName, assetStore); _renderingContext = new AptRenderingContext(null, contentManager, graphicsLoadContext, _context); }
private void Dispose(bool disposing) { if (disposed) { return; } if (disposing) { context.Dispose(); } context = null; disposed = true; }
public void GameTestStart() { context = new AptContext("Test Context"); context.Load += Context_Load; context.Begin(); }
public PersonaController() { db = new AptContext(); }
public HomeController() { db = new AptContext(); }