Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.85 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Microsoft.Xna.Framework;
  7. using Microsoft.Xna.Framework.Graphics;
  8. using Microsoft.Xna.Framework.Input;
  9.  
  10. namespace PierwszeNieoceniane2
  11. {
  12.     class gameRectangle
  13.     {
  14.         public Texture2D texture2D { get; set; }
  15.         public Rectangle destinationRectangle { get; set; }
  16.         public Rectangle sourceRectangle { get; set; }
  17.         public Color color { get; set; }
  18.         //public
  19.         public gameRectangle(Texture2D texture2D, Rectangle destinationRectangle, Rectangle sourceRectangle, Color color)
  20.         {
  21.             this.texture2D = texture2D;
  22.             this.destinationRectangle = destinationRectangle;
  23.             this.sourceRectangle = sourceRectangle;
  24.             this.color = color;
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement