Exemple #1
0
        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;
        }
Exemple #2
0
        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;
            }
        }
Exemple #3
0
 public SetMapLightingEvent(LightingLevel level, byte unk2, byte unk3)
 {
     LightLevel = level;
     Unk2       = unk2;
     Unk3       = unk3;
 }