forked from BryanLunduke/Linux-Tycoon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.rbbas
163 lines (143 loc) · 3.15 KB
/
Package.rbbas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
#tag Class
Protected Class Package
#tag Method, Flags = &h0
Sub AddABug()
bugs = bugs + 1
End Sub
#tag EndMethod
#tag Method, Flags = &h0
Function GetPackageXML() As string
dim s as string
dim isos as string
if isOpenSource = true then
isos = "True"
else
isos = "False"
end if
s = "<package Name=""" + me.Name + """ Bugs=""" + str(me.Bugs) + """ Description=""" + _
me.Description + """ NerdCred=""" + str(me.NerdCred) + """ Popularity=""" + str(me.Popularity) + _
""" SizeInMB=""" + str(me.SizeInMB) + """ TypeOfSoftware=""" + str(TypeOfSoftware) + _
""" Version=""" + str(me.Version) + """ isOpenSource=""" + isos + """/>"
Return s
End Function
#tag EndMethod
#tag Method, Flags = &h0
Sub RemoveABug()
if bugs > 0 then
bugs = bugs - 1
end if
End Sub
#tag EndMethod
#tag Property, Flags = &h0
Bugs As Integer
#tag EndProperty
#tag Property, Flags = &h0
Description As string
#tag EndProperty
#tag Property, Flags = &h0
isOpenSource As Boolean
#tag EndProperty
#tag Property, Flags = &h0
Logo As picture
#tag EndProperty
#tag Property, Flags = &h0
Name As string
#tag EndProperty
#tag Property, Flags = &h0
NerdCred As Integer
#tag EndProperty
#tag Property, Flags = &h0
Popularity As Integer
#tag EndProperty
#tag Property, Flags = &h0
SizeInMB As Integer
#tag EndProperty
#tag Property, Flags = &h0
TypeOfSoftware As Integer
#tag EndProperty
#tag Property, Flags = &h0
Version As Integer
#tag EndProperty
#tag ViewBehavior
#tag ViewProperty
Name="Bugs"
Group="Behavior"
Type="Integer"
#tag EndViewProperty
#tag ViewProperty
Name="Description"
Group="Behavior"
Type="string"
EditorType="MultiLineEditor"
#tag EndViewProperty
#tag ViewProperty
Name="Index"
Visible=true
Group="ID"
InitialValue="-2147483648"
InheritedFrom="Object"
#tag EndViewProperty
#tag ViewProperty
Name="isOpenSource"
Group="Behavior"
Type="Boolean"
#tag EndViewProperty
#tag ViewProperty
Name="Left"
Visible=true
Group="Position"
InitialValue="0"
InheritedFrom="Object"
#tag EndViewProperty
#tag ViewProperty
Name="Logo"
Group="Behavior"
Type="picture"
#tag EndViewProperty
#tag ViewProperty
Name="Name"
Visible=true
Group="ID"
InheritedFrom="Object"
#tag EndViewProperty
#tag ViewProperty
Name="NerdCred"
Group="Behavior"
Type="Integer"
#tag EndViewProperty
#tag ViewProperty
Name="Popularity"
Group="Behavior"
Type="Integer"
#tag EndViewProperty
#tag ViewProperty
Name="SizeInMB"
Group="Behavior"
Type="Integer"
#tag EndViewProperty
#tag ViewProperty
Name="Super"
Visible=true
Group="ID"
InheritedFrom="Object"
#tag EndViewProperty
#tag ViewProperty
Name="Top"
Visible=true
Group="Position"
InitialValue="0"
InheritedFrom="Object"
#tag EndViewProperty
#tag ViewProperty
Name="TypeOfSoftware"
Group="Behavior"
Type="Integer"
#tag EndViewProperty
#tag ViewProperty
Name="Version"
Group="Behavior"
Type="Integer"
#tag EndViewProperty
#tag EndViewBehavior
End Class
#tag EndClass