public FinaleRenderer(CommonResource resource, DrawScreen screen) { this.flats = resource.Flats; this.sprites = resource.Sprites; this.screen = screen; this.scale = screen.Width / 320; this.cache = new PatchCache(); }
public FinaleRenderer(CommonResource resource, DrawScreen screen) { wad = resource.Wad; flats = resource.Flats; sprites = resource.Sprites; this.screen = screen; scale = screen.Width / 320; cache = new PatchCache(wad); }
public CommonResource() { try { this.palette = new Palette(); this.colorMap = new ColorMap(); this.textures = new TextureLookup(); this.flats = new FlatLookup(); this.sprites = new SpriteLookup(); this.animation = new TextureAnimation(this.textures, this.flats); } catch (Exception e) { ExceptionDispatchInfo.Throw(e); } }
public void SetLookup(SpriteLookup spriteLookup) { Setup(spriteLookup); }
private void Setup(SpriteLookup lookup) { this._lookUp = lookup; _lastSprite = _spriteRenderer.sprite; _spriteDictionary = _lookUp.GetReplacementDict(); }
internal void Init(SpriteLookup spriteLookup) { spriteReplacer.SetLookup(spriteLookup); }