![]() |
Public API Reference |
This is a property class holding the representation of a light. More...
#include <propclass/light.h>
Public Member Functions | |
| virtual iLight * | CreateLight (const char *lightname, iSector *sector, const csVector3 &pos, float radius, const csColor &color)=0 |
| Create a light with a given name. | |
| virtual iLight * | GetLight () const =0 |
| Get the light. | |
| virtual bool | SetLight (const char *lightname)=0 |
| Set the light by name. | |
| virtual void | SetLight (iLight *light)=0 |
| Set the light directly. | |
This is a property class holding the representation of a light.
This property class supports the following actions (add prefix 'cel.light.action.' if you want to access this action through a message):
| virtual iLight* iPcLight::CreateLight | ( | const char * | lightname, |
| iSector * | sector, | ||
| const csVector3 & | pos, | ||
| float | radius, | ||
| const csColor & | color | ||
| ) | [pure virtual] |
Create a light with a given name.
Sector can be 0.
| virtual iLight* iPcLight::GetLight | ( | ) | const [pure virtual] |
Get the light.
| virtual bool iPcLight::SetLight | ( | const char * | lightname | ) | [pure virtual] |
Set the light by name.
Returns false if the light cannot be found.
| virtual void iPcLight::SetLight | ( | iLight * | light | ) | [pure virtual] |
Set the light directly.