@@ -4,28 +4,17 @@ module Types
44 name "Starship"
55 description "A single transport craft that has hyperdrive capability."
66
7- field :id , types . ID , "The ID of this species."
7+ interfaces [ Graph :: Types :: TransportInterface ]
88
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\" ."
9+ field :id , types . ID , "The ID of this starship."
10+
11+ # Starship Specific Fields
1112
1213 field :starshipClass , types . String do
1314 description "The class of this starship, such as \" Starfighter\" or \" Deep Space Mobile Battlestation\" "
1415 property :starship_class
1516 end
1617
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-
2918 field :hyperdriveRating , types . Float , "The class of this starships hyperdrive." , property : :hyperdrive_rating
3019
3120 field :MGLT , types . Int do
@@ -39,6 +28,23 @@ module Types
3928 property :mglt
4029 end
4130
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+
4248 field :cargoCapacity , types . Float do
4349 description "The maximum number of kilograms that this starship can transport."
4450 property :cargo_capacity
0 commit comments