The XLight class serves the work with light in the XWorld world.

The XLight..::.XLightCollection type exposes the following members.

Constructors

  NameDescription
XLight..::.XLightCollection
Creates new XLight..::.XLightCollection class instance with the given XSprite sprite as the collection owner.

Methods

  NameDescription
Add
Adds the XLight light to the collection.
AddDirectionalLightOverloaded.
AddPointLightOverloaded.
AddSpotLightOverloaded.
Clear
Removes all lights XLight from the collection.
Contains
Returns trueTruetruetrue (True in Visual Basic) if the collection contains the given light.
CopyTo
Copies collection items to the Array array, starting at the index index in the array array.
Equals

Determines whether the specified Object is equal to the current Object.

(Inherited from Object.)
Finalize

Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

(Inherited from Object.)
GetEnumerator
Gets the enumerator to iterate through all collection items.
GetHashCode

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

(Inherited from Object.)
GetType

Gets the Type of the current instance.

(Inherited from Object.)
IndexOf
Returns the XLight light position in the collection.
Insert
Adds the light to the light collection.
MemberwiseClone

Creates a shallow copy of the current Object.

(Inherited from Object.)
Remove
Removes the XLight light from the light collection.
RemoveAt
Removes the XLight light at the given position.
ToArray
Creates an array from the collection.
ToString

Returns a String that represents the current Object.

(Inherited from Object.)

Properties

  NameDescription
Count
Gets collection lights count.
IsFixedSize
Determines whether the collection has fixed size.
IsReadOnly
Determines whether the collection is read-only.
IsSynchronized
Determines whether the access to this collection is synchronized and thus the time-dependent errors cannot occure in the multi-thread programming (is thread-safe).
Item
Gets or sets the XLight light at the given position.
SyncRoot
Returns the object that can be used for synchronizing access to this instance.

See Also