public GameContent(GraphicsDevice device, OpeningGameContent openingContent, GameParams _params) { this.Common = new GameCommon(device, openingContent, _params); this.Colors = new GameColors(this.Common); this.Textures = new GameTextures(this.Common); this.Effects = new GameEffects(this.Common); this.Fonts = new GameFonts(this.Common); this.Animations = new GameAnimations(this.Common, this.Colors); }
public GameCommon(GraphicsDevice device, OpeningGameContent openingContent, GameParams _params) { this.OpeningContent = openingContent; this.Manager = openingContent.Manager; this.SizeChooser = new ContentSizeChooser(_params.DPI); this.ShowExitButton = (_params.Exit != null); this.FieldPadding = GetFieldPadding(device.Viewport.Width, device.Viewport.Height, _params.DPI); this.UseAdvancedEffects = _params.UseAdvancedEffects; this.FieldShadowLength = GetSizeInDpi(16); }