public SpawnAimer( float xpos, float ypos, int dir, float moveSpeed, Color color, DuckPersona person, float thickness) : base(xpos, ypos) { this._moveSpeed = moveSpeed; this._color = color; this._thickness = thickness; this.offDir = (sbyte)dir; this._persona = person; this.targetPos = new Vec2(xpos, ypos); if (this._persona == Persona.Duck1) { this.position = new Vec2(0.0f, 0.0f); } else if (this._persona == Persona.Duck2) { this.position = new Vec2(320f, 0.0f); } else if (this._persona == Persona.Duck3) { this.position = new Vec2(0.0f, 180f); } else if (this._persona == Persona.Duck4) { this.position = new Vec2(320f, 180f); } this.prevPos.Add(this.position); this.layer = Layer.HUD; }
public UnlockableHats( string identifier, List <Team> t, Func <bool> condition, string nam, string desc, string achieve = "") : base(identifier, condition, nam, desc, achieve) { this._teams = t; this._showScreen = true; this._persona = Persona.all.ElementAt <DuckPersona>(Rando.Int(3)); }
void resetAll() { while (ActiveReskins.Any()) { resetReskin(ActiveReskins.Keys.First()); } List <DuckPersona> list = Persona.all as List <DuckPersona>; for (int index = 0; index < list.Count; ++index) { Profiles.core._profiles[index].persona = list[index] = new DuckPersona(list[index].color); } }
public UnlockableDevtimes(string identifier, Func <bool> condition, string nam, string desc) : base(identifier, condition, nam, desc) { this._persona = Persona.all.ElementAt <DuckPersona>(Rando.Int(3)); this._showScreen = true; }
public static int Number(DuckPersona p) => Persona._personas.IndexOf(p);