public void UpdateLighting() { Light = LightingLevel.Dark; if (RoomType == RMUD.RoomType.Exterior) { Light = AmbientExteriorLightingLevel; } foreach (var item in MudObject.EnumerateVisibleTree(this)) { var lightingLevel = GlobalRules.ConsiderValueRule<LightingLevel>("light level", item); if (lightingLevel > Light) Light = lightingLevel; } if (AmbientLighting > Light) Light = AmbientLighting; }
public void UpdateLighting() { Light = LightingLevel.Dark; if (RoomType == RMUD.RoomType.Exterior) { Light = AmbientExteriorLightingLevel; } foreach (var item in MudObject.EnumerateVisibleTree(this)) { var lightingLevel = GlobalRules.ConsiderValueRule <LightingLevel>("light level", item); if (lightingLevel > Light) { Light = lightingLevel; } } if (AmbientLighting > Light) { Light = AmbientLighting; } }
public SetMapLightingEvent(LightingLevel level, byte unk2, byte unk3) { LightLevel = level; Unk2 = unk2; Unk3 = unk3; }