Exemplo n.º 1
0
        private void MaterialsHistory(kcsapi_material[] source)
        {
            if (source == null || source.Length != 7)
                return;

            this.Log(LogType.Materials,
                source[0].api_value, source[1].api_value, source[2].api_value, source[3].api_value, source[6].api_value, source[5].api_value, source[4].api_value);
        }
Exemplo n.º 2
0
		internal void Update(kcsapi_material[] source)
		{
			if (source != null && 8 <= source.Length)
			{
				this.Fuel = source[0].api_value;
				this.Ammunition = source[1].api_value;
				this.Steel = source[2].api_value;
				this.Bauxite = source[3].api_value;
				this.DevelopmentMaterials = source[6].api_value;
				this.InstantRepairMaterials = source[5].api_value;
				this.InstantBuildMaterials = source[4].api_value;
				this.ImprovementMaterials = source[7].api_value;
			}
		}
Exemplo n.º 3
0
		private void MaterialsHistory(kcsapi_material[] source)
		{
			if (source == null || source.Length != 7)
				return;

			Log(LogType.Materials, "{0},{1},{2},{3},{4},{5},{6},{7}", 
				DateTime.Now.ToString(this.LogTimestampFormat), 
				source[0].api_value, source[1].api_value, source[2].api_value, source[3].api_value, source[6].api_value, source[5].api_value, source[4].api_value);
		}