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

            var sequenceProvider = world.Map.Rules.Sequences;
            var types = sequenceProvider.Sequences(Info.Sequence);
            foreach (var t in types)
            {
                var seq = sequenceProvider.GetSequence(Info.Sequence, t);
                var sprites = Exts.MakeArray(seq.Length, x => seq.GetSprite(x));
                sideSprites.Add(t, sprites);
            }
        }
Exemple #2
0
        public D2TerrainLayer(Actor self, D2TerrainLayerInfo info)
        {
            Info  = info;
            world = self.World;

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

            foreach (var t in types)
            {
                var seq     = sequenceProvider.GetSequence(Info.Sequence, t);
                var sprites = Exts.MakeArray(seq.Length, x => seq.GetSprite(x));
                sideSprites.Add(t, sprites);
            }
        }