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; }
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; }