public virtual ComponentWeapon New(Ship arg_ship, WeaponPort arg_port) { float size = arg_port.size; ComponentWeapon weapon = new ComponentWeapon(arg_ship, arg_port, size, this); weapon.cooldown = 60f / (fire_rate); weapon.projectile_velocity = projectile_velocity; weapon.projectile_frame_life = (int)(projectile_range * size / projectile_velocity); weapon.projectile_scatter = projectile_scatter; weapon.projectile_scale = projectile_scale * size; return weapon; }
public WeaponFacade( WeaponPort arg_port, ComponentWeapon arg_component ) : base(arg_component) { component = arg_component; port = arg_port; }