Ejemplo n.º 1
0
        private SkillEntity CreateEntity(DataRow row)
        {
            SkillEntity entity = new SkillEntity();

            entity.Id = DaoSupport.GetIntValue(row, "id");

            entity.SystemName = DaoSupport.GetStringValue(row, "system_name");

            entity.DisplayName = DaoSupport.GetStringValue(row, "display_name");

            entity.Lang = DaoSupport.GetStringValue(row, "lang");

            entity.Level = DaoSupport.GetIntValue(row, "level");

            entity.Type1 = (SkillType)Enum.ToObject(typeof(SkillType), DaoSupport.GetIntValue(row, "type1"));

            entity.Power1 = DaoSupport.GetIntValue(row, "power1");

            entity.Turn1 = DaoSupport.GetIntValue(row, "turn1");

            entity.Type2 = (SkillType)Enum.ToObject(typeof(SkillType), DaoSupport.GetIntValue(row, "type2"));

            entity.Power2 = DaoSupport.GetIntValue(row, "power2");

            entity.Turn2 = DaoSupport.GetIntValue(row, "turn2");

            entity.Seconds = DaoSupport.GetIntValue(row, "seconds");

            entity.Range = (SkillRange)Enum.ToObject(typeof(SkillRange), DaoSupport.GetIntValue(row, "range"));

            return(entity);
        }
Ejemplo n.º 2
0
        private QuestChapterEntity CreateEntity(DataRow row)
        {
            QuestChapterEntity entity = new QuestChapterEntity();

            entity.Id = DaoSupport.GetIntValue(row, "id");

            entity.ChapterNo = DaoSupport.GetIntValue(row, "chapter_no");

            entity.DisplayName = DaoSupport.GetStringValue(row, "display_name");

            return(entity);
        }
Ejemplo n.º 3
0
        private PartnerEntity CreateEntity(DataRow row)
        {
            PartnerEntity entity = new PartnerEntity();

            entity.Id = DaoSupport.GetIntValue(row, "id");

            entity.SystemName = DaoSupport.GetStringValue(row, "system_name");

            entity.DisplayName = DaoSupport.GetStringValue(row, "display_name");

            entity.Lang = DaoSupport.GetStringValue(row, "lang");

            entity.Skill1 = DaoSupport.GetIntValue(row, "skill1");

            return(entity);
        }
Ejemplo n.º 4
0
        private SenseEntity CreateEntity(DataRow row)
        {
            SenseEntity entity = new SenseEntity();

            entity.Id = DaoSupport.GetIntValue(row, "id");

            entity.DisplayName = DaoSupport.GetStringValue(row, "display_name");

            entity.Level = DaoSupport.GetIntValue(row, "level");

            entity.Type = DaoSupport.GetIntValue(row, "type");

            entity.Power = DaoSupport.GetIntValue(row, "power");

            return(entity);
        }
Ejemplo n.º 5
0
        private DeckEntity CreateEntity(DataRow row)
        {
            DeckEntity entity = new DeckEntity();

            entity.Id = DaoSupport.GetIntValue(row, "id");

            entity.DisplayName = DaoSupport.GetStringValue(row, "display_name");

            entity.Character1 = DaoSupport.GetIntValue(row, "character1");

            entity.Character2 = DaoSupport.GetIntValue(row, "character2");

            entity.Character3 = DaoSupport.GetIntValue(row, "character3");

            entity.Leader = DaoSupport.GetIntValue(row, "leader");

            return(entity);
        }
Ejemplo n.º 6
0
        private CharacterEntity CreateEntity(DataRow row)
        {
            CharacterEntity entity = new CharacterEntity();

            entity.Id = DaoSupport.GetIntValue(row, "id");

            entity.SystemName = DaoSupport.GetStringValue(row, "system_name");

            entity.DisplayName = DaoSupport.GetStringValue(row, "display_name");

            entity.Lang = DaoSupport.GetStringValue(row, "lang");

            entity.Creator = DaoSupport.GetIntValue(row, "creator");

            entity.Attack = DaoSupport.GetIntValue(row, "attack");

            entity.Defense = DaoSupport.GetIntValue(row, "defense");

            entity.Mind = DaoSupport.GetIntValue(row, "mind");

            entity.Speed = DaoSupport.GetIntValue(row, "speed");

            entity.MaxHp = DaoSupport.GetIntValue(row, "max_hp");

            entity.Skill1 = DaoSupport.GetIntValue(row, "skill1");

            entity.Skill2 = DaoSupport.GetIntValue(row, "skill2");

            entity.AttackRate = DaoSupport.GetIntValue(row, "attack_rate");

            entity.DefenseRate = DaoSupport.GetIntValue(row, "defense_rate");

            entity.MindRate = DaoSupport.GetIntValue(row, "mind_rate");

            entity.SpeedRate = DaoSupport.GetIntValue(row, "speed_rate");

            entity.MaxHpRate = DaoSupport.GetIntValue(row, "max_hp_rate");

            entity.MinLevelUp = DaoSupport.GetIntValue(row, "min_level_up");

            entity.MaxLevelUp = DaoSupport.GetIntValue(row, "max_level_up");

            return(entity);
        }
Ejemplo n.º 7
0
        private TeamCharacterEntity CreateEntity(DataRow row)
        {
            TeamCharacterEntity entity = new TeamCharacterEntity();

            entity.Id = DaoSupport.GetIntValue(row, "id");

            entity.SystemName = DaoSupport.GetStringValue(row, "system_name");

            entity.DisplayName = DaoSupport.GetStringValue(row, "display_name");

            entity.Lang = DaoSupport.GetStringValue(row, "lang");

            entity.Creator = DaoSupport.GetIntValue(row, "creator");

            entity.Level = DaoSupport.GetIntValue(row, "level");

            entity.Attack = DaoSupport.GetIntValue(row, "attack");

            entity.Defense = DaoSupport.GetIntValue(row, "defense");

            entity.Mind = DaoSupport.GetIntValue(row, "mind");

            entity.Speed = DaoSupport.GetIntValue(row, "speed");

            entity.CurrentHp = DaoSupport.GetIntValue(row, "current_hp");

            entity.MaxHp = DaoSupport.GetIntValue(row, "max_hp");

            entity.Skill1 = DaoSupport.GetIntValue(row, "skill1");

            entity.Skill2 = DaoSupport.GetIntValue(row, "skill2");

            entity.LeaderSkill = DaoSupport.GetIntValue(row, "leader_skill");

            entity.Sense = DaoSupport.GetIntValue(row, "sense");

            return(entity);
        }