public void SetData( byte _nSlot, sPRODUCT_SLOT _data, bool bProgress ) { m_nProductSlot = _nSlot; m_ServerData = _data; m_bProgress = bProgress; if( 0 != _data.nRecipeIndex ) { m_record = AsTableManager.Instance.GetProductionTable().GetRecord( _data.nRecipeIndex ); if( null == m_record ) { Debug.LogError("ProductionProgData::SetData()[ null == Tbl_Production_Record] id : " + _data.nRecipeIndex ); return; } } else { return; } // reamin time m_remainTime = (float)_data.nProductTime * 0.001f; m_fStartRealTime = Time.realtimeSinceStartup; }
public ProductionProgData( byte _nSlot, sPRODUCT_SLOT _data, bool bProgress ) { SetData( _nSlot, _data, bProgress ); }
public void ReceiveAddProgInfoData( byte nProductSlot, sPRODUCT_SLOT productSlot ) { if( false == m_ProgInfoList.ContainsKey( nProductSlot ) ) { m_ProgInfoList.Add( nProductSlot, new ProductionProgData( nProductSlot, productSlot, getItemProductInfo.bProgress ) ); } else { m_ProgInfoList[nProductSlot].SetData( nProductSlot, productSlot, getItemProductInfo.bProgress ); } switch( m_eCurState ) { case ePRODUCTION_STATE.TECHNOLOGY: break; case ePRODUCTION_STATE.LIST: break; case ePRODUCTION_STATE.PROGRESS: productionProgressTab.Open( getItemProductInfo.bProgress, getTechOpenNum, (byte)m_ProgInfoList.Count, m_ProgInfoList ); //productionProgressTab.PlayLineEffect( (byte)(m_ProgInfoList.Count-1) ); break; //case ePRODUCTION_STATE.PLAN: // break; } }