types.bmx 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. SuperStrict
  2. Type TNumbers
  3. Field a:Int
  4. Field b:Long
  5. Field c:Float
  6. Field d:Double
  7. Field e:Byte
  8. Field f:Short
  9. Field g:UInt
  10. Field h:ULong
  11. Field i:LongInt
  12. Field j:ULongInt
  13. Method Create:TNumbers(a:Int, b:Long, c:Float, d:Double, e:Byte, f:Short, g:UInt, h:ULong, i:LongInt, j:ULongInt)
  14. Self.a = a
  15. Self.b = b
  16. Self.c = c
  17. Self.d = d
  18. Self.e = e
  19. Self.f = f
  20. Self.g = g
  21. Self.h = h
  22. Self.i = i
  23. Self.j = j
  24. Return Self
  25. End Method
  26. End Type
  27. Type TStrings
  28. Field a:String
  29. Field b:String
  30. Field c:String
  31. Method Create:TStrings(a:String, b:String, c:String)
  32. Self.a = a
  33. Self.b = b
  34. Self.c = c
  35. Return Self
  36. End Method
  37. End Type
  38. Type TObject
  39. Field code:Int
  40. Method Create:TObject(code:Int)
  41. Self.code = code
  42. Return Self
  43. End Method
  44. End Type
  45. Type TObjectContainer
  46. Field object1:TObject
  47. Field object2:TObject
  48. Field object3:TObject
  49. Method Create:TObjectContainer(object1:TObject, object2:TObject, object3:TObject)
  50. Self.object1 = object1
  51. Self.object2 = object2
  52. Self.object3 = object3
  53. Return Self
  54. End Method
  55. End Type
  56. Type TRoom
  57. Field id:Int
  58. Method Create:TRoom(id:Int)
  59. Self.Id = id
  60. Return Self
  61. End Method
  62. End Type