コード例 #1
0
        public Font(SpriteSystem spritesystem, String filepath, Sprite sprite, ReadOnlyDictionary <Char, Rectangle> sizemap, Point charsize, Int32 colors)
        {
            if (spritesystem == null)
            {
                throw new ArgumentNullException("spritesystem");
            }
            if (filepath == null)
            {
                throw new ArgumentNullException("filepath");
            }
            if (sprite == null)
            {
                throw new ArgumentNullException("sprite");
            }
            if (sizemap == null)
            {
                throw new ArgumentNullException("sizemap");
            }

            m_spritesystem = spritesystem;
            m_filepath     = filepath;
            m_sprite       = sprite;
            m_sizemap      = sizemap;
            m_charsize     = charsize;
            m_colors       = colors;
            m_drawstate    = new Video.DrawState(m_spritesystem.GetSubSystem <Video.VideoSystem>());
        }
コード例 #2
0
ファイル: PcxLoader.cs プロジェクト: terrynoya/xnamugen-1
        public PcxLoader(SpriteSystem system)
        {
            if (system == null)
            {
                throw new ArgumentNullException(nameof(system));
            }

            m_system = system;
        }
コード例 #3
0
ファイル: SpriteFile.cs プロジェクト: lodossDev/xnamugen
		public SpriteFile(SpriteSystem spritesystem, File file, SpriteFileVersion version, List<SpriteFileData> data, Boolean sharedpalette)
		{
			if (spritesystem == null) throw new ArgumentNullException("spritesystem");
			if (file == null) throw new ArgumentNullException("file");
			if (data == null) throw new ArgumentNullException("data");

			m_spritesystem = spritesystem;
			m_file = file;
			m_version = version;
			m_collection = new SpriteFileDataCollection(data);
			m_cachedsprites = new Dictionary<SpriteId, Sprite>();
			m_sharedpalette = sharedpalette;
		}
コード例 #4
0
ファイル: Font.cs プロジェクト: lodossDev/xnamugen
		public Font(SpriteSystem spritesystem, String filepath, Sprite sprite, ReadOnlyDictionary<Char, Rectangle> sizemap, Point charsize, Int32 colors)
		{
			if (spritesystem == null) throw new ArgumentNullException("spritesystem");
			if (filepath == null) throw new ArgumentNullException("filepath");
			if (sprite == null) throw new ArgumentNullException("sprite");
			if (sizemap == null) throw new ArgumentNullException("sizemap");

			m_spritesystem = spritesystem;
			m_filepath = filepath;
			m_sprite = sprite;
			m_sizemap = sizemap;
			m_charsize = charsize;
			m_colors = colors;
			m_drawstate = new Video.DrawState(m_spritesystem.GetSubSystem<Video.VideoSystem>());
		}
コード例 #5
0
        public SpriteFile(SpriteSystem spritesystem, File file, SpriteFileVersion version, List <SpriteFileData> data, Boolean sharedpalette)
        {
            if (spritesystem == null)
            {
                throw new ArgumentNullException("spritesystem");
            }
            if (file == null)
            {
                throw new ArgumentNullException("file");
            }
            if (data == null)
            {
                throw new ArgumentNullException("data");
            }

            m_spritesystem  = spritesystem;
            m_file          = file;
            m_version       = version;
            m_collection    = new SpriteFileDataCollection(data);
            m_cachedsprites = new Dictionary <SpriteId, Sprite>();
            m_sharedpalette = sharedpalette;
        }
コード例 #6
0
ファイル: PcxLoader.cs プロジェクト: lodossDev/xnamugen
		public PcxLoader(SpriteSystem system)
		{
			if (system == null) throw new ArgumentNullException("system");

			m_system = system;
		}