Class HumanObjective<T>
- Namespace
- Exiled.API.Features.Objectives
- Assembly
- Exiled.API.dll
Represents a human objective.
public class HumanObjective<T> : Objective, IWrapper<FactionObjectiveBase>, IWrapper<HumanObjectiveBase<T>> where T : ObjectiveFootprintBase, new()
Type Parameters
T
An objective footprint type.
- Inheritance
-
TypeCastObject<FactionObjectiveBase>HumanObjective<T>
- Derived
- Inherited Members
- Extension Methods
Properties
Achiever
Gets or sets the achiever.
public Player Achiever { get; set; }
Property Value
Remarks
Can be null
if ObjectiveFootprint is null
.
Setter affects only client notification.
Base
Gets the base Respawning.Objectives.HumanObjectiveBase{`0} that this class is wrapping.
public HumanObjectiveBase<T> Base { get; }
Property Value
- HumanObjectiveBase<T>
InfluenceReward
Gets or sets the influence reward.
public float InfluenceReward { get; set; }
Property Value
Remarks
Can be 0
if ObjectiveFootprint is null
.
Setter affects only client notification.
ObjectiveFootprint
Gets or sets the objective footprint.
public T ObjectiveFootprint { get; set; }
Property Value
- T
Remarks
Can be null
. It's being set by game only before achieving.
TimeReward
Gets or sets the time reward.
public float TimeReward { get; set; }
Property Value
Remarks
Can be 0
if ObjectiveFootprint is null
.
Setter affects only client notification.
Methods
Achieve(T)
Achieves the objective.
public void Achieve(T objectiveFootprint)
Parameters
objectiveFootprint
TAn objective footprint instance.