예제 #1
0
        private void DestroyShipHandler(NameValueCollection req, kousyou_destroyship api)
        {
            bool removeEquip = req.GetInt("api_slot_dest_flag") != 0;

            foreach (int id in req.GetInts("api_ship_id"))
            {
                Staff.Current.Homeport.RemoveShip(Staff.Current.Homeport.Ships[id], removeEquip);
            }
            Staff.Current.Homeport.Material.UpdateMaterial(api.api_material);
        }
예제 #2
0
 private void DestroyShipHandler(NameValueCollection req, kousyou_destroyship api)
 {
     Staff.Current.Homeport.RemoveShip(Staff.Current.Homeport.Ships[req.GetInt("api_ship_id")]);
     Staff.Current.Homeport.Material.UpdateMaterial(api.api_material);
 }