Exemplo n.º 1
0
 private void LoadEquipment()
 {
     foreach (EPartType partType in System.Enum.GetValues(typeof(EPartType)))
     {
         LoadPart(_playerEquipment.GetEquippedPart(partType));
     }
 }
Exemplo n.º 2
0
 public void OnPlayerEquipmentChanged()
 {
     _heatScale = 0f;
     foreach (EPartType partType in System.Enum.GetValues(typeof(EPartType)))
     {
         Part part = _playerEquipment.GetEquippedPart(partType);
         if (part != null)
         {
             IOverheatable oh = part.AsOverheatable();
             if (oh != null)
             {
                 if (oh.MaximumOperatingTemperature > _heatScale)
                 {
                     _heatScale = oh.MaximumOperatingTemperature;
                 }
             }
         }
     }
     if (_heatScale < 0.01f)
     {
         _heatScale = 100f;
     }
 }
Exemplo n.º 3
0
        public void Load()
        {
            int row = 0;

            foreach (EPartType partType in Enum.GetValues(typeof(EPartType)))
            {
                _partGridElements.Add(LoadParts(_partList.GetPartsOfType(partType), row, _playerEquipment.GetEquippedPart(partType)));
                row++;
            }
        }