public RallyPointIndicator(Actor building, RallyPoint rp) { this.building = building; this.rp = rp; flag = new Animation(building.World, rp.Info.Image); flag.PlayRepeating(rp.Info.FlagSequence); circles = new Animation(building.World, rp.Info.Image); circles.Play(rp.Info.CirclesSequence); }
public RallyPointIndicator(Actor building, string palettePrefix) { this.building = building; this.palettePrefix = palettePrefix; rp = building.Trait <RallyPoint>(); flag = new Animation(building.World, "rallypoint"); circles = new Animation(building.World, "rallypoint"); flag.PlayRepeating("flag"); circles.Play("circles"); }
public RallyPointIndicator(Actor building, RallyPoint rp, ExitInfo[] exits) { this.building = building; this.rp = rp; this.exits = exits; if (rp.Info.Image != null) { flag = new Animation(building.World, rp.Info.Image); flag.PlayRepeating(rp.Info.FlagSequence); circles = new Animation(building.World, rp.Info.Image); circles.Play(rp.Info.CirclesSequence); } }
public RallyPointIndicator(Actor building, RallyPoint rp) { this.building = building; this.rp = rp; if (rp.Info.Image != null) { flag = new Animation(building.World, rp.Info.Image); flag.PlayRepeating(rp.Info.FlagSequence); circles = new Animation(building.World, rp.Info.Image); circles.Play(rp.Info.CirclesSequence); } UpdateTargetLineNodes(building.World); }