Пример #1
0
        public void RenderAfterWorld(WorldRenderer wr)
        {
            if (self.Owner != self.World.LocalPlayer)
            {
                return;
            }

            if (minefield != null)
            {
                wr.DrawLocus(Color.Cyan, minefield);
            }
        }
Пример #2
0
            public void RenderAfterWorld(WorldRenderer wr, World world)
            {
                if (!minelayer.IsInWorld)
                {
                    return;
                }

                var movement  = minelayer.Trait <IPositionable>();
                var minefield = GetMinefieldCells(minefieldStart, lastMousePos,
                                                  minelayer.Info.Traits.Get <MinelayerInfo>().MinefieldDepth)
                                .Where(p => movement.CanEnterCell(p)).ToArray();

                wr.DrawLocus(Color.Cyan, minefield);
            }