public BuffBase(RofBuffRow mRofBuffRow) { BuffID = mRofBuffRow.ID; BuffName = mRofBuffRow.BuffName; buffEffectType = (BuffEffectType)mRofBuffRow.BuffEffectType; buffRepeatType = (BuffRepeatType)mRofBuffRow.BuffRepeatType; buffOverlapType = (BuffOverlapType)mRofBuffRow.BuffOverlapType; buffShutDownType = (BuffShutDownType)mRofBuffRow.BuffShutDownType; MaxLimit = mRofBuffRow.MaxLimit; TotalFrame = mRofBuffRow.TotalFrame; CallIntervalFrame = mRofBuffRow.CallIntervalFrame; Num = mRofBuffRow.Num; Effect = mRofBuffRow.Effect; }
void Start() { //从导表数据中初始化 int iRowNum = _DaoBiaoManager.RofBuffTable.RowNum; for (int i = 1; i <= iRowNum; i++) { RofBuffRow mRofBuffRow = _DaoBiaoManager.RofBuffTable.GetDataByRow(i); if (mRofBuffRow != null) { _BuffBaseDict[mRofBuffRow.ID] = new BuffBase(mRofBuffRow); } } }