public DebugScreen(EAGSS game) : base(game) { this.game = game; }
public ScreenManager(EAGSS game) : base(game) { Game = game; }
/// <summary> /// Create a new font from the info in the specified font descriptor (XML) file /// </summary> /// <param name="game">current game</param> /// <param name="strFontFilename">font file (.xml)</param> public BitmapFont(EAGSS game, string strFontFilename) { content = game.Content; m_dictBitmapID2BitmapInfo = new Dictionary<int, BitmapInfo>(); m_dictBitmapID2Texture = new Dictionary<int, Texture2D>(); m_dictUnicode2GlyphInfo = new Dictionary<char, GlyphInfo>(); m_dictKern = new Dictionary<char, Dictionary<char, int>>(); var xd = new XmlDocument(); xd.Load(new MemoryStream(content.Load<byte[]>(strFontFilename))); LoadFontXML(xd.ChildNodes); }