Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,30 +31,30 @@ public ObjectiveCompletingBaseEventArgs(ReferenceHub hub, Faction faction, float
/// <summary>
/// Gets or sets the player who triggered the objective completion.
/// </summary>
public Player Player { get; }
public Player Player { get; set; }

/// <summary>
/// Gets or sets the <see cref="PlayerRoles.Faction"/> which receives the <see cref="InfluenceToGrant"/> and <see cref="TimeToGrant"/> rewards.
/// </summary>
public Faction Faction { get; }
public Faction Faction { get; set; }

/// <summary>
/// Gets or sets the amount of influence granted to the <see cref="Faction"/>.
/// </summary>
public float InfluenceToGrant { get; }
public float InfluenceToGrant { get; set; }

/// <summary>
/// Gets or sets the amount of time reduced from the <see cref="Faction"/>'s timer.
/// </summary>
/// <remarks>
/// Negative values reduce the timer, positive extends it.
/// </remarks>
public float TimeToGrant { get; }
public float TimeToGrant { get; set; }

/// <summary>
/// Gets or sets whether the objective completion has been sent to players and is visible on their screen.
/// </summary>
public bool SendToPlayers { get; }
public bool SendToPlayers { get; set; }

/// <inheritdoc/>
public bool IsAllowed { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public PlayerInteractingWarheadLeverEventArgs(ReferenceHub player, bool enabled)
/// <summary>
/// Gets or sets whether the warhead should be enabled.
/// </summary>
public bool Enabled { get; }
public bool Enabled { get; set; }

/// <inheritdoc/>
public bool IsAllowed { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ public PlayerZoneChangedEventArgs(ReferenceHub player, FacilityZone oldZone, Fac
/// <summary>
/// Gets the old zone. May be <see cref="FacilityZone.None"/> if the player just spawned, went through void and such.
/// </summary>
public FacilityZone OldZone;
public FacilityZone OldZone { get; }

/// <summary>
/// Gets the new rom. May be <see cref="FacilityZone.None"/> if the player went into void, died and such.
/// Gets the new zone. May be <see cref="FacilityZone.None"/> if the player went into void, died and such.
/// </summary>
public FacilityZone NewZone;
public FacilityZone NewZone { get; }
}
4 changes: 2 additions & 2 deletions LabApi/Features/Wrappers/Facility/Doors/Door.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ internal virtual void OnRemove()
public DoorVariant Base { get; }

/// <summary>
/// Gets the <see cref="Enums.DoorName"/> of the door.s
/// Gets the <see cref="Enums.DoorName"/> of the door.
/// </summary>
/// <remarks>
/// Is the enum version of <see cref="NameTag"/>.
Expand Down Expand Up @@ -363,4 +363,4 @@ private static void Register<T>(Func<T, Door> constructor) where T : DoorVariant
{
typeWrappers.Add(typeof(T), x => constructor((T)x));
}
}
}
8 changes: 4 additions & 4 deletions LabApi/Features/Wrappers/Facility/Map.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ public static class Map
public static void RemoveEscapeZone(Bounds escapeZone) => EscapeZones.Remove(escapeZone);

#region Get Random
/// <summary>
/// Gets a random <see cref="Room"/>.
/// </summary>
/// <returns>The random room if there were any rooms otherwise null.</returns>
/// <summary>
/// Gets a random <see cref="Room"/>.
/// </summary>
/// <returns>The random room if there were any rooms otherwise <see langword="null"/>.</returns>
public static Room? GetRandomRoom()
{
return Rooms.Count != 0 ? Rooms.ElementAt(UnityEngine.Random.Range(0, Rooms.Count)) : null;
Expand Down
4 changes: 2 additions & 2 deletions LabApi/Features/Wrappers/Facility/Warhead.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ public static bool ForceCountdownToggle
}

/// <summary>
/// Indicates how much time is left for the DMS to activate.
/// Value is capped by <see cref="DeadManSwitchMaxTime"/>.
/// Indicates how much time is left for the DMS to activate.
/// Value is capped by <see cref="DeadManSwitchMaxTime"/>.
/// </summary>
public static float DeadManSwitchRemaining
{
Expand Down