Exemple #1
0
 private void CreateItem(kcsapi_createitem item, NameValueCollection req)
 {
     Log(LogType.BuildItem, "{0},{1},{2},{3},{4},{5}",
         item.api_create_flag == 1 ? KanColleClient.Current.Master.SlotItems[item.api_slot_item.api_slotitem_id].Name : "Penguin",
         //KanColleClient.Current.Homeport.Organization.Fleets[1].Ships[0].Info.ShipType.Name,
         req["api_item1"], req["api_item2"], req["api_item3"], req["api_item4"], DateTime.Now.ToString("M/d/yyyy H:mm"));
 }
Exemple #2
0
 private void CreateItem(kcsapi_createitem source, NameValueCollection req)
 {
     this.Log(LogType.BuildItem, "{0},{1},{2},{3},{4},{5},{6}", DateTime.Now.ToString("yyyy/M/d H:mm"),
         source.api_create_flag == 1 ? KanColleClient.Current.Master.SlotItems[source.api_slot_item.api_slotitem_id].Name : "NA",
         KanColleClient.Current.Homeport.Organization.Fleets[1].Ships[0].Info.ShipType.Name,
         req["api_item1"], req["api_item2"], req["api_item3"], req["api_item4"]);
 }
 private void CreateItem(kcsapi_createitem source)
 {
     if (source.api_create_flag == 1 && source.api_slot_item != null)
     {
         this.SlotItems.Add(new SlotItem(source.api_slot_item));
     }
     this.RaiseSlotItemsChanged();
 }
 private void CreateItem(kcsapi_createitem item, NameValueCollection req)
 {
     try
     {
         this.Log(LogType.BuildItem,
                  item.api_create_flag == 1 ? KanColleClient.Current.Master.SlotItems[item.api_slot_item.api_slotitem_id].Name : "Penguin", //Result
                  KanColleClient.Current.Homeport.Organization.Fleets[1].Ships[0].Info.Name, //Secretary
                  KanColleClient.Current.Homeport.Organization.Fleets[1].Ships[0].Level, //Secretary Level
                  req["api_item1"], //Fuel
                  req["api_item2"], //Ammo
                  req["api_item3"], //Steel
                  req["api_item4"] //Bauxite
             );
     }
     catch (Exception)
     {
         // ignored
     }
 }