Esempio n. 1
0
		private void KDock(kcsapi_kdock[] docks)
		{
			foreach (var dock in docks.Where(dock => this.waitingForShip && dock.api_id == this.dockid))
			{
				this.Log(LogType.BuildShip, "{0},{1},{2},{3},{4},{5},{6}", DateTime.Now.ToString(this.LogTimestampFormat), KanColleClient.Current.Master.Ships[dock.api_created_ship_id].Name, this.shipmats[0], this.shipmats[1], this.shipmats[2], this.shipmats[3], this.shipmats[4]);
				this.waitingForShip = false;
			}
		}
Esempio n. 2
0
        private void KDock(kcsapi_kdock[] docks)
        {
            try
            {
                foreach (var dock in docks.Where(dock => this.waitingForShip && dock.api_id == this.dockid))
                {
                    this.Log(LogType.BuildShip,
                             KanColleClient.Current.Master.Ships[dock.api_created_ship_id].Name, //Result
                             KanColleClient.Current.Homeport.Organization.Fleets[1].Ships[0].Info.Name, //Secretary
                             KanColleClient.Current.Homeport.Organization.Fleets[1].Ships[0].Level, //Secretary Level
                             this.shipmats[0], //Fuel
                             this.shipmats[1], //Ammo
                             this.shipmats[2], //Steel
                             this.shipmats[3], //Bauxite
                             this.shipmats[4] //Materials
                        );

                    this.waitingForShip = false;
                }
            }
            catch (Exception)
            {
                this.waitingForShip = false;
            }
        }