Esempio n. 1
0
        public GraphicResources(SpriteBatch spriteBatch, ContentManager content, GraphicsDevice device)
        {
            _spriteFonts = new Dictionary<FontSize,SpriteFont>();

            SpriteBatch = spriteBatch;
            Content = content;
            Device = device;
            Window = new RelativeWindow(device);
            _spriteFonts.Add(FontSize.Large, Content.Load<SpriteFont>(DefaultLargeFontName));
            _spriteFonts.Add(FontSize.Normal, Content.Load<SpriteFont>(DefaultNormalFontName));
            _spriteFonts.Add(FontSize.Small, Content.Load<SpriteFont>(DefaultSmallFontName));
            _spriteFonts.Add(FontSize.Mini, Content.Load<SpriteFont>(DefaultMiniFontName));
            Background = Content.Load<Texture2D>(DefaultWindowBackgroundName);
        }
 public CharacterPlacingSystem(GraphicResources graphicResources)
     : base(typeof(Image), typeof(Transform), typeof(Group), typeof(BattleStats))
 {
     _contentManager = graphicResources.Content;
     _window = graphicResources.Window;
 }