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>()); }
public PcxLoader(SpriteSystem system) { if (system == null) { throw new ArgumentNullException(nameof(system)); } m_system = system; }
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 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>()); }
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 PcxLoader(SpriteSystem system) { if (system == null) throw new ArgumentNullException("system"); m_system = system; }