Ejemplo n.º 1
0
            protected override void Start()
            {
                IMyCubeGrid grid = (IMyCubeGrid)MyAPIGateway.Entities.GetEntityById(EntityId);

                Profiler = new AeroProfiler(grid);
                Update.UpdateManager.Register(100, CheckProfiler);
            }
Ejemplo n.º 2
0
        public void Update1()
        {
            if (!m_aeroShow)
            {
                m_profiler = null;
                return;
            }

            Base6Directions.Direction gridDirection = m_cockpit.Orientation.TransformDirection(m_aeroShowDirection);
            if (m_profiler == null || m_profiler.m_drawDirection.Value != gridDirection)
            {
                m_profiler = new AeroProfiler(m_cockpit.CubeGrid, gridDirection);
            }
        }
Ejemplo n.º 3
0
 private void CubeGrid_OnBlockChange(Sandbox.Game.Entities.Cube.MySlimBlock obj)
 {
     value_profiler = null;
 }