Пример #1
0
        protected override void ReadData(DataBuffer buf, FileFormat fmt)
        {
            WheelDamageEffect = buf.ReadFloat();
            Engine            = buf.ReadByte();
            Wheels            = buf.ReadArray <WheelStatus>(NumWheels);
            Doors             = buf.ReadArray <DoorStatus>(NumDoors);
            buf.Skip(1);
            int lightStatus = buf.ReadInt32();
            int panelStatus = buf.ReadInt32();

            Field24h = buf.ReadInt32();

            Lights.Clear();
            for (int i = 0; i < NumLights; i++)
            {
                Lights.Add((LightStatus)(lightStatus & 0x3));
                lightStatus >>= 2;
            }

            Panels.Clear();
            for (int i = 0; i < NumPanels; i++)
            {
                Panels.Add((PanelStatus)(panelStatus & 0xF));
                panelStatus >>= 4;
            }

            Debug.Assert(buf.Offset == SizeOfType <DamageManager>());
        }
Пример #2
0
 public void SetPanels()
 {
     Panels.Clear();
     Panels.Add(MainPanel);
     //Panels.Add(HUDPanel);
     //Panels.Add(MessagePanel);
 }
Пример #3
0
        public int Clear()
        {
            int count = Panels.Count();

            Panels.Clear();
            return(count);
        }
 public void ClearDevices()
 {
     foreach (var panel in Panels)
     {
         panel.Stop();
     }
     Panels.Clear();
 }
Пример #5
0
 private void FillPanels(IEnumerable <PanelAKR> panels)
 {
     Panels.Clear();
     foreach (var item in panels)
     {
         PanelAkrView panelView = new PanelAkrView(item);
         Panels.Add(panelView);
     }
 }
Пример #6
0
 // 销毁UI
 public override void DoDestroy()
 {
     base.DoDestroy();
     BaseScreenMgr.Callback_OnSetPlayerBase -= OnSetPlayerBase;
     Panels.Clear();
     Mutexers.Clear();
     UpdateControls.Clear();
     FixedUpdateControls.Clear();
 }
Пример #7
0
 public void Clear()
 {
     if (ObjectInspector != null)
     {
         foreach (var propertiesNode in PropertiesNodes)
         {
             ObjectInspector.DeleteNode(propertiesNode, true);
         }
     }
     PropertiesNodes.Clear();
     Panels.Clear();
     Controls.Clear();
 }
Пример #8
0
 private void OnDisable()
 {
     Panels.Clear();
 }
Пример #9
0
 internal void ResetPanels()
 {
     Panels.Clear();
 }