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)); } }
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)); } }
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); } }
public SmudgeLayer(SmudgeLayerInfo info) { this.Info = info; }