Advertisement
Guest User

TinySB System Types

a guest
Sep 9th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. ; PROJECT : TinySBRunTime
  2. ; EDITED : 9/5/2016
  3. ; ---------------------------------------------------------------------
  4. //====Guide
  5. //===_STR means String
  6. //===_INT means Integer
  7. //===_REL means Real
  8.  
  9. //==Strings1D, 2D, 3D are arrays of arrays of the string arrays user creates
  10. //==INTS1D, 2D, 3D are arrays of arrays of the integer arrays user creates
  11.  
  12. //String Array Types
  13. type one_dimensionalSTR
  14. entries$(8129); //Static size, about the same as SB
  15. internal_name$ //a list of these in another array will be provided, along with their indexes in the main array
  16. total_length //used to get the index
  17. endtype
  18.  
  19. type two_dimensionalSTR
  20. entries$(5000*5000);
  21. internal_name$ //a list of these in another array will be provided, along with their indexes in the main array
  22. X_width //used to get the index
  23. Y_depth //used to check array boundaries
  24. endtype
  25.  
  26. type three_dimensionalSTR
  27. entries$(500*500*500);
  28. internal_name$ //a list of these in another array will be provided, along with their indexes in the main array
  29. X_width //used to get the index
  30. Y_depth //used to check array boundaries
  31. Z_depth
  32. endtype
  33.  
  34. //Integer Array Types
  35. type one_dimensional_INT
  36. entries(8129) ; //Static size about the same as SB
  37. internal_name$ //a list of these in another array will be provided, along with their indexes in the main array
  38. total_length //used to get the index
  39. endtype
  40.  
  41. type two_dimensional_INT
  42. entries(5000*5000)
  43. internal_name$ //a list of these in another array will be provided, along with their indexes in the main array
  44. X_width //used to get the index
  45. Y_depth //used to check array boundaries
  46. endtype
  47.  
  48. type three_dimensional_INT
  49. entries(500*500*500)
  50. internal_name$ //a list of these in another array will be provided, along with their indexes in the main array
  51. X_width //used to get the index
  52. Y_depth //used to check array boundaries
  53. Z_depth
  54. endtype
  55.  
  56. //the type for a BGlayer.
  57.  
  58. type BGLAYER
  59. BGImage
  60. width
  61. height
  62. BGVARS(8)
  63. BGROTANGLE
  64. OFFSETX
  65. OFFSETY
  66. VISIBLE
  67. endtype
  68.  
  69. dim Strings1D(1) as one_dimensionalSTR
  70. dim Strings2D(1) as two_dimensionalSTR
  71. dim Strings3D(1) as three_dimensionalSTR
  72.  
  73. Dim INTS1D(1) as one_dimensional_INT
  74. dim INTS2D(1) as two_dimensional_INT
  75. dim INTS3D(1) as three_dimensional_INT
  76.  
  77. dim BGLAYERS(4) as BGLAYER
  78. for t=1 to 4
  79. BGLAYERS(t).BGImage=newfximage(127*16, 127*16)
  80. imagemaskcolour BGLAYERS(t).BGImage, rgb(0, 0,0 )
  81. BGLAYERS(t).width = 127
  82. BGLAYERS(t).height = 127
  83. BGLAYERS(t).BGROTANGLE =0
  84. BGLAYERS(t).OFFSETX = 0
  85. BGLAYERS(t).OFFSETY = 0
  86. //Used for BGSHOW and BGHIDE
  87. BGLAYERS(t).VISIBLE = FALSE
  88. next t
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement