Click or drag to resize

InspectorListT Class

Exactly the same as generic List, but has a custom property drawer that draws a re-orderable list in the inspector.
Inheritance Hierarchy
SystemObject
  Gamelogic.ExtensionsInspectorList
    Gamelogic.ExtensionsInspectorListT
      More...

Namespace:  Gamelogic.Extensions
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
[SerializableAttribute]
[VersionAttribute(2, 5, 0)]
public class InspectorList<T> : InspectorList, 
	IList<T>, IEnumerable, ICollection<T>, IEnumerable<T>

Type Parameters

T
The type of the contents of this list.

The InspectorListT type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCount
Public propertyIsReadOnly
Public propertyItem
Top
Methods
  NameDescription
Public methodAdd
Public methodClear
Public methodContains
Public methodCopyTo
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumerator
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodIndexOf
Public methodInsert
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemove
Public methodRemoveAt
Public methodToString (Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodAddRangeT
Add all elements of other to the given source.
(Defined by CollectionExtensions.)
Public Extension MethodBinarySearchT, TElement(TElement, FuncT, TElement)Overloaded.
Find an element in a collection by binary searching. This requires the collection to be sorted on the values returned by getSubElement This will compare some derived property of the elements in the collection, rather than the elements themselves.
(Defined by CollectionExtensions.)
Public Extension MethodBinarySearchT, TElement(TElement, FuncT, TElement, IComparerTElement)Overloaded.
Find an element in a collection by binary searching. This requires the collection to be sorted on the values returned by getSubElement This will compare some derived property of the elements in the collection, rather than the elements themselves.
(Defined by CollectionExtensions.)
Public Extension MethodBinarySearchT, TElement(TElement, FuncT, TElement, Int32, Int32)Overloaded.
Find an element in a collection by binary searching. This requires the collection to be sorted on the values returned by getSubElement This will compare some derived property of the elements in the collection, rather than the elements themselves.
(Defined by CollectionExtensions.)
Public Extension MethodBinarySearchT, TElement(TElement, FuncT, TElement, Int32, Int32, IComparerTElement)Overloaded.
Find an element in a collection by binary searching. This requires the collection to be sorted on the values returned by getSubElement This will compare some derived property of the elements in the collection, rather than the elements themselves.
(Defined by CollectionExtensions.)
Public Extension MethodButFirstT
Returns an enumerable of all elements of the given list but the first, keeping them in order.
(Defined by CollectionExtensions.)
Public Extension MethodButLastT
Returns an enumerable of all elements in the given list but the last, keeping them in order.
(Defined by CollectionExtensions.)
Public Extension MethodCombinationsT
Generates all combinations of m elements selected from the list.
(Defined by Combinatorial.)
Public Extension MethodFilterByTypeT, TFilter
Returns all elements of the source which are of FilterType.
(Defined by CollectionExtensions.)
Public Extension MethodIsEmptyT
Returns whether this source is empty.
(Defined by CollectionExtensions.)
Public Extension MethodListToStringT
Returns a pretty string representation of the given list. The resulting string looks something like [a, b, c].
(Defined by CollectionExtensions.)
Public Extension MethodMaxByT(FuncT, IComparable)Overloaded.
Finds the maximum element in the source as scored by the given function.
(Defined by CollectionExtensions.)
Public Extension MethodMaxByT, TKey(FuncT, TKey)Overloaded.
Finds the minimum element in the source as scored by its projection.
(Defined by CollectionExtensions.)
Public Extension MethodMaxByT, TKey(FuncT, TKey, IComparerTKey)Overloaded.
Finds the minimum element in the source as scored by the given function applied to a projection on the elements.
(Defined by CollectionExtensions.)
Public Extension MethodMinByT, TKey(FuncT, TKey)Overloaded.
Finds the minimum element in the source as scored by its projection.
(Defined by CollectionExtensions.)
Public Extension MethodMinByT, TKey(FuncT, TKey, IComparerTKey)Overloaded.
Finds the minimum element in the source as scored by the given function applied to a projection on the elements.
(Defined by CollectionExtensions.)
Public Extension MethodPartitionsT
Returns a list of all the partitions of a list.
(Defined by Combinatorial.)
Public Extension MethodPermutationsT
Generates all permutations of the list of elements.
(Defined by Combinatorial.)
Public Extension MethodPowerSetT
Returns the power set of the input, that is, the set of all subsets of the input.
(Defined by Combinatorial.)
Public Extension MethodRandomItemTOverloaded.
Returns a random element from a source.
(Defined by CollectionExtensions.)
Public Extension MethodRandomItemT(IRandom)Overloaded.
Returns a random element from a source.
(Defined by CollectionExtensions.)
Public Extension MethodRotateLeftT
Returns a enumerable with elements in order, but the first element is moved to the end.
(Defined by CollectionExtensions.)
Public Extension MethodRotateRightT
Returns a enumerable with elements in order, but the last element is moved to the front.
(Defined by CollectionExtensions.)
Public Extension MethodSampleRandomT(Int32)Overloaded.
Returns a random sample from a source.
(Defined by CollectionExtensions.)
Public Extension MethodSampleRandomT(Int32, IRandom)Overloaded.
Returns a random sample from a source.
(Defined by CollectionExtensions.)
Public Extension MethodShuffleTOverloaded.
Shuffles a list.
(Defined by CollectionExtensions.)
Public Extension MethodShuffleT(IRandom)Overloaded.
Shuffles a list.
(Defined by CollectionExtensions.)
Public Extension MethodTakeHalfT
Returns the first half of elements from a source.
(Defined by CollectionExtensions.)
Public Extension MethodTakeLastT
Returns the last n elements from a source.
(Defined by CollectionExtensions.)
Public Extension MethodThrowIfNull
Throws a NullReferenceException if the object is null.
(Defined by ObjectExtensions.)
Public Extension MethodToPeriodicGeneratorT (Defined by GeneratorExtensions.)
Public Extension MethodToRandomElementGeneratorT (Defined by GeneratorExtensions.)
Public Extension MethodTuplesT (Defined by Combinatorial.)
Top
Explicit Interface Implementations
Remarks
This class should not be used directly (otherwise, it will not appear in the inspector). Instead, use either one of the provided sub classes, or a define a new custom non-generic subclass and use that.
See Also
Inheritance Hierarchy
SystemObject
  Gamelogic.ExtensionsInspectorList
    Gamelogic.ExtensionsInspectorListT
      Gamelogic.ExtensionsColorList
      Gamelogic.ExtensionsFloatList
      Gamelogic.ExtensionsIntList
      Gamelogic.ExtensionsMonoBehaviourList
      Gamelogic.ExtensionsObjectList
      Gamelogic.ExtensionsStringList
      Gamelogic.ExtensionsVector2List
      Gamelogic.ExtensionsVector3List
      Gamelogic.ExtensionsVector4List