123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- using System;
- using System.Timers;
- using OpenMetaverse;
- namespace OpenSim.Region.Physics.Manager
- {
- [Flags]
- public enum SenseType : uint
- {
- NONE = 0,
- AGENT = 1,
- ACTIVE = 2,
- PASSIVE = 3,
- SCRIPTED = 4
- }
- public abstract class PhysicsSensor
- {
- public static PhysicsSensor Null
- {
- get { return new NullPhysicsSensor(); }
- }
- public abstract Vector3 Position { get; set; }
- public abstract void TimerCallback (object obj, ElapsedEventArgs eea);
- public abstract float radianarc {get; set;}
- public abstract string targetname {get; set;}
- public abstract Guid targetKey{get;set;}
- public abstract SenseType sensetype { get;set;}
- public abstract float range { get;set;}
- public abstract float rateSeconds { get;set;}
- }
- public class NullPhysicsSensor : PhysicsSensor
- {
- public override Vector3 Position
- {
- get { return Vector3.Zero; }
- set { return; }
- }
- public override void TimerCallback(object obj, ElapsedEventArgs eea)
- {
-
- }
- public override float radianarc { get { return 0f; } set { } }
- public override string targetname { get { return ""; } set { } }
- public override Guid targetKey { get { return Guid.Empty; } set { } }
- public override SenseType sensetype { get { return SenseType.NONE; } set { } }
- public override float range { get { return 0; } set { } }
- public override float rateSeconds { get { return 0; } set { } }
- }
- }
|