예제 #1
0
 public SpriteSystem(SubSystems subsystems)
     : base(subsystems)
 {
     m_spritefiles      = new KeyedCollection <string, SpriteFile>(x => x.Filepath, StringComparer.OrdinalIgnoreCase);
     m_palettefilecache = new Dictionary <string, Texture2D>(StringComparer.OrdinalIgnoreCase);
     m_fontcache        = new KeyedCollection <string, Font>(x => x.Filepath, StringComparer.OrdinalIgnoreCase);
     m_fontlinemapregex = new Regex("(\\S+)\\s?(\\d+)?\\s?(\\d+)?", RegexOptions.IgnoreCase);
     m_loader           = new PcxLoader(this);
 }
예제 #2
0
		public SpriteSystem(SubSystems subsystems)
			: base(subsystems)
		{
			m_spritefiles = new KeyedCollection<String, SpriteFile>(x => x.Filepath, StringComparer.OrdinalIgnoreCase);
			m_palettefilecache = new Dictionary<String, Texture2D>(StringComparer.OrdinalIgnoreCase);
			m_fontcache = new KeyedCollection<String, Font>(x => x.Filepath, StringComparer.OrdinalIgnoreCase);
			m_fontlinemapregex = new Regex("(\\S+)\\s?(\\d+)?\\s?(\\d+)?", RegexOptions.IgnoreCase);
			m_loader = new PcxLoader(this);
		}