Class Team
A team element
A team represents a collection of players, along with some simple properties like a color, name and friendly fire setting.
Assembly: SlipeServer.Server.dll
Syntax
public class Team : Element, IEnumerable
Constructors
|
Edit this page
View Source
Team(string, Color)
Declaration
public Team(string name, Color color)
Parameters
Properties
|
Edit this page
View Source
Color
Declaration
public Color Color { get; set; }
Property Value
|
Edit this page
View Source
ElementType
The element type as per MTA's specifications. Multiple C# types can share the same MTA element type.
Declaration
public override ElementType ElementType { get; }
Property Value
Overrides
|
Edit this page
View Source
IsFriendlyFireEnabled
Declaration
public bool IsFriendlyFireEnabled { get; set; }
Property Value
|
Edit this page
View Source
Players
Declaration
public List<Player> Players { get; set; }
Property Value
|
Edit this page
View Source
TeamName
Declaration
public string TeamName { get; set; }
Property Value
Methods
|
Edit this page
View Source
AssociateWith(MtaServer)
Declaration
public Team AssociateWith(MtaServer server)
Parameters
Returns
|
Edit this page
View Source
GetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
public IEnumerator GetEnumerator()
Returns
Implements
Extension Methods