public PlayerColorPalette(Actor self, PlayerColorPaletteInfo info) { var wr = self.World.WorldRenderer; var pal = wr.GetPalette(info.BasePalette); var newpal = new Palette(pal, new PlayerColorRemap( Util.ArrayToColor(info.Color1), Util.ArrayToColor(info.Color2), info.SplitRamp)); wr.AddPalette(info.Name, newpal); }
public PlayerColorPalette(Player owner, PlayerColorPaletteInfo info) { this.owner = owner; this.info = info; }
public PlayerColorPalette( Player owner, PlayerColorPaletteInfo info ) { this.owner = owner; this.info = info; }
public PlayerColorPalette(PlayerColorPaletteInfo info) { this.info = info; }