public PaletteFromRGBA(World world, PaletteFromRGBAInfo info) { if (info.Theatre == null || info.Theatre.ToLowerInvariant() == world.Map.Theater.ToLowerInvariant()) { // TODO: This shouldn't rely on a base palette var wr = world.WorldRenderer; var pal = wr.GetPalette("terrain"); wr.AddPalette(info.Name, new Palette(pal, new SingleColorRemap(Color.FromArgb(info.A, info.R, info.G, info.B)))); } }
public PaletteFromRGBA(World world, PaletteFromRGBAInfo info) { this.world = world; this.info = info; }