// Conditions and colors go here. void CheckAndSetEmissives(bool _force = false) { foreach (var emissive in EmissiveDataSet) { if (Block.IsFunctional) { if (Block.IsWorking) { if (EmissiveColor != emissive.FullyWorkingEmissiveColor || _force) { EmissiveColor = emissive.FullyWorkingEmissiveColor; Block.SetEmissiveParts(emissive.EmissiveMaterialName, EmissiveColor, emissive.FullyWorkingEmissiveGlow); if (HasSubpart) { Block.SetEmissivePartsForSubparts(emissive.EmissiveMaterialName, EmissiveColor, emissive.FullyWorkingEmissiveGlow); // PLACEHOLDER //ApplyEmissiveToSubparts(SubpartList, emissive.EmissiveMaterialName, EmissiveColor, emissive.FullyWorkingEmissiveGlow); } } } else { if (EmissiveColor != emissive.BustedEmissiveColor || _force) { EmissiveColor = emissive.BustedEmissiveColor; Block.SetEmissiveParts(emissive.EmissiveMaterialName, EmissiveColor, emissive.BustedEmissiveGlow); if (HasSubpart) { Block.SetEmissivePartsForSubparts(emissive.EmissiveMaterialName, EmissiveColor, emissive.BustedEmissiveGlow); // PLACEHOLDER //ApplyEmissiveToSubparts(SubpartList, emissive.EmissiveMaterialName, EmissiveColor, emissive.BustedEmissiveGlow); } } } } else { if (EmissiveColor != emissive.BustedEmissiveColor || _force) { EmissiveColor = emissive.BustedEmissiveColor; Block.SetEmissiveParts(emissive.EmissiveMaterialName, EmissiveColor, emissive.BustedEmissiveGlow); if (HasSubpart) { Block.SetEmissivePartsForSubparts(emissive.EmissiveMaterialName, EmissiveColor, emissive.BustedEmissiveGlow); // PLACEHOLDER //ApplyEmissiveToSubparts(SubpartList, emissive.EmissiveMaterialName, EmissiveColor, emissive.BustedEmissiveGlow); } } } } }