Exemplo n.º 1
0
        public InterruptData this[EInterruptType type]
        {
            get
            {
                switch (type)
                {
                case EInterruptType.GunSight:
                    return(InterruptGunSightWeapon);

                case EInterruptType.HoldWeapon:
                    return(InterruptHoldWeapon);

                default:
                    return(InterruptPullboltWeapon);
                }
            }
            set
            {
                switch (type)
                {
                case EInterruptType.GunSight:
                    InterruptGunSightWeapon = value;
                    break;

                case EInterruptType.HoldWeapon:
                    InterruptHoldWeapon = value;
                    break;

                case EInterruptType.Pullbolt:
                    InterruptPullboltWeapon = value;
                    break;
                }
            }
        }
Exemplo n.º 2
0
 public void CopyFrom(InterruptData remote)
 {
     cmdType  = remote.cmdType;
     hasValue = remote.hasValue;
     state    = remote.state;
 }