Esempio n. 1
0
 public override void Render(DwarfGame game, GraphicsDevice graphics, DwarfTime time)
 {
     if (PreviewBody != null)
     {
         Drawer2D.DrawPolygon(World.Camera, new List <Vector3>()
         {
             PreviewBody.Position, PreviewBody.Position + PreviewBody.GlobalTransform.Right * 0.5f
         }, Color.White, 1, false, graphics.Viewport);
     }
 }
Esempio n. 2
0
 public void Render(DwarfTime gameTime, GraphicsDevice graphics, Effect effect)
 {
     if (CurrentCraftBody != null)
     {
         Drawer2D.DrawPolygon(World.Camera, new List <Vector3>()
         {
             CurrentCraftBody.Position, CurrentCraftBody.Position + CurrentCraftBody.GlobalTransform.Right * 0.5f
         }, Color.White, 1, false, graphics.Viewport);
     }
 }