Grid.cs 612 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace BBIWARG.API
  7. {
  8. public class Grid
  9. {
  10. public string Type { get; set; }
  11. public int Rows { get; set; }
  12. public int Cols { get; set; }
  13. public static Grid instance;
  14. public static Grid getInctance()
  15. {
  16. if (instance == null)
  17. instance = new Grid();
  18. return instance;
  19. }
  20. private Grid()
  21. {
  22. Type = "grid";
  23. Rows = 0;
  24. Cols = 0;
  25. }
  26. }
  27. }