示例#1
0
 public MyThrust()
 {
     Render.NeedsDrawFromParent = true;
     NeedsUpdate = MyEntityUpdateEnum.EACH_10TH_FRAME | MyEntityUpdateEnum.EACH_100TH_FRAME;
     m_flameCollisionsList = new List<HkBodyCollision>();
     m_damagedEntities = new List<IMyEntity>();
     m_gridRayCastLst = new List<MyPhysics.HitInfo>();
     Render = new MyRenderComponentThrust();
     AddDebugRenderComponent(new MyDebugRenderComponentThrust(this));
 }
示例#2
0
        public MyThrust()
        {
#if XB1 // XB1_SYNC_NOREFLECTION
            m_thrustOverride = SyncType.CreateAndAddProp<float>();
#endif // XB1
            CreateTerminalControls();

            Render.NeedsDrawFromParent = true;
            NeedsUpdate = MyEntityUpdateEnum.EACH_10TH_FRAME | MyEntityUpdateEnum.EACH_100TH_FRAME;
            m_flameCollisionsList = new List<HkBodyCollision>();
            m_damagedEntities = new List<IMyEntity>();
            m_gridRayCastLst = new List<MyPhysics.HitInfo>();
            Render = new MyRenderComponentThrust();
            AddDebugRenderComponent(new MyDebugRenderComponentThrust(this));
            m_thrustOverride.ValueChanged += (x) => ThrustOverrideValueChanged();
        }