Exemplo n.º 1
0
        public MyShipController()
        {
#if XB1 // XB1_SYNC_NOREFLECTION
            m_controlThrusters = SyncType.CreateAndAddProp<bool>();
            m_controlWheels = SyncType.CreateAndAddProp<bool>();
            m_dampenersEnabled = SyncType.CreateAndAddProp<bool>();
            m_isMainCockpit = SyncType.CreateAndAddProp<bool>();
            m_horizonIndicatorEnabled = SyncType.CreateAndAddProp<bool>();
#endif // XB1
            CreateTerminalControls();

            m_isShooting = new bool[(int)MyEnum<MyShootActionEnum>.Range.Max + 1];
            ControllerInfo.ControlAcquired += OnControlAcquired;
            ControllerInfo.ControlReleased += OnControlReleased;
            GridSelectionSystem = new MyGridSelectionSystem(this);
            m_soundEmitter = new MyEntity3DSoundEmitter(this, true);

            m_isMainCockpit.ValueChanged += (x) => MainCockpitChanged();
            m_dampenersEnabled.ValueChanged += (x) => DampenersEnabledChanged();
        }
Exemplo n.º 2
0
 public MyShipController()
 {
     ControllerInfo.ControlAcquired += OnControlAcquired;
     ControllerInfo.ControlReleased += OnControlReleased;
     GridSelectionSystem = new MyGridSelectionSystem(this);
     m_soundEmitter = new MyEntity3DSoundEmitter(this);
 }
        public MyShipController()
        {
            CreateTerminalControls();

            m_isShooting = new bool[(int)MyEnum<MyShootActionEnum>.Range.Max + 1];
            ControllerInfo.ControlAcquired += OnControlAcquired;
            ControllerInfo.ControlReleased += OnControlReleased;
            GridSelectionSystem = new MyGridSelectionSystem(this);
            m_soundEmitter = new MyEntity3DSoundEmitter(this, true);

            m_isMainCockpit.ValueChanged += (x) => MainCockpitChanged();
            m_dampenersEnabled.ValueChanged += (x) => DampenersEnabledChanged();
        }