Show / Hide Table of Contents

Class Team

Class representing a team of players

Inheritance
Object
Element
Team
Inherited Members
Element.element
Element.Root
Element.MTAElement
Element.Type
Element.ID
Element.Exists
Element.ChildCount
Element.Parent
Element.CallPropagationEnabled
Element.SetData(String, Object, Boolean)
Element.GetData(String, Boolean)
Element.TryGetData(String, Object, Boolean)
Element.GetData<T>(String, Boolean)
Element.TryGetData<T>(String, T, Boolean)
Element.Destroy()
Element.GetChild(Int32)
Element.GetChildren(String)
Element.GetByID(String, Int32)
Element.ListenForEvent(String, Boolean, String)
Element.HandleEvent(String, MtaElement, Object, Object, Object, Object, Object, Object, Object, Object)
Element.OnDestroy
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Server.Game
Assembly: SlipeServer.dll
Syntax
[DefaultElementClass(ElementType.Team)]
public class Team : Element

Constructors

| Improve this Doc View Source

Team(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 Source

Color

Get and set the team color

Declaration
public Color Color { get; set; }
Property Value
Type Description
Color
| Improve this Doc View Source

FriendlyFire

Get and set the friendly fire property of this team

Declaration
public bool FriendlyFire { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Name

Get and set the name of this team

Declaration
public string Name { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

PlayerCount

Get the amount of players on this team

Declaration
public int PlayerCount { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

Players

Get a list of players on this team

Declaration
public Player[] Players { get; }
Property Value
Type Description
Player[]

Extension Methods

ElementExtensions.SetVisibleTo(Element, Element, Boolean)
ElementExtensions.ClearVisibleTo(Element)
ElementExtensions.IsVisibleTo(Element, Element)
ElementExtensions.Clone(Element, Vector3)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX