Show / Hide Table of Contents

Class Sirens

Represents the set of all sirens on a vehicle

Inheritance
Object
SharedSirens
Sirens
Inherited Members
SharedSirens.vehicle
SharedSirens.type
SharedSirens.visibleFromAllDirection
SharedSirens.checkLOS
SharedSirens.useRandomiser
SharedSirens.silent
SharedSirens.All
SharedSirens.UpdateParams()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Server.Vehicles
Assembly: SlipeServer.dll
Syntax
public class Sirens : SharedSirens

Constructors

| Improve this Doc View Source

Sirens(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 Source

CheckLineOfSight

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
| Improve this Doc View Source

On

Get and set if the sirens are on

Declaration
public bool On { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Silent

If the silent is silent (no audio) or not

Declaration
public bool Silent { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Type

Get the type of this siren set

Declaration
public SirenType Type { get; set; }
Property Value
Type Description
SirenType
| Improve this Doc View Source

UseRandomiser

Randomise the light order, false for sequential

Declaration
public bool UseRandomiser { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

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 Source

Add(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
  • Improve this Doc
  • View Source
Back to top Generated by DocFX