public void PatchBuff(Tables.BuffInfoRecord buffRecord, FightObj_Player sender, FightObj_Player reciver) { var buffBase = (BuffImpact_Base)System.Activator.CreateInstance(System.Type.GetType("GameLogic." + buffRecord.Impact.TableName)); buffBase.InitBuff(buffRecord, sender, reciver); if (buffBase != null && buffRecord.Last > 0) { buffBase.LastRound = buffRecord.Last; _BuffList.Add(buffBase); } }
private void ParserTableStr(string content) { StringReader rdr = new StringReader(content); using (var reader = new CsvReader(rdr)) { HeaderRecord header = reader.ReadHeaderRecord(); while (reader.HasMoreRecords) { DataRecord data = reader.ReadDataRecord(); if (data[0].StartsWith("#")) { continue; } BuffInfoRecord record = new BuffInfoRecord(data); Records.Add(record.Id, record); } } }
public override void InitBuff(Tables.BuffInfoRecord buffRecord, FightObj_Player sender, FightObj_Player reciver) { }