Show / Hide Table of Contents

Class Siren

Represents a single siren point

Inheritance
Object
Siren
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Shared.Vehicles
Assembly: SlipeShared.dll
Syntax
public class Siren

Constructors

| Improve this Doc View Source

Siren(SharedVehicle, Int32, Vector3, Color, Single, Boolean)

Build a vehicle siren

Declaration
public Siren(SharedVehicle vehicle, int point, Vector3 position, Color color, float minAlpha = 0F, bool updateOnConstruct = true)
Parameters
Type Name Description
SharedVehicle vehicle
Int32 point
Vector3 position
Color color
Single minAlpha
Boolean updateOnConstruct

Properties

| Improve this Doc View Source

Color

Set the color of this siren, including alpha

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

MinimalAlpha

The minimum alpha of the light during day time

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

Position

Set the relative position of this siren from the center of the vehicle

Declaration
public Vector3 Position { get; set; }
Property Value
Type Description
Vector3

Methods

| Improve this Doc View Source

UpdateThisSiren()

Declaration
protected void UpdateThisSiren()
  • Improve this Doc
  • View Source
Back to top Generated by DocFX