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.
 
  
  
  Assembly: SlipeServer.Server.dll
  Syntax
  
    public interface IElementCollection
   
  Properties
  
    |
    Edit this page
  
  
    View Source
  
  
  Count
  
  
  Declaration
  
  Property Value
  
  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
  
  Returns
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Get(uint)
  
  
  Declaration
  
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | uint | 
        id | 
         | 
      
    
  
  Returns
  
  
    |
    Edit this page
  
  
    View Source
  
  
  GetAll()
  
  
  Declaration
  
    IEnumerable<Element> GetAll()
   
  Returns
  
  
    |
    Edit this page
  
  
    View Source
  
  
  GetByType<TElement>()
  
  
  Declaration
  
    IEnumerable<TElement> GetByType<TElement>() where TElement : Element
   
  Returns
  
  Type Parameters
  
    
      
        | Name | 
        Description | 
      
    
    
      
        | TElement | 
         | 
      
    
  
  
    |
    Edit this page
  
  
    View Source
  
  
  GetByType<TElement>(ElementType)
  
  
  Declaration
  
    IEnumerable<TElement> GetByType<TElement>(ElementType elementType) where TElement : Element
   
  Parameters
  
  Returns
  
  Type Parameters
  
    
      
        | Name | 
        Description | 
      
    
    
      
        | TElement | 
         | 
      
    
  
  
    |
    Edit this page
  
  
    View Source
  
  
  GetWithinRange(Vector3, float)
  
  
  Declaration
  
    IEnumerable<Element> GetWithinRange(Vector3 position, float range)
   
  Parameters
  
  Returns
  
  
    |
    Edit this page
  
  
    View Source
  
  
  GetWithinRange<TElement>(Vector3, float)
  
  
  Declaration
  
    IEnumerable<TElement> GetWithinRange<TElement>(Vector3 position, float range) where TElement : Element
   
  Parameters
  
  Returns
  
  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
  
  Returns
  
  Type Parameters
  
    
      
        | Name | 
        Description | 
      
    
    
      
        | TElement | 
         | 
      
    
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Remove(Element)
  
  
  Declaration
  
    void Remove(Element element)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Element | 
        element | 
         |