Ejemplo n.º 1
0
        public void UseSkill(Tables.SkillInfoRecord skillRecord)
        {
            var target = GetSkillTarget(skillRecord);

            foreach (var buff in skillRecord.Buffs)
            {
                if (buff != null)
                {
                    _BuffManager.PatchBuff(buff, _SkillOwner, target);
                }
            }
        }
Ejemplo n.º 2
0
 public FightObj_Player GetSkillTarget(Tables.SkillInfoRecord skillRecord)
 {
     if (skillRecord.Target == Tables.SKILL_TARGET_TYPE.Self)
     {
         return(_SkillOwner);
     }
     else
     {
         if (_SkillOwner == FightManager.Instance.SelfPlayer)
         {
             return(FightManager.Instance.EnemyPlayer);
         }
         else
         {
             return(FightManager.Instance.SelfPlayer);
         }
     }
 }
Ejemplo n.º 3
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;
                    }

                    SkillInfoRecord record = new SkillInfoRecord(data);
                    Records.Add(record.Id, record);
                }
            }
        }