Class PlayerSquadExtensions
- Namespace
- Uncreated.Warfare.Players.Extensions
- Assembly
- Uncreated.Warfare.dll
public static class PlayerSquadExtensions
- Inheritance
-
PlayerSquadExtensions
- Inherited Members
Methods
GetSquad(WarfarePlayer)
Gets the player's current squad.
public static Squad? GetSquad(this WarfarePlayer player)
Parameters
playerWarfarePlayer
Returns
IsInFullSquad(WarfarePlayer)
Gets if a player is currently in a squad which can no longer fit any more members.
public static bool IsInFullSquad(this WarfarePlayer player)
Parameters
playerWarfarePlayer
Returns
IsInSquad(WarfarePlayer)
Gets if a player is currently in a squad.
public static bool IsInSquad(this WarfarePlayer player)
Parameters
playerWarfarePlayer
Returns
IsInSquadWith(WarfarePlayer, IPlayer)
Gets if a player is currently in a squad with another player.
public static bool IsInSquadWith(this WarfarePlayer player, IPlayer other)
Parameters
playerWarfarePlayerotherIPlayer
Returns
IsNonLeaderSquadMember(WarfarePlayer)
Gets if a player is currently a member in a squad but not a leader.
public static bool IsNonLeaderSquadMember(this WarfarePlayer player)
Parameters
playerWarfarePlayer
Returns
IsSquadLeader(WarfarePlayer)
Gets if a player is currently the leader of their squad.
public static bool IsSquadLeader(this WarfarePlayer player)
Parameters
playerWarfarePlayer