Class Sirens
Represents the set of all sirens on a vehicle
Inherited Members
Namespace: Slipe.Server.Vehicles
Assembly: SlipeServer.dll
Syntax
public class Sirens : SharedSirens
Constructors
| Improve this Doc View SourceSirens(SharedVehicle)
Create a sirens set attached to a vehicle
Declaration
public Sirens(SharedVehicle vehicle)
Parameters
| Type | Name | Description |
|---|---|---|
| SharedVehicle | vehicle |
Properties
| Improve this Doc View SourceCheckLineOfSight
Check line of sight between camera and light so it won't draw if blocked
Declaration
public bool CheckLineOfSight { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
On
Get and set if the sirens are on
Declaration
public bool On { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Silent
If the silent is silent (no audio) or not
Declaration
public bool Silent { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Type
Get the type of this siren set
Declaration
public SirenType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| SirenType |
UseRandomiser
Randomise the light order, false for sequential
Declaration
public bool UseRandomiser { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
VisibleFromAllDirections
Visible from all directions (applies to single type only)
Declaration
public bool VisibleFromAllDirections { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Methods
| Improve this Doc View SourceAdd(Vector3, Color, Single)
Add an individual siren point, returns false if the maximum amount of sirens is reached
Declaration
public bool Add(Vector3 position, Color color, float minAlpha)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | |
| Color | color | |
| Single | minAlpha |
Returns
| Type | Description |
|---|---|
| Boolean |