Пример #1
0
            public void drawVoxel(QuarterViewDrawer view, DrawContextEx canvas, Location loc, Point pt)
            {
                if (loc.z != currentLoc.z)
                {
                    return;
                }

                if (route != null && route.Contains(loc))
                {
                    contrib.getSprite((Dir)route[loc]).drawAlpha(canvas.surface, pt);
                }
            }
Пример #2
0
 public CreekVoxel(Location loc, CreekBuilder contrib, Dir dir) : base(loc)
 {
     this.contrib = contrib;
     this.dir     = dir;
     this.sprite  = contrib.getSprite(dir);
 }