Vixen
c7401864
csharp
public sealed class ObjectiveState

One objective's live state.

Read the guide page for this →

Remarks

⚠ Progress is a signed number towards one team, and taking a point back has to pass through neutral. Two separate per-team meters would let a point flip the instant the last defender dies, because the attackers' meter had been filling the whole time they were being held off. One meter that has to be pushed down to zero and then up again is what makes a contested point take time to lose as well as to gain.

Fields and properties (7)

  • public PvpObjective Objective

    What it is.

  • public int Owner

    Which team holds it, or −1.

  • public int Capturing

    Which team the meter is filling for, or −1 when it is empty.

  • public float Progress

    How full the meter is, from zero to one.

  • public bool IsContested

    Whether more than one team is on it.

  • public float SinceTick

    How long since it last scored.

  • public int[] Present

    How many of each team are on it. Set by the caller each tick.

Used by (2)

  • PvpMatchVixen.Gameplay.Pvp
  • PvpMatchTestsVixen.Gameplay.Pvp.Tests