コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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);
                }
            }
        }
コード例 #3
0
 public override void InitBuff(Tables.BuffInfoRecord buffRecord, FightObj_Player sender, FightObj_Player reciver)
 {
 }