Beispiel #1
0
        public static uint AuxSend(Vector3 pos, AkAuxSendArray array)
        {
            array.Reset();
            Zone z = Zone.Get(pos);

            if (z == null)
            {
                return(0);
            }
            else
            {
                uint count;
                switch (z.Reverb.Value)
                {
                case ReverbMode.Room:
                    array.Add(AK.AUX_BUSSES.REVERB, 1.0f);
                    count = 1;
                    break;

                case ReverbMode.Subtle:
                    array.Add(AK.AUX_BUSSES.REVERB_SUBTLE, 1.0f);
                    count = 1;
                    break;

                default:
                    count = 0;
                    break;
                }
                return(count);
            }
        }
Beispiel #2
0
        public void Update(float dt)
        {
            // Update every other frame
            if (this.lastFrameUpdated)
            {
                this.lastFrameUpdated = false;
                return;
            }
            this.lastFrameUpdated = true;

            Zone newZone = Zone.Get(this.main.Camera.Position);

            if (newZone != this.CurrentZone.Value || (newZone == null && (this.main.Camera.Position - this.lastUpdatedCameraPosition).Length() > 10.0f))
            {
                this.updateZones(newZone);
            }
        }
Beispiel #3
0
 public void UpdateZones()
 {
     this.updateZones(Zone.Get(this.main.Camera.Position));
 }
Beispiel #4
0
        public static bool CanSpawnAt(Vector3 x)
        {
            Zone z = Zone.Get(x);

            return(z == null || z.CanSpawn.Value);
        }