def setup_registry(registry): registry.set(left_warp_engine.name, left_warp_engine, jolly.system.Prototype) registry.set(center_warp_engine.name, center_warp_engine, jolly.system.Prototype) registry.set(right_warp_engine.name, right_warp_engine, jolly.system.Prototype) registry.set(impulse_engine.name, impulse_engine, jolly.system.Prototype) registry.set(AWR.name, AWR, jolly.system.Prototype) registry.set(APR.name, APR, jolly.system.Prototype) registry.set(forward_hull.name, forward_hull, jolly.system.Prototype) registry.set(center_hull.name, center_hull, jolly.system.Prototype) registry.set(aft_hull.name, aft_hull, jolly.system.Prototype) registry.set(shuttle_hull.name, shuttle_hull, jolly.system.Prototype) registry.set(phaser1.name, phaser1, jolly.system.Prototype) registry.set(phaser2.name, phaser2, jolly.system.Prototype) registry.set(phaser3.name, phaser3, jolly.system.Prototype) registry.set(phaser4.name, phaser4, jolly.system.Prototype) registry.set(phaserG.name, phaserG, jolly.system.Prototype) registry.set(shuttle_phaser1.name, shuttle_phaser1, jolly.system.Prototype) registry.set(shuttle_phaser2.name, shuttle_phaser2, jolly.system.Prototype) registry.set(shuttle_phaser3.name, shuttle_phaser3, jolly.system.Prototype) registry.set(shuttle_phaserG.name, shuttle_phaserG, jolly.system.Prototype)
from jolly.resource import ResourceType from sfb import registry energy = ResourceType('energy') impulse_energy = ResourceType('impulse', [energy]) warp_energy = ResourceType('warp', [energy]) warp_engine_energy = ResourceType('warp-engine', [energy, warp_energy]) registry.set(energy.name, energy, ResourceType) registry.set(impulse_energy.name, energy, ResourceType) registry.set(warp_energy.name, warp_energy, ResourceType) registry.set(warp_engine_energy.name, warp_engine_energy, ResourceType)
def setup_registry(registry): registry.set(admin_shuttle.name, admin_shuttle, jolly.system.Prototype)