Exemple #1
0
        public SmudgeLayer(Actor self, SmudgeLayerInfo info)
        {
            Info  = info;
            world = self.World;

            var sequenceProvider = world.Map.Rules.Sequences;
            var types            = sequenceProvider.Sequences(Info.Sequence);

            foreach (var t in types)
            {
                smudges.Add(t, sequenceProvider.GetSequence(Info.Sequence, t));
            }
        }
Exemple #2
0
        public SmudgeLayer(Actor self, SmudgeLayerInfo info)
        {
            Info     = info;
            world    = self.World;
            hasSmoke = !string.IsNullOrEmpty(info.SmokeImage) && info.SmokeSequences.Any();

            var sequenceProvider = world.Map.Rules.Sequences;
            var types            = sequenceProvider.Sequences(Info.Sequence);

            foreach (var t in types)
            {
                smudges.Add(t, sequenceProvider.GetSequence(Info.Sequence, t));
            }
        }
Exemple #3
0
        public SmudgeLayer(Actor self, SmudgeLayerInfo info)
        {
            Info  = info;
            world = self.World;

            var types = world.Map.SequenceProvider.Sequences(Info.Sequence);

            foreach (var t in types)
            {
                var seq     = world.Map.SequenceProvider.GetSequence(Info.Sequence, t);
                var sprites = Exts.MakeArray(seq.Length, x => seq.GetSprite(x));
                smudges.Add(t, sprites);
            }
        }
Exemple #4
0
 public SmudgeLayer(SmudgeLayerInfo info)
 {
     this.Info = info;
 }