Class FlagObjective
public class FlagObjective : IDisposable, IObjective, ITransformObject
- Inheritance
-
FlagObjective
- Implements
- Inherited Members
- Extension Methods
Constructors
FlagObjective(ZoneRegion, int)
public FlagObjective(ZoneRegion region, int index)
Parameters
regionZoneRegionindexint
FlagObjective(ZoneRegion, int, Team)
public FlagObjective(ZoneRegion region, int index, Team startingOwner)
Parameters
regionZoneRegionindexintstartingOwnerTeam
Properties
Center
public Vector3 Center { get; }
Property Value
- Vector3
Contest
public SingleLeaderContest Contest { get; }
Property Value
CurrentContestState
public FlagContestState CurrentContestState { get; }
Property Value
Index
public int Index { get; }
Property Value
IsActive
If this objective is currently active in the game (instead of waiting to be activated or something like a cache that hasn't spawned yet).
public bool IsActive { get; }
Property Value
IsContested
public bool IsContested { get; }
Property Value
Name
The display-name of this objective.
public string Name { get; }
Property Value
Owner
The team that owns this objective.
public Team Owner { get; }
Property Value
Players
public ReadOnlyTrackingList<WarfarePlayer> Players { get; }
Property Value
Region
public ZoneRegion Region { get; }
Property Value
Methods
Discover(Team)
Add a team to the list of teams who have discovered this flag.
public bool Discover(Team team)
Parameters
teamTeam
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposingbool
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
IsDiscovered(CSteamID)
Check if a team has discovered the flag.
public bool IsDiscovered(CSteamID groupId)
Parameters
groupIdCSteamID
Returns
IsDiscovered(Team)
Check if a team has discovered the flag.
public bool IsDiscovered(Team team)
Parameters
teamTeam
Returns
IsPastOwner(Team)
public bool IsPastOwner(Team team)
Parameters
teamTeam
Returns
MarkContested(bool)
public void MarkContested(bool isContested)
Parameters
isContestedbool
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.