Show / Hide Table of Contents

Interface IElementCollection

Represents an arbitrary collection of elements, used (among others) as a repository of all elements associated with the server. Specific implementations of this can have optimised implementations for certain methods, like getting elements within range of a certain position.

Namespace: SlipeServer.Server.ElementCollections
Assembly: SlipeServer.Server.dll
Syntax
public interface IElementCollection

Properties

| Edit this page View Source

Count

Declaration
int Count { get; }
Property Value
Type Description
int

Methods

| Edit this page View Source

Add(Element)

Declaration
void Add(Element element)
Parameters
Type Name Description
Element element
| Edit this page View Source

Get(ElementId)

Declaration
Element? Get(ElementId id)
Parameters
Type Name Description
ElementId id
Returns
Type Description
Element
| Edit this page View Source

Get(uint)

Declaration
Element? Get(uint id)
Parameters
Type Name Description
uint id
Returns
Type Description
Element
| Edit this page View Source

GetAll()

Declaration
IEnumerable<Element> GetAll()
Returns
Type Description
IEnumerable<Element>
| Edit this page View Source

GetByType<TElement>()

Declaration
IEnumerable<TElement> GetByType<TElement>() where TElement : Element
Returns
Type Description
IEnumerable<TElement>
Type Parameters
Name Description
TElement
| Edit this page View Source

GetByType<TElement>(ElementType)

Declaration
IEnumerable<TElement> GetByType<TElement>(ElementType elementType) where TElement : Element
Parameters
Type Name Description
ElementType elementType
Returns
Type Description
IEnumerable<TElement>
Type Parameters
Name Description
TElement
| Edit this page View Source

GetWithinRange(Vector3, float)

Declaration
IEnumerable<Element> GetWithinRange(Vector3 position, float range)
Parameters
Type Name Description
Vector3 position
float range
Returns
Type Description
IEnumerable<Element>
| Edit this page View Source

GetWithinRange<TElement>(Vector3, float)

Declaration
IEnumerable<TElement> GetWithinRange<TElement>(Vector3 position, float range) where TElement : Element
Parameters
Type Name Description
Vector3 position
float range
Returns
Type Description
IEnumerable<TElement>
Type Parameters
Name Description
TElement
| Edit this page View Source

GetWithinRange<TElement>(Vector3, float, ElementType)

Declaration
IEnumerable<TElement> GetWithinRange<TElement>(Vector3 position, float range, ElementType elementType) where TElement : Element
Parameters
Type Name Description
Vector3 position
float range
ElementType elementType
Returns
Type Description
IEnumerable<TElement>
Type Parameters
Name Description
TElement
| Edit this page View Source

Remove(Element)

Declaration
void Remove(Element element)
Parameters
Type Name Description
Element element
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX