コード例 #1
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;
		}
コード例 #2
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;
        }