Class TLightInstancesList

Unit

Declaration

type TLightInstancesList = class(specialize TGenericStructList<TLightInstance>)

Description

No description available, ancestor TGenericStructList description follows

Generic list of types that are compared by CompareByte.

This is equivalent to TFPGList, except it doesn't override IndexOf, so your type doesn't need to have a "=" operator built-in inside FPC. When calling IndexOf or Remove, it will simply compare values using CompareByte, this is what TFPSList.IndexOf uses. This way it works to create lists of records, vectors (constant size arrays), old-style TP objects, and also is suitable to create a list of methods (since for methods, the "=" is broken, for Delphi compatibility, see http://bugs.freepascal.org/view.php?id=9228).

We also add some trivial helper methods like Add and L.

Hierarchy

Overview

Methods

Public function IndexOfNode(Node: TAbstractLightNode): integer;
Public function FindName(NodeName: string): PLightInstance;
Public function Equals(SecondValue: TObject): boolean; override;
Public procedure AppendInWorldCoordinates(const AList: TLightInstancesList);

Description

Methods

Public function IndexOfNode(Node: TAbstractLightNode): integer;

Find given light node. Return -1 if not found.

Public function FindName(NodeName: string): PLightInstance;

Find light with given node name. Return Nil if not found.

Public function Equals(SecondValue: TObject): boolean; override;
 
Public procedure AppendInWorldCoordinates(const AList: TLightInstancesList);

Append List to our contents, setting every light's WorldCoordinates = True.


Generated by PasDoc 0.14.0.