private void LoadEquipment() { foreach (EPartType partType in System.Enum.GetValues(typeof(EPartType))) { LoadPart(_playerEquipment.GetEquippedPart(partType)); } }
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; } }
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++; } }