Exemple #1
0
        public void Tick(Actor self)
        {
            if (lobbyShroudFogDisabled)
            {
                return;
            }

            var disabled = self.TraitsImplementing <IDisable>().Any(d => d.Disabled);

            if (cachedLocation != self.Location || cachedDisabled != disabled)
            {
                cachedLocation = self.Location;
                cachedDisabled = disabled;
                Shroud.UpdateShroudGeneration(self.World.Players.Select(p => p.Shroud), self);
            }
        }
Exemple #2
0
        public void Tick(Actor self)
        {
            if (lobbyShroudFogDisabled)
            {
                return;
            }

            var disabled = self.IsDisabled();

            if (cachedLocation != self.Location || cachedDisabled != disabled)
            {
                cachedLocation = self.Location;
                cachedDisabled = disabled;
                Shroud.UpdateShroudGeneration(self.World.Players.Select(p => p.Shroud), self);
            }
        }