@@ -4,17 +4,28 @@ module Types
44 name "Starship"
55 description "A single transport craft that has hyperdrive capability."
66
7- interfaces [ Graph :: Types :: TransportInterface ]
7+ field :id , types . ID , "The ID of this species."
88
9- field :id , types . ID , "The ID of this starship."
10-
11- # Starship Specific Fields
9+ field :name , types . String , "The name of this starship. The common name, such as \" Death Star\" ."
10+ field :model , types . String , "The model or official name of this starship. Such as \" T-65 X-wing\" or \" DS-1 Orbital Battle Station\" ."
1211
1312 field :starshipClass , types . String do
1413 description "The class of this starship, such as \" Starfighter\" or \" Deep Space Mobile Battlestation\" "
1514 property :starship_class
1615 end
1716
17+ field :manufacturer , types . String , "The manufacturer of this starship."
18+ field :costInCredits , types . Float , "The cost of this starship new, in galactic credits" , property : :cost_in_credits
19+ field :length , types . Float , "The length of this starship in meters."
20+ field :crew , types . String , "The number of personnel needed to run or pilot this starship."
21+ field :passengers , types . String , "The number of non-essential people this starship can transport."
22+
23+ field :maxAtmospheringSpeed , types . Int do
24+ description "The maximum speed of this starship in atmosphere. null
25+ if this starship is incapable of atmosphering flight."
26+ property :max_atmosphering_speed
27+ end
28+
1829 field :hyperdriveRating , types . Float , "The class of this starships hyperdrive." , property : :hyperdrive_rating
1930
2031 field :MGLT , types . Int do
@@ -28,23 +39,6 @@ module Types
2839 property :mglt
2940 end
3041
31- # Transport Interface Fields
32-
33- field :name , types . String , "The name of this starship. The common name, such as \" Death Star\" ."
34- field :model , types . String , "The model or official name of this starship. Such as \" T-65 X-wing\" or \" DS-1 Orbital Battle Station\" ."
35-
36- field :manufacturer , types . String , "The manufacturer of this starship."
37- field :costInCredits , types . Float , "The cost of this starship new, in galactic credits" , property : :cost_in_credits
38- field :length , types . Float , "The length of this starship in meters."
39- field :crew , types . String , "The number of personnel needed to run or pilot this starship."
40- field :passengers , types . String , "The number of non-essential people this starship can transport."
41-
42- field :maxAtmospheringSpeed , types . Int do
43- description "The maximum speed of this starship in atmosphere. null
44- if this starship is incapable of atmosphering flight."
45- property :max_atmosphering_speed
46- end
47-
4842 field :cargoCapacity , types . Float do
4943 description "The maximum number of kilograms that this starship can transport."
5044 property :cargo_capacity
0 commit comments