Class Team
Class representing a team of players
Inherited Members
Namespace: Slipe.Server.Game
Assembly: SlipeServer.dll
Syntax
[DefaultElementClass(ElementType.Team)]
public class Team : Element
Constructors
| Improve this Doc View SourceTeam(String, Color)
Create a new team on the server
Declaration
public Team(string name, Color color)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of this team |
Color | color | The color of this team |
Properties
| Improve this Doc View SourceColor
Get and set the team color
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color |
FriendlyFire
Get and set the friendly fire property of this team
Declaration
public bool FriendlyFire { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Name
Get and set the name of this team
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
PlayerCount
Get the amount of players on this team
Declaration
public int PlayerCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
Players
Get a list of players on this team
Declaration
public Player[] Players { get; }
Property Value
Type | Description |
---|---|
Player[] |