示例#1
0
 private bool IsBlipSirenActivated(Vehicle car)
 {
     if (!EntityDecoration.ExistOn(car, BLIPSIREN_PNAME))
     {
         return(false);
     }
     else
     {
         return(EntityDecoration.Get <bool>(car, BLIPSIREN_PNAME));
     }
 }
示例#2
0
 public static bool IsSirenMuted(Vehicle car)
 {
     if (!EntityDecoration.ExistOn(car, SILENTSIREN_PNAME))
     {
         return(false);
     }
     else
     {
         return(EntityDecoration.Get <bool>(car, SILENTSIREN_PNAME));
     }
 }
示例#3
0
 private bool IsAltSoundActivated(Vehicle car)
 {
     if (!EntityDecoration.ExistOn(car, SIRENSOUND_PNAME))
     {
         return(false);
     }
     else
     {
         return(EntityDecoration.Get <bool>(car, SIRENSOUND_PNAME));
     }
 }
示例#4
0
        public SilentSirens()
        {
            EntityDecoration.RegisterProperty(SILENTSIREN_PNAME, DecorationType.Bool);

            Tick += OnTick;
        }
示例#5
0
 private void SetSirenMuted(Vehicle car, bool state)
 {
     EntityDecoration.Set(car, SILENTSIREN_PNAME, state);
 }
示例#6
0
        public BlipSiren()
        {
            EntityDecoration.RegisterProperty(BLIPSIREN_PNAME, DecorationType.Bool);

            Tick += OnTick;
        }
示例#7
0
 private void SetBlipSirenActivated(Vehicle car, bool state)
 {
     EntityDecoration.Set(car, BLIPSIREN_PNAME, state);
 }
示例#8
0
        public SirenSound()
        {
            EntityDecoration.RegisterProperty(SIRENSOUND_PNAME, DecorationType.Bool);

            Tick += OnTick;
        }
示例#9
0
 private void SetAltSoundActivated(Vehicle car, bool state)
 {
     EntityDecoration.Set(car, SIRENSOUND_PNAME, state);
 }